Rev Author Line No. Line
718 Dawon 1 <?php
2 if ($HTTP_GET_VARS["lang"] == "en") {
3 $lang = "en";
4 } else {
5 $lang = "cs";
6 }
7 ?>
717 Dawon 8 <html>
663 Dawon 9 <head>
703 Dawon 10 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
11 <title> MLAB moduly </title>
707 Dawon 12 <meta name="keywords" content="stavebnice MLAB univerzální moduly seznam přehled">
703 Dawon 13 <meta name="description" content="Projekt MLAB, moduly">
719 Dawon 14 <!-- AUTOINCLUDE START "Page/Head.<?php echo $lang; ?>.ihtml" DO NOT REMOVE -->
707 Dawon 15 <link rel="StyleSheet" href="../Web/CSS/MLAB.css" type="text/css" title="MLAB základní styl">
703 Dawon 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">
18 <script type="text/javascript" src="../Web/JS/MLAB_Menu.js"></script>
19 <!-- AUTOINCLUDE END -->
663 Dawon 20 </head>
720 Dawon 21 <body lang="<?php echo $lang; ?>">
663 Dawon 22  
718 Dawon 23 <!-- AUTOINCLUDE START "Page/Header.<?php echo $lang; ?>.ihtml" DO NOT REMOVE -->
704 Dawon 24 <!-- ============== HLAVICKA ============== -->
25 <div class="Header">
26 <script type="text/javascript">
27 <!--
28 SetRelativePath("../");
29 DrawHeader();
30 // -->
31 </script>
32 <noscript>
721 Dawon 33 <?php if ($lang == "cs") {?>
707 Dawon 34 <p><b> Pro zobrazení (vložení) hlavičky je potřeba JavaScript </b></p>
721 Dawon 35 <?php } else { ?>
36 <p><b> JavaScript is required for including of the header </b></p>
37 <?php } ?>
704 Dawon 38 </noscript>
39 </div>
40 <!-- AUTOINCLUDE END -->
683 Dawon 41  
718 Dawon 42 <!-- AUTOINCLUDE START "Page/Menu.<?php echo $lang; ?>.ihtml" DO NOT REMOVE -->
704 Dawon 43 <!-- ============== MENU ============== -->
44 <div class="Menu">
45 <script type="text/javascript">
46 <!--
47 SetRelativePath("../");
48 DrawMenu();
49 // -->
50 </script>
51 <noscript>
721 Dawon 52 <?php if ($lang == "cs") {?>
707 Dawon 53 <p><b> Pro zobrazení (vložení) menu je potřeba JavaScript </b></p>
721 Dawon 54 <?php } else { ?>
55 <p><b> JavaScript is required for including of the menu </b><p>
56 <?php } ?>
704 Dawon 57 </noscript>
58 </div>
59 <!-- AUTOINCLUDE END -->
60  
61  
62  
706 Dawon 63 <!-- ============== TEXT ============== -->
717 Dawon 64 <?php if ($lang == "en") { ?>
706 Dawon 65 <div class="Text">
66 <p class="Title">
717 Dawon 67 Overview of MLAB Modules
68 </p>
69 <p class=Subtitle>
764 Dawon 70  
717 Dawon 71 </p>
72  
73 <p class="Remark">
764 Dawon 74  
717 Dawon 75 </p>
76 <?php } else { ?>
77 <div class="Text">
78 <p class="Title">
707 Dawon 79 Přehled modulů MLAB
706 Dawon 80 </p>
81 <p class="Subtitle">
764 Dawon 82  
706 Dawon 83 </p>
84  
85 <p class="Remark">
764 Dawon 86  
706 Dawon 87 </p>
663 Dawon 88 <?php
717 Dawon 89 }
663 Dawon 90 /* KONFIGURACE */
665 Dawon 91 $path = '/var/www/Web';
664 Dawon 92 $www = 'http://www.mlab.cz';
666 Dawon 93 $folder = '/../Modules';
747 Dawon 94 /*$img = 'preview.jpg';*/
95 $info = 'ProjectInfo.xml';
749 Dawon 96 $info1 = "info.".$lang.".txt";
663 Dawon 97  
98 /* KONEC KONFIGURACE */
99  
100  
101  
733 Dawon 102 echo "<table>\n";
739 Dawon 103  
104 if ($lang == "en") {
755 Dawon 105 echo "<tr><td>Preview</td><td>Name</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n";
739 Dawon 106 } else {
755 Dawon 107 echo "<tr><td>Náhled</td><td>Název</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n";
739 Dawon 108 }
663 Dawon 109  
757 Dawon 110 if (isset($HTTP_GET_VARS["file"])) {
756 Dawon 111 include "modules.inc.php";
112 } else {
113 $adresar = opendir($path.$folder);
114 while ($soubor = readdir($adresar)){
115 if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) {
116 $img = $soubor."_Small.jpg";
733 Dawon 117  
756 Dawon 118 if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) {
119 echo "<tr>";
767 Dawon 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"; }*/
768 Dawon 122 echo "<td><img src=\"thumb.php?pth=".$soubor."&fname=".$soubor."\"></td>\n";
756 Dawon 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";
125 } else { echo "<td><b>".$soubor."</b></td>\n"; }
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";
128 } else { echo "\n<td>-</td>\n"; }
755 Dawon 129 // if (file_exists($path.$folder.'/'.$soubor."/".$info)) {
130 // echo "<td><A HREF=".$www.$folder.'/'.$soubor."/".$info.">XML</A></td>\n";
131 // } else { echo "\n<td>-</td>\n"; }
756 Dawon 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)) {
134 $fp = FOpen ($path.$folder.'/'.$soubor."/".$info1, "r");
135 $data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$info1));
136 FClose ($fp);
137 echo "<td>".wordwrap($data, 50, "<br>")."</td>\n";
779 Dawon 138 } else { echo "\n<td><i>No description available</i></td>\n"; }
756 Dawon 139 echo "</tr>\n\n";
140 } else {
768 Dawon 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";
780 Dawon 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";
143 if (file_exists($path.$folder.'/'.$soubor."/".$info1)) {
144 $fp = FOpen ($path.$folder.'/'.$soubor."/".$info1, "r");
145 $data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$info1));
146 FClose ($fp);
147 echo "<td>".wordwrap($data, 50, "<br>")."</td>\n";
148 } else { echo "\n<td><i>No description available</i></td>\n"; }
149 echo "</tr>\n\n";
677 Dawon 150 }
151 }
663 Dawon 152 }
153 }
154 ?>
732 Dawon 155 </table>
709 Dawon 156 </div>
663 Dawon 157  
719 Dawon 158 <!-- AUTOINCLUDE START "Page/Footer.<?php echo $lang; ?>.ihtml" DO NOT REMOVE -->
707 Dawon 159 <!-- ============== PATIČKA ============== -->
704 Dawon 160 <div class="Footer">
161 <script type="text/javascript">
162 <!--
163 SetRelativePath("../");
164 DrawFooter();
165 // -->
166 </script>
167 <noscript>
721 Dawon 168 <?php if ($lang == "cs") {?>
169 <p><b> Pro zobrazení (vložení) zápatí je potřeba JavaScript </b></p>
170 <?php } else { ?>
171 <p><b> JavaScript is required for including of the footer </b></p>
172 <?php } ?>
704 Dawon 173 </noscript>
174 </div>
175 <!-- AUTOINCLUDE END -->
176  
177  
178  
663 Dawon 179 </body>
180 </html>