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