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