Rev 718 Rev 719
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.cs.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> 21 <body>
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 <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>
34 </noscript> 34 </noscript>
35 </div> 35 </div>
36 <!-- AUTOINCLUDE END --> 36 <!-- AUTOINCLUDE END -->
37   37  
38 <!-- AUTOINCLUDE START "Page/Menu.<?php echo $lang; ?>.ihtml" DO NOT REMOVE --> 38 <!-- AUTOINCLUDE START "Page/Menu.<?php echo $lang; ?>.ihtml" DO NOT REMOVE -->
39 <!-- ============== MENU ============== --> 39 <!-- ============== MENU ============== -->
40 <div class="Menu"> 40 <div class="Menu">
41 <script type="text/javascript"> 41 <script type="text/javascript">
42 <!-- 42 <!--
43 SetRelativePath("../"); 43 SetRelativePath("../");
44 DrawMenu(); 44 DrawMenu();
45 // --> 45 // -->
46 </script> 46 </script>
47 <noscript> 47 <noscript>
48 <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>
49 </noscript> 49 </noscript>
50 </div> 50 </div>
51 <!-- AUTOINCLUDE END --> 51 <!-- AUTOINCLUDE END -->
52   52  
53   53  
54   54  
55 <!-- ============== TEXT ============== --> 55 <!-- ============== TEXT ============== -->
56 <?php if ($lang == "en") { ?> 56 <?php if ($lang == "en") { ?>
57 <div class="Text"> 57 <div class="Text">
58 <p class="Title"> 58 <p class="Title">
59 Overview of MLAB Modules 59 Overview of MLAB Modules
60 </p> 60 </p>
61 <p class=Subtitle> 61 <p class=Subtitle>
62 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
63 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
64 variously. 64 variously.
65 </p> 65 </p>
66   66  
67 <p class="Remark"> 67 <p class="Remark">
68 Automatic generation is not written yet. 68 Automatic generation is not written yet.
69 </p> 69 </p>
70 <?php } else { ?> 70 <?php } else { ?>
71 <div class="Text"> 71 <div class="Text">
72 <p class="Title"> 72 <p class="Title">
73 Přehled modulů MLAB 73 Přehled modulů MLAB
74 </p> 74 </p>
75 <p class="Subtitle"> 75 <p class="Subtitle">
76 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
77 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.
78 </p> 78 </p>
79   79  
80 <p class="Remark"> 80 <p class="Remark">
81 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
82 zde zatím jen statické odkazy. 82 zde zatím jen statické odkazy.
83 </p> 83 </p>
84 <?php 84 <?php
85 } 85 }
86 /* KONFIGURACE */ 86 /* KONFIGURACE */
87 $path = '/var/www/Web'; 87 $path = '/var/www/Web';
88 $www = 'http://www.mlab.cz'; 88 $www = 'http://www.mlab.cz';
89 $folder = '/../Modules'; 89 $folder = '/../Modules';
90 /*$img = 'preview.jpg';*/ 90 /*$img = 'preview.jpg';*/
91 $info = 'ProjectInfo.xml'; 91 $info = 'ProjectInfo.xml';
92   92  
93 /* KONEC KONFIGURACE */ 93 /* KONEC KONFIGURACE */
94   94  
95   95  
96   96  
97   97  
98   98  
99   99  
100 $adresar = opendir($path.$folder); 100 $adresar = opendir($path.$folder);
101 while ($soubor = readdir($adresar)){ 101 while ($soubor = readdir($adresar)){
102 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) <> "!")) {
103 $img = $soubor."_Small.jpg"; 103 $img = $soubor."_Small.jpg";
104   104  
105 ?> 105 ?>
106 <table> 106 <table>
107 <tr><td><b><?php echo $soubor; ?></b></td></tr> 107 <tr><td><b><?php echo $soubor; ?></b></td></tr>
108 <?php 108 <?php
109   109  
110 if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { 110 if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) {
111 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"; }
112 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"; }
113 if (file_exists($path.$folder.'/'.$soubor."/".$info)) { 113 if (file_exists($path.$folder.'/'.$soubor."/".$info)) {
114 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>";
115 echo "\n</td></tr>\n"; 115 echo "\n</td></tr>\n";
116 } 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"; }
117 echo "</table>\n\n"; 117 echo "</table>\n\n";
118 } else { 118 } else {
119   119  
120 ?> 120 ?>
121 <tr><td> 121 <tr><td>
122 <?php 122 <?php
123   123  
124 $adresar1 = opendir($path.$folder."/".$soubor); 124 $adresar1 = opendir($path.$folder."/".$soubor);
125 while ($soubor1 = readdir($adresar1)){ 125 while ($soubor1 = readdir($adresar1)){
126 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) <> "!")) {
127 $img = $soubor1."_Small.jpg"; 127 $img = $soubor1."_Small.jpg";
128   128  
129 ?> 129 ?>
130 <table> 130 <table>
131 <?php 131 <?php
132 /*<tr><td colspan="2"><center><?php echo $soubor1; ?></center></td></tr>*/ 132 /*<tr><td colspan="2"><center><?php echo $soubor1; ?></center></td></tr>*/
133   133  
134 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) { 134 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) {
135 ?> 135 ?>
136 <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>
137 <?php 137 <?php
138 } 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"; }
139 echo "<td>".$soubor1."</td>\n"; 139 echo "<td>".$soubor1."</td>\n";
140 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) { 140 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) {
141 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>";
142 echo "\n</td></tr>\n"; 142 echo "\n</td></tr>\n";
143 } 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"; }
144 ?> 144 ?>
145 </table> 145 </table>
146 <?php 146 <?php
147 } 147 }
148 } 148 }
149 echo "</td></tr>\n"; 149 echo "</td></tr>\n";
150 echo "</table>\n\n"; 150 echo "</table>\n\n";
151 } 151 }
152   152  
153   153  
154 } 154 }
155 } 155 }
156 ?> 156 ?>
157 </div> 157 </div>
158   158  
159 <!-- AUTOINCLUDE START "Page/Footer.cs.ihtml" DO NOT REMOVE --> 159 <!-- AUTOINCLUDE START "Page/Footer.<?php echo $lang; ?>.ihtml" DO NOT REMOVE -->
160 <!-- ============== PATIČKA ============== --> 160 <!-- ============== PATIČKA ============== -->
161 <div class="Footer"> 161 <div class="Footer">
162 <script type="text/javascript"> 162 <script type="text/javascript">
163 <!-- 163 <!--
164 SetRelativePath("../"); 164 SetRelativePath("../");
165 DrawFooter(); 165 DrawFooter();
166 // --> 166 // -->
167 </script> 167 </script>
168 <noscript> 168 <noscript>
169 <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>
170 </noscript> 170 </noscript>
171 </div> 171 </div>
172 <!-- AUTOINCLUDE END --> 172 <!-- AUTOINCLUDE END -->
173   173  
174   174  
175   175  
176 </body> 176 </body>
177 </html> 177 </html>