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 |
<?php if ($lang == "cs") {?> |
34 |
<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 { ?> |
35 |
<?php } else { ?> |
36 |
<p><b> JavaScript is required for including of the header </b></p> |
36 |
<p><b> JavaScript is required for including of the header </b></p> |
37 |
<?php } ?> |
37 |
<?php } ?> |
38 |
</noscript> |
38 |
</noscript> |
39 |
</div> |
39 |
</div> |
40 |
<!-- AUTOINCLUDE END --> |
40 |
<!-- AUTOINCLUDE END --> |
41 |
|
41 |
|
42 |
<!-- AUTOINCLUDE START "Page/Menu.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> |
42 |
<!-- AUTOINCLUDE START "Page/Menu.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> |
43 |
<!-- ============== MENU ============== --> |
43 |
<!-- ============== MENU ============== --> |
44 |
<div class="Menu"> |
44 |
<div class="Menu"> |
45 |
<script type="text/javascript"> |
45 |
<script type="text/javascript"> |
46 |
<!-- |
46 |
<!-- |
47 |
SetRelativePath("../"); |
47 |
SetRelativePath("../"); |
48 |
DrawMenu(); |
48 |
DrawMenu(); |
49 |
// --> |
49 |
// --> |
50 |
</script> |
50 |
</script> |
51 |
<noscript> |
51 |
<noscript> |
52 |
<?php if ($lang == "cs") {?> |
52 |
<?php if ($lang == "cs") {?> |
53 |
<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 { ?> |
54 |
<?php } else { ?> |
55 |
<p><b> JavaScript is required for including of the menu </b><p> |
55 |
<p><b> JavaScript is required for including of the menu </b><p> |
56 |
<?php } ?> |
56 |
<?php } ?> |
57 |
</noscript> |
57 |
</noscript> |
58 |
</div> |
58 |
</div> |
59 |
<!-- AUTOINCLUDE END --> |
59 |
<!-- AUTOINCLUDE END --> |
60 |
|
60 |
|
61 |
|
61 |
|
62 |
|
62 |
|
63 |
<!-- ============== TEXT ============== --> |
63 |
<!-- ============== TEXT ============== --> |
64 |
<?php if ($lang == "en") { ?> |
64 |
<?php if ($lang == "en") { ?> |
65 |
<div class="Text"> |
65 |
<div class="Text"> |
66 |
<p class="Title"> |
66 |
<p class="Title"> |
67 |
Overview of MLAB Modules |
67 |
Overview of MLAB Modules |
68 |
</p> |
68 |
</p> |
69 |
<p class=Subtitle> |
69 |
<p class=Subtitle> |
70 |
|
70 |
|
71 |
</p> |
71 |
</p> |
72 |
|
72 |
|
73 |
<p class="Remark"> |
73 |
<p class="Remark"> |
74 |
|
74 |
|
75 |
</p> |
75 |
</p> |
76 |
<?php } else { ?> |
76 |
<?php } else { ?> |
77 |
<div class="Text"> |
77 |
<div class="Text"> |
78 |
<p class="Title"> |
78 |
<p class="Title"> |
79 |
Přehled modulů MLAB |
79 |
Přehled modulů MLAB |
80 |
</p> |
80 |
</p> |
81 |
<p class="Subtitle"> |
81 |
<p class="Subtitle"> |
82 |
|
82 |
|
83 |
</p> |
83 |
</p> |
84 |
|
84 |
|
85 |
<p class="Remark"> |
85 |
<p class="Remark"> |
86 |
|
86 |
|
87 |
</p> |
87 |
</p> |
88 |
<?php |
88 |
<?php |
89 |
} |
89 |
} |
90 |
/* KONFIGURACE */ |
90 |
/* KONFIGURACE */ |
91 |
$path = '/var/www/Web'; |
91 |
$path = '/var/www/Web'; |
92 |
$www = 'http://www.mlab.cz'; |
92 |
$www = 'http://www.mlab.cz'; |
93 |
$folder = '/../Modules'; |
93 |
$folder = '/../Modules'; |
94 |
/*$img = 'preview.jpg';*/ |
94 |
/*$img = 'preview.jpg';*/ |
95 |
$info = 'ProjectInfo.xml'; |
95 |
$info = 'ProjectInfo.xml'; |
96 |
$info1 = "info.".$lang.".txt"; |
96 |
$info1 = "info.".$lang.".txt"; |
97 |
|
97 |
|
98 |
/* KONEC KONFIGURACE */ |
98 |
/* KONEC KONFIGURACE */ |
99 |
|
99 |
|
100 |
|
100 |
|
101 |
|
101 |
|
102 |
echo "<table>\n"; |
102 |
echo "<table>\n"; |
103 |
|
103 |
|
104 |
if ($lang == "en") { |
104 |
if ($lang == "en") { |
105 |
echo "<tr><td>Preview</td><td>Name</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n"; |
105 |
echo "<tr><td>Preview</td><td>Name</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n"; |
106 |
} else { |
106 |
} else { |
107 |
echo "<tr><td>Náhled</td><td>Název</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n"; |
107 |
echo "<tr><td>Náhled</td><td>Název</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n"; |
108 |
} |
108 |
} |
109 |
|
109 |
|
110 |
if (isset($HTTP_GET_VARS["file"])) { |
110 |
if (isset($HTTP_GET_VARS["file"])) { |
111 |
include "modules.inc.php"; |
111 |
include "modules.inc.php"; |
112 |
} else { |
112 |
} else { |
113 |
$adresar = opendir($path.$folder); |
113 |
$adresar = opendir($path.$folder); |
114 |
while ($soubor = readdir($adresar)){ |
114 |
while ($soubor = readdir($adresar)){ |
115 |
if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { |
115 |
if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { |
116 |
$img = $soubor."_Small.jpg"; |
116 |
$img = $soubor."_Small.jpg"; |
117 |
|
117 |
|
118 |
if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { |
118 |
if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { |
119 |
echo "<tr>"; |
119 |
echo "<tr>"; |
120 |
/* if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\"></td>\n"; } |
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"; }*/ |
121 |
else { echo "<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\"></td>\n"; }*/ |
- |
|
122 |
if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<td><A HREF=\"thumb.php?pth=".$soubor."&fname=".$soubor."\" TARGET=\"_blank\"><img src=\"thumb.php?pth=".$soubor."&fname=".$soubor."\" border=\"0\"></a></td>\n"; |
122 |
echo "<td><img src=\"thumb.php?pth=".$soubor."&fname=".$soubor."\"></td>\n"; |
123 |
} else { echo "<td><img src=\"thumb.php?pth=".$soubor."&fname=".$soubor."\"></td>\n"; } |
123 |
if (file_exists($path.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html")) { |
124 |
if (file_exists($path.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html")) { |
124 |
echo "<td><b><a href=\"".$www.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html\">".$soubor."</a></b></td>\n"; |
125 |
echo "<td><b><a href=\"".$www.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html\">".$soubor."</a></b></td>\n"; |
125 |
} else { echo "<td><b>".$soubor."</b></td>\n"; } |
126 |
} else { echo "<td><b>".$soubor."</b></td>\n"; } |
126 |
if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf")) { |
127 |
if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf")) { |
127 |
echo "\n<td><a href=\"".$www.$folder."/".$soubor."/DOC/".$soubor.".".$lang.".pdf\">PDF</a></td>\n"; |
128 |
echo "\n<td><a href=\"".$www.$folder."/".$soubor."/DOC/".$soubor.".".$lang.".pdf\">PDF</a></td>\n"; |
128 |
} else { echo "\n<td>-</td>\n"; } |
129 |
} else { echo "\n<td>-</td>\n"; } |
129 |
// if (file_exists($path.$folder.'/'.$soubor."/".$info)) { |
130 |
// if (file_exists($path.$folder.'/'.$soubor."/".$info)) { |
130 |
// echo "<td><A HREF=".$www.$folder.'/'.$soubor."/".$info.">XML</A></td>\n"; |
131 |
// echo "<td><A HREF=".$www.$folder.'/'.$soubor."/".$info.">XML</A></td>\n"; |
131 |
// } else { echo "\n<td>-</td>\n"; } |
132 |
// } else { echo "\n<td>-</td>\n"; } |
132 |
echo "<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&path=/Modules/".$soubor."/\">WebSVN</a></td>\n"; |
133 |
echo "<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&path=/Modules/".$soubor."/\">WebSVN</a></td>\n"; |
133 |
if (file_exists($path.$folder.'/'.$soubor."/".$info1)) { |
134 |
if (file_exists($path.$folder.'/'.$soubor."/".$info1)) { |
134 |
$fp = FOpen ($path.$folder.'/'.$soubor."/".$info1, "r"); |
135 |
$fp = FOpen ($path.$folder.'/'.$soubor."/".$info1, "r"); |
135 |
$data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$info1)); |
136 |
$data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$info1)); |
136 |
FClose ($fp); |
137 |
FClose ($fp); |
137 |
echo "<td>".wordwrap($data, 50, "<br>")."</td>\n"; |
138 |
echo "<td>".wordwrap($data, 50, "<br>")."</td>\n"; |
138 |
} else { echo "\n<td><i>No description available</i></td>\n"; } |
139 |
} else { echo "\n<td><i>No description available</i></td>\n"; } |
139 |
echo "</tr>\n\n"; |
140 |
echo "</tr>\n\n"; |
140 |
} else { |
141 |
} else { |
141 |
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"; |
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"; |
142 |
echo "<td>-</td>\n<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&path=/Modules/".$soubor."/\">WebSVN</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"; |
143 |
if (file_exists($path.$folder.'/'.$soubor."/".$info1)) { |
144 |
if (file_exists($path.$folder.'/'.$soubor."/".$info1)) { |
144 |
$fp = FOpen ($path.$folder.'/'.$soubor."/".$info1, "r"); |
145 |
$fp = FOpen ($path.$folder.'/'.$soubor."/".$info1, "r"); |
145 |
$data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$info1)); |
146 |
$data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$info1)); |
146 |
FClose ($fp); |
147 |
FClose ($fp); |
147 |
echo "<td>".wordwrap($data, 50, "<br>")."</td>\n"; |
148 |
echo "<td>".wordwrap($data, 50, "<br>")."</td>\n"; |
148 |
} else { echo "\n<td><i>No description available</i></td>\n"; } |
149 |
} else { echo "\n<td><i>No description available</i></td>\n"; } |
149 |
echo "</tr>\n\n"; |
150 |
echo "</tr>\n\n"; |
150 |
} |
151 |
} |
151 |
} |
152 |
} |
152 |
} |
153 |
} |
153 |
} |
154 |
} |
154 |
?> |
155 |
?> |
155 |
</table> |
156 |
</table> |
156 |
</div> |
157 |
</div> |
157 |
|
158 |
|
158 |
<!-- AUTOINCLUDE START "Page/Footer.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> |
159 |
<!-- AUTOINCLUDE START "Page/Footer.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> |
159 |
<!-- ============== PATIČKA ============== --> |
160 |
<!-- ============== PATIČKA ============== --> |
160 |
<div class="Footer"> |
161 |
<div class="Footer"> |
161 |
<script type="text/javascript"> |
162 |
<script type="text/javascript"> |
162 |
<!-- |
163 |
<!-- |
163 |
SetRelativePath("../"); |
164 |
SetRelativePath("../"); |
164 |
DrawFooter(); |
165 |
DrawFooter(); |
165 |
// --> |
166 |
// --> |
166 |
</script> |
167 |
</script> |
167 |
<noscript> |
168 |
<noscript> |
168 |
<?php if ($lang == "cs") {?> |
169 |
<?php if ($lang == "cs") {?> |
169 |
<p><b> Pro zobrazení (vložení) zápatí je potřeba JavaScript </b></p> |
170 |
<p><b> Pro zobrazení (vložení) zápatí je potřeba JavaScript </b></p> |
170 |
<?php } else { ?> |
171 |
<?php } else { ?> |
171 |
<p><b> JavaScript is required for including of the footer </b></p> |
172 |
<p><b> JavaScript is required for including of the footer </b></p> |
172 |
<?php } ?> |
173 |
<?php } ?> |
173 |
</noscript> |
174 |
</noscript> |
174 |
</div> |
175 |
</div> |
175 |
<!-- AUTOINCLUDE END --> |
176 |
<!-- AUTOINCLUDE END --> |
176 |
|
177 |
|
177 |
|
178 |
|
178 |
|
179 |
|
179 |
</body> |
180 |
</body> |
180 |
</html> |
181 |
</html> |