Rev 739 Rev 740
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 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
71 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
72 variously. 72 variously.
73 </p> 73 </p>
74   74  
75 <p class="Remark"> 75 <p class="Remark">
76 Automatic generation is not written yet. 76 Automatic generation is not written yet.
77 </p> 77 </p>
78 <?php } else { ?> 78 <?php } else { ?>
79 <div class="Text"> 79 <div class="Text">
80 <p class="Title"> 80 <p class="Title">
81 Přehled modulů MLAB 81 Přehled modulů MLAB
82 </p> 82 </p>
83 <p class="Subtitle"> 83 <p class="Subtitle">
84 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
85 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.
86 </p> 86 </p>
87   87  
88 <p class="Remark"> 88 <p class="Remark">
89 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
90 zde zatím jen statické odkazy. 90 zde zatím jen statické odkazy.
91 </p> 91 </p>
92 <?php 92 <?php
93 } 93 }
94 /* KONFIGURACE */ 94 /* KONFIGURACE */
95 $path = '/var/www/Web'; 95 $path = '/var/www/Web';
96 $www = 'http://www.mlab.cz'; 96 $www = 'http://www.mlab.cz';
97 $folder = '/../Modules'; 97 $folder = '/../Modules';
98 /*$img = 'preview.jpg';*/ 98 /*$img = 'preview.jpg';*/
99 $info = 'ProjectInfo.xml'; 99 $info = 'ProjectInfo.xml';
100   100  
101 /* KONEC KONFIGURACE */ 101 /* KONEC KONFIGURACE */
102   102  
103   103  
104   104  
105 echo "<table>\n"; 105 echo "<table>\n";
106   106  
107 if ($lang == "en") { 107 if ($lang == "en") {
108 echo "<tr><td>Preview</td><td>Name</td><td>PDF</td><td>XML</td><td>WebSVN</td></tr>\n"; 108 echo "<tr><td>Preview</td><td>Name</td><td>PDF</td><td>XML</td><td>WebSVN</td></tr>\n";
109 } else { 109 } else {
110 echo "<tr><td>Náhled</td><td>Název</td><td>PDF</td><td>XML</td><td>WebSVN</td></tr>\n"; 110 echo "<tr><td>Náhled</td><td>Název</td><td>PDF</td><td>XML</td><td>WebSVN</td></tr>\n";
111 } 111 }
112   112  
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."\" width=\"50\"></td>\n"; } 120 if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\" width=\"100\"></td>\n"; }
121 else { echo "<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\" width=\"50\"></td>\n"; } 121 else { echo "<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\" width=\"100\"></td>\n"; }
122 if (file_exists($path.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html")) { 122 if (file_exists($path.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html")) {
123 echo "<td><b><a href=\"".$www.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html\">".$soubor."</a></b></td>\n"; 123 echo "<td><b><a href=\"".$www.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html\">".$soubor."</a></b></td>\n";
124 } else { echo "<td><b>".$soubor."</b></td>\n"; } 124 } else { echo "<td><b>".$soubor."</b></td>\n"; }
125 if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf")) { 125 if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf")) {
126 echo "\n<td><a href=\"".$www.$folder."/".$soubor."/DOC/".$soubor.".".$lang.".pdf\">PDF</a></td>\n"; 126 echo "\n<td><a href=\"".$www.$folder."/".$soubor."/DOC/".$soubor.".".$lang.".pdf\">PDF</a></td>\n";
127 } else { echo "\n<td>-</td>\n"; } 127 } else { echo "\n<td>-</td>\n"; }
128 if (file_exists($path.$folder.'/'.$soubor."/".$info)) { 128 if (file_exists($path.$folder.'/'.$soubor."/".$info)) {
129 echo "<td><A HREF=".$www.$folder.'/'.$soubor."/".$info.">XML</A>\n"; 129 echo "<td><A HREF=".$www.$folder.'/'.$soubor."/".$info.">XML</A>\n";
130 } else { echo "\n<td>-</td>\n"; } 130 } else { echo "\n<td>-</td>\n"; }
131 echo "<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=/Modules/".$soubor."/\">WebSVN</a></td>\n"; 131 echo "<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=/Modules/".$soubor."/\">WebSVN</a></td>\n";
132 echo "</tr>\n\n"; 132 echo "</tr>\n\n";
133 } else { 133 } else {
134 echo "<tr>\n"; 134 echo "<tr>\n";
135 $adresar1 = opendir($path.$folder."/".$soubor); 135 $adresar1 = opendir($path.$folder."/".$soubor);
136 while ($soubor1 = readdir($adresar1)){ 136 while ($soubor1 = readdir($adresar1)){
137 if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) { 137 if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) {
138 $img = $soubor1."_Small.jpg"; 138 $img = $soubor1."_Small.jpg";
139   139  
140   140  
141   141  
142 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) { 142 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) {
143 echo "<td><img src=\"".$www.$folder.'/'.$soubor."/".$soubor1."/".$img."\" width=\"50\"></td>"; 143 echo "<td><img src=\"".$www.$folder.'/'.$soubor."/".$soubor1."/".$img."\" width=\"100\"></td>";
144 } else { echo "<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\" width=\"50\"></td>\n"; } 144 } else { echo "<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\" width=\"100\"></td>\n"; }
145   145  
146 if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/HTML/".$soubor1.".".$lang.".html")) { 146 if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/HTML/".$soubor1.".".$lang.".html")) {
147 echo "<td><a href=\"".$www.$folder."/".$soubor."/".$soubor1."/DOC/HTML/".$soubor1.".".$lang.".html\">".$soubor."/<b>".$soubor1."</b></a></td>\n"; 147 echo "<td><a href=\"".$www.$folder."/".$soubor."/".$soubor1."/DOC/HTML/".$soubor1.".".$lang.".html\">".$soubor."/<b>".$soubor1."</b></a></td>\n";
148 } else { echo "<td>".$soubor."/<b>".$soubor1."</b></td>\n"; } 148 } else { echo "<td>".$soubor."/<b>".$soubor1."</b></td>\n"; }
149 if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf")) { 149 if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf")) {
150 echo "<td><a href=\"".$www.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf\">PDF</a></td>\n"; 150 echo "<td><a href=\"".$www.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf\">PDF</a></td>\n";
151 } else { echo "\n<td>-</td>\n"; } 151 } else { echo "\n<td>-</td>\n"; }
152 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) { 152 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) {
153 echo "<td><a href=".$www.$folder.'/'.$soubor."/".$soubor1."/".$info.">XML</a></td>\n"; 153 echo "<td><a href=".$www.$folder.'/'.$soubor."/".$soubor1."/".$info.">XML</a></td>\n";
154 } else { echo "<td>-</td>\n"; } 154 } else { echo "<td>-</td>\n"; }
155 echo "<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=/Modules/".$soubor."/".$soubor1."/\">WebSVN</a></td>\n"; 155 echo "<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=/Modules/".$soubor."/".$soubor1."/\">WebSVN</a></td>\n";
156 echo "</tr>\n\n"; 156 echo "</tr>\n\n";
157 } 157 }
158 } 158 }
159 } 159 }
160 } 160 }
161 } 161 }
162 ?> 162 ?>
163 </table> 163 </table>
164 </div> 164 </div>
165   165  
166 <!-- AUTOINCLUDE START "Page/Footer.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> 166 <!-- AUTOINCLUDE START "Page/Footer.<?php echo $lang; ?>.ihtml" DO NOT REMOVE -->
167 <!-- ============== PATIČKA ============== --> 167 <!-- ============== PATIČKA ============== -->
168 <div class="Footer"> 168 <div class="Footer">
169 <script type="text/javascript"> 169 <script type="text/javascript">
170 <!-- 170 <!--
171 SetRelativePath("../"); 171 SetRelativePath("../");
172 DrawFooter(); 172 DrawFooter();
173 // --> 173 // -->
174 </script> 174 </script>
175 <noscript> 175 <noscript>
176 <?php if ($lang == "cs") {?> 176 <?php if ($lang == "cs") {?>
177 <p><b> Pro zobrazení (vložení) zápatí je potřeba JavaScript </b></p> 177 <p><b> Pro zobrazení (vložení) zápatí je potřeba JavaScript </b></p>
178 <?php } else { ?> 178 <?php } else { ?>
179 <p><b> JavaScript is required for including of the footer </b></p> 179 <p><b> JavaScript is required for including of the footer </b></p>
180 <?php } ?> 180 <?php } ?>
181 </noscript> 181 </noscript>
182 </div> 182 </div>
183 <!-- AUTOINCLUDE END --> 183 <!-- AUTOINCLUDE END -->
184   184  
185   185  
186   186  
187 </body> 187 </body>
188 </html> 188 </html>