718 |
Dawon |
1 |
<?php |
|
|
2 |
if ($HTTP_GET_VARS["lang"] == "en") { |
|
|
3 |
$lang = "en"; |
|
|
4 |
} else { |
|
|
5 |
$lang = "cs"; |
|
|
6 |
} |
|
|
7 |
?> |
717 |
Dawon |
8 |
<html> |
663 |
Dawon |
9 |
<head> |
703 |
Dawon |
10 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
|
11 |
<title> MLAB moduly </title> |
707 |
Dawon |
12 |
<meta name="keywords" content="stavebnice MLAB univerzální moduly seznam přehled"> |
703 |
Dawon |
13 |
<meta name="description" content="Projekt MLAB, moduly"> |
719 |
Dawon |
14 |
<!-- AUTOINCLUDE START "Page/Head.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> |
707 |
Dawon |
15 |
<link rel="StyleSheet" href="../Web/CSS/MLAB.css" type="text/css" title="MLAB základní styl"> |
703 |
Dawon |
16 |
<link rel="StyleSheet" href="../Web/CSS/MLAB_Print.css" type="text/css" media="print"> |
|
|
17 |
<link rel="shortcut icon" type="image/x-icon" href="../Web/PIC/MLAB.ico"> |
|
|
18 |
<script type="text/javascript" src="../Web/JS/MLAB_Menu.js"></script> |
|
|
19 |
<!-- AUTOINCLUDE END --> |
663 |
Dawon |
20 |
</head> |
720 |
Dawon |
21 |
<body lang="<?php echo $lang; ?>"> |
663 |
Dawon |
22 |
|
718 |
Dawon |
23 |
<!-- AUTOINCLUDE START "Page/Header.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> |
704 |
Dawon |
24 |
<!-- ============== HLAVICKA ============== --> |
|
|
25 |
<div class="Header"> |
|
|
26 |
<script type="text/javascript"> |
|
|
27 |
<!-- |
|
|
28 |
SetRelativePath("../"); |
|
|
29 |
DrawHeader(); |
|
|
30 |
// --> |
|
|
31 |
</script> |
|
|
32 |
<noscript> |
721 |
Dawon |
33 |
<?php if ($lang == "cs") {?> |
707 |
Dawon |
34 |
<p><b> Pro zobrazení (vložení) hlavičky je potřeba JavaScript </b></p> |
721 |
Dawon |
35 |
<?php } else { ?> |
|
|
36 |
<p><b> JavaScript is required for including of the header </b></p> |
|
|
37 |
<?php } ?> |
704 |
Dawon |
38 |
</noscript> |
|
|
39 |
</div> |
|
|
40 |
<!-- AUTOINCLUDE END --> |
683 |
Dawon |
41 |
|
718 |
Dawon |
42 |
<!-- AUTOINCLUDE START "Page/Menu.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> |
704 |
Dawon |
43 |
<!-- ============== MENU ============== --> |
|
|
44 |
<div class="Menu"> |
|
|
45 |
<script type="text/javascript"> |
|
|
46 |
<!-- |
|
|
47 |
SetRelativePath("../"); |
|
|
48 |
DrawMenu(); |
|
|
49 |
// --> |
|
|
50 |
</script> |
|
|
51 |
<noscript> |
721 |
Dawon |
52 |
<?php if ($lang == "cs") {?> |
707 |
Dawon |
53 |
<p><b> Pro zobrazení (vložení) menu je potřeba JavaScript </b></p> |
721 |
Dawon |
54 |
<?php } else { ?> |
|
|
55 |
<p><b> JavaScript is required for including of the menu </b><p> |
|
|
56 |
<?php } ?> |
704 |
Dawon |
57 |
</noscript> |
|
|
58 |
</div> |
|
|
59 |
<!-- AUTOINCLUDE END --> |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
706 |
Dawon |
63 |
<!-- ============== TEXT ============== --> |
717 |
Dawon |
64 |
<?php if ($lang == "en") { ?> |
706 |
Dawon |
65 |
<div class="Text"> |
|
|
66 |
<p class="Title"> |
717 |
Dawon |
67 |
Overview of MLAB Modules |
|
|
68 |
</p> |
|
|
69 |
<p class=Subtitle> |
|
|
70 |
You can find an overview of MLAB Modules here. It is automatically |
|
|
71 |
generated page based on source database and the overview can be sorted |
|
|
72 |
variously. |
|
|
73 |
</p> |
|
|
74 |
|
|
|
75 |
<p class="Remark"> |
|
|
76 |
Automatic generation is not written yet. |
|
|
77 |
</p> |
|
|
78 |
<?php } else { ?> |
|
|
79 |
<div class="Text"> |
|
|
80 |
<p class="Title"> |
707 |
Dawon |
81 |
Přehled modulů MLAB |
706 |
Dawon |
82 |
</p> |
|
|
83 |
<p class="Subtitle"> |
707 |
Dawon |
84 |
Zde je k dispozici přehled existujících modulů stavebnice MLAB. Přehled |
|
|
85 |
je generován automaticky a může být setříděn různým způsobem. |
706 |
Dawon |
86 |
</p> |
|
|
87 |
|
|
|
88 |
<p class="Remark"> |
707 |
Dawon |
89 |
Automatické generování přehledů ještě nemáme rozfungované, proto jsou |
|
|
90 |
zde zatím jen statické odkazy. |
706 |
Dawon |
91 |
</p> |
663 |
Dawon |
92 |
<?php |
717 |
Dawon |
93 |
} |
663 |
Dawon |
94 |
/* KONFIGURACE */ |
665 |
Dawon |
95 |
$path = '/var/www/Web'; |
664 |
Dawon |
96 |
$www = 'http://www.mlab.cz'; |
666 |
Dawon |
97 |
$folder = '/../Modules'; |
667 |
Dawon |
98 |
/*$img = 'preview.jpg';*/ |
678 |
Dawon |
99 |
$info = 'ProjectInfo.xml'; |
663 |
Dawon |
100 |
|
|
|
101 |
/* KONEC KONFIGURACE */ |
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
$adresar = opendir($path.$folder); |
|
|
109 |
while ($soubor = readdir($adresar)){ |
671 |
Dawon |
110 |
if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { |
677 |
Dawon |
111 |
$img = $soubor."_Small.jpg"; |
663 |
Dawon |
112 |
|
|
|
113 |
?> |
705 |
Dawon |
114 |
<table> |
668 |
Dawon |
115 |
<?php |
|
|
116 |
|
677 |
Dawon |
117 |
if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { |
725 |
Dawon |
118 |
if (file_exists($path.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html")) { |
|
|
119 |
echo "<tr><td><b><a href=\"".$www.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html\">".$soubor."</a></b></td></tr>\n"; |
|
|
120 |
} else { echo "<tr><td><b>".$soubor."</b></td></tr>\n"; } |
727 |
Dawon |
121 |
if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<tr><td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\" width=\"150\"></td>\n"; } |
|
|
122 |
else { echo "<tr><td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\" width=\"150\"></td>\n"; } |
677 |
Dawon |
123 |
if (file_exists($path.$folder.'/'.$soubor."/".$info)) { |
714 |
Dawon |
124 |
echo "<td><iframe src=".$www.$folder.'/'.$soubor."/".$info." scrolling=AUTO align=middle frameborder=0></iframe>"; |
677 |
Dawon |
125 |
echo "\n</td></tr>\n"; |
715 |
Dawon |
126 |
} else { echo "<td><i>Description isn't availible!!</i></td></tr>\n"; } |
|
|
127 |
echo "</table>\n\n"; |
677 |
Dawon |
128 |
} else { |
725 |
Dawon |
129 |
echo "<tr><td><b>".$soubor."</b></td></tr>\n"; |
668 |
Dawon |
130 |
?> |
|
|
131 |
<tr><td> |
|
|
132 |
<?php |
663 |
Dawon |
133 |
|
677 |
Dawon |
134 |
$adresar1 = opendir($path.$folder."/".$soubor); |
|
|
135 |
while ($soubor1 = readdir($adresar1)){ |
|
|
136 |
if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) { |
|
|
137 |
$img = $soubor1."_Small.jpg"; |
663 |
Dawon |
138 |
|
668 |
Dawon |
139 |
?> |
705 |
Dawon |
140 |
<table> |
674 |
Dawon |
141 |
<?php |
687 |
Dawon |
142 |
/*<tr><td colspan="2"><center><?php echo $soubor1; ?></center></td></tr>*/ |
|
|
143 |
|
677 |
Dawon |
144 |
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) { |
674 |
Dawon |
145 |
?> |
685 |
Dawon |
146 |
<tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td> |
674 |
Dawon |
147 |
<?php |
697 |
Dawon |
148 |
} else { echo "<tr><td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\" width=\"150\"></td>\n"; } |
728 |
Dawon |
149 |
|
|
|
150 |
echo "<td>"; |
724 |
Dawon |
151 |
if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/HTML/".$soubor1.".".$lang.".html")) { |
730 |
Dawon |
152 |
echo "<a href=\"".$www.$folder."/".$soubor."/".$soubor1."/DOC/HTML/".$soubor1.".".$lang.".html\">".$soubor1."</a>"; |
|
|
153 |
} else { echo $soubor1; } |
728 |
Dawon |
154 |
if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf")) { |
|
|
155 |
echo "<br><a href=\"".$www.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf\">PDF</a>\n"; |
|
|
156 |
} else { echo "\n"; } |
729 |
Dawon |
157 |
echo "<br><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&path=/Modules/".$soubor."/".$soubor1."/\">WebSVN</a>"; |
|
|
158 |
echo "</td>\n"; |
728 |
Dawon |
159 |
|
677 |
Dawon |
160 |
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) { |
714 |
Dawon |
161 |
echo "<td><iframe src=".$www.$folder.'/'.$soubor."/".$soubor1."/".$info." scrolling=AUTO align=middle frameborder=0></iframe>"; |
677 |
Dawon |
162 |
echo "\n</td></tr>\n"; |
716 |
Dawon |
163 |
} else { echo "<td><i>Description isn't availible!!</i></td></tr>\n"; } |
674 |
Dawon |
164 |
?> |
668 |
Dawon |
165 |
</table> |
|
|
166 |
<?php |
677 |
Dawon |
167 |
} |
|
|
168 |
} |
712 |
Dawon |
169 |
echo "</td></tr>\n"; |
|
|
170 |
echo "</table>\n\n"; |
677 |
Dawon |
171 |
} |
668 |
Dawon |
172 |
|
708 |
Dawon |
173 |
|
663 |
Dawon |
174 |
} |
|
|
175 |
} |
|
|
176 |
?> |
709 |
Dawon |
177 |
</div> |
663 |
Dawon |
178 |
|
719 |
Dawon |
179 |
<!-- AUTOINCLUDE START "Page/Footer.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> |
707 |
Dawon |
180 |
<!-- ============== PATIČKA ============== --> |
704 |
Dawon |
181 |
<div class="Footer"> |
|
|
182 |
<script type="text/javascript"> |
|
|
183 |
<!-- |
|
|
184 |
SetRelativePath("../"); |
|
|
185 |
DrawFooter(); |
|
|
186 |
// --> |
|
|
187 |
</script> |
|
|
188 |
<noscript> |
721 |
Dawon |
189 |
<?php if ($lang == "cs") {?> |
|
|
190 |
<p><b> Pro zobrazení (vložení) zápatí je potřeba JavaScript </b></p> |
|
|
191 |
<?php } else { ?> |
|
|
192 |
<p><b> JavaScript is required for including of the footer </b></p> |
|
|
193 |
<?php } ?> |
704 |
Dawon |
194 |
</noscript> |
|
|
195 |
</div> |
|
|
196 |
<!-- AUTOINCLUDE END --> |
|
|
197 |
|
|
|
198 |
|
|
|
199 |
|
663 |
Dawon |
200 |
</body> |
|
|
201 |
</html> |