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