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 |
|
- |
|
23 |
<!-- AUTOINCLUDE START "Page/Header.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> |
22 |
<!-- AUTOINCLUDE START "Page/Header.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> |
24 |
<!-- ============== HLAVICKA ============== --> |
23 |
<!-- ============== HLAVICKA ============== --> |
25 |
<div class="Header"> |
24 |
<div class="Header"> |
26 |
<script type="text/javascript"> |
25 |
<script type="text/javascript"> |
27 |
<!-- |
26 |
<!-- |
28 |
SetRelativePath("../"); |
27 |
SetRelativePath("../"); |
29 |
DrawHeader(); |
28 |
DrawHeader(); |
30 |
// --> |
29 |
// --> |
31 |
</script> |
30 |
</script> |
32 |
<noscript> |
31 |
<noscript> |
33 |
<?php if ($lang == "cs") {?> |
32 |
<?php if ($lang == "cs") {?> |
34 |
<p><b> Pro zobrazení (vložení) hlavičky je potřeba JavaScript </b></p> |
33 |
<p><b> Pro zobrazení (vloení) hlavièky je potøeba JavaScript </b></p> |
35 |
<?php } else { ?> |
34 |
<?php } else { ?> |
36 |
<p><b> JavaScript is required for including of the header </b></p> |
35 |
<p><b> JavaScript is required for including of the header </b></p> |
37 |
<?php } ?> |
36 |
<?php } ?> |
38 |
</noscript> |
37 |
</noscript> |
39 |
</div> |
38 |
</div> |
40 |
<!-- AUTOINCLUDE END --> |
39 |
<!-- AUTOINCLUDE END --> |
41 |
|
40 |
|
42 |
<!-- AUTOINCLUDE START "Page/Menu.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> |
41 |
<!-- AUTOINCLUDE START "Page/Menu.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> |
43 |
<!-- ============== MENU ============== --> |
42 |
<!-- ============== MENU ============== --> |
44 |
<div class="Menu"> |
43 |
<div class="Menu"> |
45 |
<script type="text/javascript"> |
44 |
<script type="text/javascript"> |
46 |
<!-- |
45 |
<!-- |
47 |
SetRelativePath("../"); |
46 |
SetRelativePath("../"); |
48 |
DrawMenu(); |
47 |
DrawMenu(); |
49 |
// --> |
48 |
// --> |
50 |
</script> |
49 |
</script> |
51 |
<noscript> |
50 |
<noscript> |
52 |
<?php if ($lang == "cs") {?> |
51 |
<?php if ($lang == "cs") {?> |
53 |
<p><b> Pro zobrazení (vložení) menu je potřeba JavaScript </b></p> |
52 |
<p><b> Pro zobrazení (vloení) menu je potøeba JavaScript </b></p> |
54 |
<?php } else { ?> |
53 |
<?php } else { ?> |
55 |
<p><b> JavaScript is required for including of the menu </b><p> |
54 |
<p><b> JavaScript is required for including of the menu </b><p> |
56 |
<?php } ?> |
55 |
<?php } ?> |
57 |
</noscript> |
56 |
</noscript> |
58 |
</div> |
57 |
</div> |
59 |
<!-- AUTOINCLUDE END --> |
58 |
<!-- AUTOINCLUDE END --> |
60 |
|
59 |
|
61 |
|
- |
|
62 |
|
- |
|
63 |
<!-- ============== TEXT ============== --> |
60 |
<!-- ============== TEXT ============== --> |
64 |
<?php if ($lang == "en") { ?> |
61 |
<?php if ($lang == "en") { ?> |
65 |
<div class="Text"> |
62 |
<div class="Text"> |
66 |
<p class="Title"> |
63 |
<p class="Title"> |
67 |
Overview of MLAB Modules |
64 |
Overview of MLAB Modules |
68 |
</p> |
65 |
</p> |
69 |
<p class=Subtitle> |
- |
|
70 |
|
- |
|
71 |
</p> |
- |
|
72 |
|
- |
|
73 |
<p class="Remark"> |
- |
|
74 |
|
- |
|
75 |
</p> |
- |
|
76 |
<?php } else { ?> |
66 |
<?php } else { ?> |
77 |
<div class="Text"> |
67 |
<div class="Text"> |
78 |
<p class="Title"> |
68 |
<p class="Title"> |
79 |
Přehled modulů MLAB |
69 |
Pøehled modulù MLAB |
80 |
</p> |
- |
|
81 |
<p class="Subtitle"> |
- |
|
82 |
|
- |
|
83 |
</p> |
- |
|
84 |
|
- |
|
85 |
<p class="Remark"> |
- |
|
86 |
|
- |
|
87 |
</p> |
70 |
</p> |
88 |
<?php |
71 |
<?php |
89 |
} |
72 |
} |
90 |
/* KONFIGURACE */ |
73 |
/* KONFIGURACE */ |
- |
|
74 |
|
- |
|
75 |
/*Cesta k webu*/ |
91 |
$path = '/var/www/Web'; |
76 |
$path = '/var/www/Web'; |
- |
|
77 |
/*Adresa webu*/ |
92 |
$www = 'http://www.mlab.cz'; |
78 |
$www = 'http://www.mlab.cz'; |
- |
|
79 |
/*Cesta do sloky modulù vztaena k Cestì k webu*/ |
93 |
$folder = '/../Modules'; |
80 |
$folder = '/../Modules'; |
- |
|
81 |
/*Suffix obrázkù s modulama*/ |
94 |
/*$img = 'preview.jpg';*/ |
82 |
$img = '_Small.jpg'; |
95 |
$info = 'ProjectInfo.xml'; |
83 |
/*Název souboru s popisem*/ |
96 |
$info1 = "info.".$lang.".txt"; |
84 |
$info1 = "info.".$lang.".txt"; |
97 |
|
85 |
|
98 |
/* KONEC KONFIGURACE */ |
86 |
/* KONEC KONFIGURACE */ |
99 |
|
87 |
|
100 |
|
- |
|
101 |
|
- |
|
- |
|
88 |
/*Hlavièka tabulky*/ |
102 |
echo "<table>\n"; |
89 |
echo "<table>\n"; |
103 |
|
90 |
|
104 |
if ($lang == "en") { |
91 |
if ($lang == "en") { |
105 |
echo "<tr><td>Preview</td><td>Name</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n"; |
92 |
echo "<tr><td>Preview</td><td>Name</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n"; |
106 |
} else { |
93 |
} else { |
107 |
echo "<tr><td>Náhled</td><td>Název</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n"; |
94 |
echo "<tr><td>Náhled</td><td>Název</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n"; |
108 |
} |
95 |
} |
- |
|
96 |
/*Konec Hlavièky tabulky*/ |
109 |
|
97 |
|
110 |
if (isset($HTTP_GET_VARS["file"])) { |
98 |
if (isset($HTTP_GET_VARS["file"])) { |
- |
|
99 |
/*Pokud je v adrese urèen parametr file naincludovat soubor modules.inc.php*/ |
111 |
include "modules.inc.php"; |
100 |
include "modules.inc.php"; |
112 |
} else { |
101 |
} else { |
- |
|
102 |
/*V opaèném pøípadì pøidat øádek s modulem do tabulky*/ |
- |
|
103 |
|
- |
|
104 |
/*Naètení adresáøe*/ |
113 |
$adresar = opendir($path.$folder); |
105 |
$adresar = opendir($path.$folder); |
114 |
while ($soubor = readdir($adresar)){ |
106 |
while ($soubor = readdir($adresar)){ |
- |
|
107 |
/*Je daný soubor sloka?, Nezaèíná na teèku?, Nezaèíná na vykøièník?*/ |
115 |
if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { |
108 |
if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { |
116 |
$img = $soubor."_Small.jpg"; |
109 |
$img = $soubor.$img; |
117 |
|
110 |
|
- |
|
111 |
/*Zjitìní, zda je modul pøímo v podsloce sloky Modules nebo zda je v podsloce podsloky...*/ |
118 |
if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { |
112 |
if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { |
119 |
echo "<tr>"; |
113 |
echo "<tr>"; |
120 |
/* if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\"></td>\n"; } |
- |
|
121 |
else { echo "<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\"></td>\n"; }*/ |
114 |
/*Zobrazení náhledu, pokud existuje*/ |
122 |
if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<td><A HREF=\"image.php?pth=".$soubor."&fname=".$soubor."\" TARGET=\"_blank\"><img src=\"thumb.php?pth=".$soubor."&fname=".$soubor."\" border=\"0\"></a></td>\n"; |
115 |
if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<td><A HREF=\"image.php?pth=".$soubor."&fname=".$soubor."\" TARGET=\"_blank\"><img src=\"thumb.php?pth=".$soubor."&fname=".$soubor."\" border=\"0\"></a></td>\n"; |
123 |
} else { echo "<td><img src=\"thumb.php?pth=".$soubor."&fname=".$soubor."\"></td>\n"; } |
116 |
} else { echo "<td><img src=\"thumb.php?pth=".$soubor."&fname=".$soubor."\"></td>\n"; } |
- |
|
117 |
/*Zobrazení odkazu na dotyèný modul (pokud popis k modulu neexistuje zobrazit statický text)*/ |
124 |
if (file_exists($path.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html")) { |
118 |
if (file_exists($path.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html")) { |
125 |
echo "<td><b><a href=\"".$www.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html\">".$soubor."</a></b></td>\n"; |
119 |
echo "<td><b><a href=\"".$www.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html\">".$soubor."</a></b></td>\n"; |
126 |
} else { echo "<td><b>".$soubor."</b></td>\n"; } |
120 |
} else { echo "<td><b>".$soubor."</b></td>\n"; } |
- |
|
121 |
/*Zobrazení odkazu na PDF dokumentaci, pokud existuje*/ |
127 |
if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf")) { |
122 |
if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf")) { |
128 |
echo "\n<td><a href=\"".$www.$folder."/".$soubor."/DOC/".$soubor.".".$lang.".pdf\">PDF</a></td>\n"; |
123 |
echo "\n<td><a href=\"".$www.$folder."/".$soubor."/DOC/".$soubor.".".$lang.".pdf\">PDF</a></td>\n"; |
129 |
} else { echo "\n<td>-</td>\n"; } |
124 |
} else { echo "\n<td>-</td>\n"; } |
130 |
// if (file_exists($path.$folder.'/'.$soubor."/".$info)) { |
- |
|
131 |
// echo "<td><A HREF=".$www.$folder.'/'.$soubor."/".$info.">XML</A></td>\n"; |
- |
|
132 |
// } else { echo "\n<td>-</td>\n"; } |
125 |
/*Odkaz na WebSVN*/ |
133 |
echo "<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&path=/Modules/".$soubor."/\">WebSVN</a></td>\n"; |
126 |
echo "<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&path=/Modules/".$soubor."/\">WebSVN</a></td>\n"; |
- |
|
127 |
/*Zobrazení krátkého popisu k modulu, pokud existuje*/ |
134 |
if (file_exists($path.$folder.'/'.$soubor."/".$info1)) { |
128 |
if (file_exists($path.$folder.'/'.$soubor."/".$info1)) { |
135 |
$fp = FOpen ($path.$folder.'/'.$soubor."/".$info1, "r"); |
129 |
$fp = FOpen ($path.$folder.'/'.$soubor."/".$info1, "r"); |
136 |
$data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$info1)); |
130 |
$data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$info1)); |
137 |
FClose ($fp); |
131 |
FClose ($fp); |
138 |
echo "<td>".wordwrap($data, 50, "<br>")."</td>\n"; |
132 |
echo "<td>".wordwrap($data, 50, "<br>")."</td>\n"; |
139 |
} else { echo "\n<td><i>No description available</i></td>\n"; } |
133 |
} else { echo "\n<td><i>No description available</i></td>\n"; } |
140 |
echo "</tr>\n\n"; |
134 |
echo "</tr>\n\n"; |
141 |
} else { |
135 |
} else { |
- |
|
136 |
/*Pokud se jedná o modul, který je v podsloce sloky |
- |
|
137 |
modulu (napø /nazev_modulu/nazev_moduluV01A/) includovat soubor modules.inc.php*/ |
- |
|
138 |
/*Zobrazení hodnot do tabulky*/ |
142 |
echo "<tr>\n<td><img src=\"thumb.php?pth=xxx&fname=xxx\"></td>\n<td><a href=\"modules.php?lang=".$lang."&file=".$soubor."\">".$soubor."</a></td>\n"; |
139 |
echo "<tr>\n<td><img src=\"thumb.php?pth=xxx&fname=xxx\"></td>\n<td><a href=\"modules.php?lang=".$lang."&file=".$soubor."\">".$soubor."</a></td>\n"; |
143 |
echo "<td>-</td>\n<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&path=/Modules/".$soubor."/\">WebSVN</a></td>\n"; |
140 |
echo "<td>-</td>\n<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&path=/Modules/".$soubor."/\">WebSVN</a></td>\n"; |
- |
|
141 |
/*Zobrazení krátkého popisu k modulu, pokud existuje*/ |
144 |
if (file_exists($path.$folder.'/'.$soubor."/".$info1)) { |
142 |
if (file_exists($path.$folder.'/'.$soubor."/".$info1)) { |
145 |
$fp = FOpen ($path.$folder.'/'.$soubor."/".$info1, "r"); |
143 |
$fp = FOpen ($path.$folder.'/'.$soubor."/".$info1, "r"); |
146 |
$data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$info1)); |
144 |
$data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$info1)); |
147 |
FClose ($fp); |
145 |
FClose ($fp); |
148 |
echo "<td>".wordwrap($data, 50, "<br>")."</td>\n"; |
146 |
echo "<td>".wordwrap($data, 50, "<br>")."</td>\n"; |
149 |
} else { echo "\n<td><i>No description available</i></td>\n"; } |
147 |
} else { echo "\n<td><i>No description available</i></td>\n"; } |
150 |
echo "</tr>\n\n"; |
148 |
echo "</tr>\n\n"; |
151 |
} |
149 |
} |
152 |
} |
150 |
} |
153 |
} |
151 |
} |
154 |
} |
152 |
} |
155 |
?> |
153 |
?> |
156 |
</table> |
154 |
</table> |
157 |
</div> |
155 |
</div> |
158 |
|
156 |
|
159 |
<!-- AUTOINCLUDE START "Page/Footer.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> |
157 |
<!-- AUTOINCLUDE START "Page/Footer.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> |
160 |
<!-- ============== PATIČKA ============== --> |
158 |
<!-- ============== PATIÈKA ============== --> |
161 |
<div class="Footer"> |
159 |
<div class="Footer"> |
162 |
<script type="text/javascript"> |
160 |
<script type="text/javascript"> |
163 |
<!-- |
161 |
<!-- |
164 |
SetRelativePath("../"); |
162 |
SetRelativePath("../"); |
165 |
DrawFooter(); |
163 |
DrawFooter(); |
166 |
// --> |
164 |
// --> |
167 |
</script> |
165 |
</script> |
168 |
<noscript> |
166 |
<noscript> |
169 |
<?php if ($lang == "cs") {?> |
167 |
<?php if ($lang == "cs") {?> |
170 |
<p><b> Pro zobrazení (vložení) zápatí je potřeba JavaScript </b></p> |
168 |
<p><b> Pro zobrazení (vloení) zápatí je potøeba JavaScript </b></p> |
171 |
<?php } else { ?> |
169 |
<?php } else { ?> |
172 |
<p><b> JavaScript is required for including of the footer </b></p> |
170 |
<p><b> JavaScript is required for including of the footer </b></p> |
173 |
<?php } ?> |
171 |
<?php } ?> |
174 |
</noscript> |
172 |
</noscript> |
175 |
</div> |
173 |
</div> |
176 |
<!-- AUTOINCLUDE END --> |
174 |
<!-- AUTOINCLUDE END --> |
177 |
|
175 |
|
178 |
|
- |
|
179 |
|
- |
|
180 |
</body> |
176 |
</body> |
181 |
</html> |
177 |
</html> |