Rev 702 Rev 703
1 <html> 1 <html>
2 <head> 2 <head>
-   3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
3 <title></title> 4 <title> MLAB moduly </title>
-   5 <meta name="keywords" content="stavebnice MLAB univerzální moduly seznam pøehled">
-   6 <meta name="description" content="Projekt MLAB, moduly">
-   7 <!-- AUTOINCLUDE START "Page/Head.cs.ihtml" DO NOT REMOVE -->
4 <link rel="StyleSheet" href="/CSS/MLAB.css" type="text/css" title="MLAB základní styl"> 8 <link rel="StyleSheet" href="../Web/CSS/MLAB.css" type="text/css" title="MLAB základní styl">
-   9 <link rel="StyleSheet" href="../Web/CSS/MLAB_Print.css" type="text/css" media="print">
-   10 <link rel="shortcut icon" type="image/x-icon" href="../Web/PIC/MLAB.ico">
-   11 <script type="text/javascript" src="../Web/JS/MLAB_Menu.js"></script>
-   12 <!-- AUTOINCLUDE END -->
5 </head> 13 </head>
6 <body> 14 <body>
7   15  
8 <center> 16 <center>
9   17  
10 <?php 18 <?php
11 /* KONFIGURACE */ 19 /* KONFIGURACE */
12 $path = '/var/www/Web'; 20 $path = '/var/www/Web';
13 $www = 'http://www.mlab.cz'; 21 $www = 'http://www.mlab.cz';
14 $folder = '/../Modules'; 22 $folder = '/../Modules';
15 /*$img = 'preview.jpg';*/ 23 /*$img = 'preview.jpg';*/
16 $info = 'ProjectInfo.xml'; 24 $info = 'ProjectInfo.xml';
17   25  
18 /* KONEC KONFIGURACE */ 26 /* KONEC KONFIGURACE */
19   27  
20   28  
21   29  
22   30  
23   31  
24   32  
25 $adresar = opendir($path.$folder); 33 $adresar = opendir($path.$folder);
26 while ($soubor = readdir($adresar)){ 34 while ($soubor = readdir($adresar)){
27 if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { 35 if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) {
28 $img = $soubor."_Small.jpg"; 36 $img = $soubor."_Small.jpg";
29   37  
30 ?> 38 ?>
31 <table border=0> 39 <table border=0>
32 <tr><td><b><?php echo $soubor; ?></b></td></tr> 40 <tr><td><b><?php echo $soubor; ?></b></td></tr>
33 <?php 41 <?php
34   42  
35 if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { 43 if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) {
36 if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<tr><td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\" width=\"150\"></td></tr>\n"; } 44 if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<tr><td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\" width=\"150\"></td></tr>\n"; }
37 if (file_exists($path.$folder.'/'.$soubor."/".$info)) { 45 if (file_exists($path.$folder.'/'.$soubor."/".$info)) {
38 echo "<tr><td>\n"; 46 echo "<tr><td>\n";
39 xml_parse ($path.$folder.'/'.$soubor."/".$info); 47 xml_parse ($path.$folder.'/'.$soubor."/".$info);
40 echo "\n</td></tr>\n"; 48 echo "\n</td></tr>\n";
41 } 49 }
42   50  
43 } else { 51 } else {
44   52  
45 ?> 53 ?>
46 <tr><td> 54 <tr><td>
47 <?php 55 <?php
48   56  
49 $adresar1 = opendir($path.$folder."/".$soubor); 57 $adresar1 = opendir($path.$folder."/".$soubor);
50 while ($soubor1 = readdir($adresar1)){ 58 while ($soubor1 = readdir($adresar1)){
51 if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) { 59 if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) {
52 $img = $soubor1."_Small.jpg"; 60 $img = $soubor1."_Small.jpg";
53   61  
54 ?> 62 ?>
55 <table border=0> 63 <table border=0>
56 <?php 64 <?php
57 /*<tr><td colspan="2"><center><?php echo $soubor1; ?></center></td></tr>*/ 65 /*<tr><td colspan="2"><center><?php echo $soubor1; ?></center></td></tr>*/
58   66  
59 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) { 67 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) {
60 ?> 68 ?>
61 <tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td> 69 <tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td>
62 <?php 70 <?php
63 } else { echo "<tr><td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\" width=\"150\"></td>\n"; } 71 } else { echo "<tr><td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\" width=\"150\"></td>\n"; }
64 echo "<td>".$soubor1."</td>\n"; 72 echo "<td>".$soubor1."</td>\n";
65 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) { 73 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) {
66 echo "<td><iframe src=".$www.$folder.'/'.$soubor."/".$soubor1."/".$info." name=hlavni scrolling=AUTO align=middle frameborder=0> 74 echo "<td><iframe src=".$www.$folder.'/'.$soubor."/".$soubor1."/".$info." name=hlavni scrolling=AUTO align=middle frameborder=0>
67 Chce to novej prohlížeè...</iframe>\n"; 75 Chce to novej prohlížeè...</iframe>\n";
68 echo "\n</td></tr>\n"; 76 echo "\n</td></tr>\n";
69 } else { echo "<td><i>Description isn't availible!!</i></td>\n"; } 77 } else { echo "<td><i>Description isn't availible!!</i></td>\n"; }
70 ?> 78 ?>
71 </table> 79 </table>
72 </td></tr> 80 </td></tr>
73 <?php 81 <?php
74 } 82 }
75 } 83 }
76 } 84 }
77   85  
78 ?> 86 ?>
79 </table> 87 </table>
80 <?php 88 <?php
81 } 89 }
82 } 90 }
83 ?> 91 ?>
84   92  
85 </center> 93 </center>
86   94  
87 </body> 95 </body>
88 </html> 96 </html>