Rev 767 Rev 768
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 echo "<td><img src=\"thumb.php?pth=".$soubor."&fname=".$soubor."\"></td>\n"; 122 echo "<td><img src=\"thumb.php?pth=".$soubor."&fname=".$soubor."\"></td>\n";
123 if (file_exists($path.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html")) { 123 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"; 124 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"; } 125 } else { echo "<td><b>".$soubor."</b></td>\n"; }
126 if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf")) { 126 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"; 127 echo "\n<td><a href=\"".$www.$folder."/".$soubor."/DOC/".$soubor.".".$lang.".pdf\">PDF</a></td>\n";
128 } else { echo "\n<td>-</td>\n"; } 128 } else { echo "\n<td>-</td>\n"; }
129 // if (file_exists($path.$folder.'/'.$soubor."/".$info)) { 129 // if (file_exists($path.$folder.'/'.$soubor."/".$info)) {
130 // echo "<td><A HREF=".$www.$folder.'/'.$soubor."/".$info.">XML</A></td>\n"; 130 // echo "<td><A HREF=".$www.$folder.'/'.$soubor."/".$info.">XML</A></td>\n";
131 // } else { echo "\n<td>-</td>\n"; } 131 // } else { echo "\n<td>-</td>\n"; }
132 echo "<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=/Modules/".$soubor."/\">WebSVN</a></td>\n"; 132 echo "<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=/Modules/".$soubor."/\">WebSVN</a></td>\n";
133 if (file_exists($path.$folder.'/'.$soubor."/".$info1)) { 133 if (file_exists($path.$folder.'/'.$soubor."/".$info1)) {
134 $fp = FOpen ($path.$folder.'/'.$soubor."/".$info1, "r"); 134 $fp = FOpen ($path.$folder.'/'.$soubor."/".$info1, "r");
135 $data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$info1)); 135 $data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$info1));
136 FClose ($fp); 136 FClose ($fp);
137 echo "<td>".wordwrap($data, 50, "<br>")."</td>\n"; 137 echo "<td>".wordwrap($data, 50, "<br>")."</td>\n";
138 } else { echo "\n<td><i>No description available!!</i></td>\n"; } 138 } else { echo "\n<td><i>No description available!!</i></td>\n"; }
139 echo "</tr>\n\n"; 139 echo "</tr>\n\n";
140 } else { 140 } else {
141 echo "<tr>\n<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\"></td>\n<td><a href=\"modules.php?lang=".$lang."&file=".$soubor."\">".$soubor."</a></td>\n"; 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 "<td>-</td>\n<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=/Modules/".$soubor."/\">WebSVN</a></td>\n<td><i>No description available!!</i></td></tr>\n\n"; 142 echo "<td>-</td>\n<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=/Modules/".$soubor."/\">WebSVN</a></td>\n<td><i>No description available!!</i></td></tr>\n\n";
143 } 143 }
144 } 144 }
145 } 145 }
146 } 146 }
147 ?> 147 ?>
148 </table> 148 </table>
149 </div> 149 </div>
150   150  
151 <!-- AUTOINCLUDE START "Page/Footer.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> 151 <!-- AUTOINCLUDE START "Page/Footer.<?php echo $lang; ?>.ihtml" DO NOT REMOVE -->
152 <!-- ============== PATIČKA ============== --> 152 <!-- ============== PATIČKA ============== -->
153 <div class="Footer"> 153 <div class="Footer">
154 <script type="text/javascript"> 154 <script type="text/javascript">
155 <!-- 155 <!--
156 SetRelativePath("../"); 156 SetRelativePath("../");
157 DrawFooter(); 157 DrawFooter();
158 // --> 158 // -->
159 </script> 159 </script>
160 <noscript> 160 <noscript>
161 <?php if ($lang == "cs") {?> 161 <?php if ($lang == "cs") {?>
162 <p><b> Pro zobrazení (vložení) zápatí je potřeba JavaScript </b></p> 162 <p><b> Pro zobrazení (vložení) zápatí je potřeba JavaScript </b></p>
163 <?php } else { ?> 163 <?php } else { ?>
164 <p><b> JavaScript is required for including of the footer </b></p> 164 <p><b> JavaScript is required for including of the footer </b></p>
165 <?php } ?> 165 <?php } ?>
166 </noscript> 166 </noscript>
167 </div> 167 </div>
168 <!-- AUTOINCLUDE END --> 168 <!-- AUTOINCLUDE END -->
169   169  
170   170  
171   171  
172 </body> 172 </body>
173 </html> 173 </html>