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