Rev 703 Rev 704
1 <html> 1 <html>
2 <head> 2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4 <title> MLAB moduly </title> 4 <title> MLAB moduly </title>
5 <meta name="keywords" content="stavebnice MLAB univerzální moduly seznam pøehled"> 5 <meta name="keywords" content="stavebnice MLAB univerzální moduly seznam pøehled">
6 <meta name="description" content="Projekt MLAB, moduly"> 6 <meta name="description" content="Projekt MLAB, moduly">
7 <!-- AUTOINCLUDE START "Page/Head.cs.ihtml" DO NOT REMOVE --> 7 <!-- AUTOINCLUDE START "Page/Head.cs.ihtml" DO NOT REMOVE -->
8 <link rel="StyleSheet" href="../Web/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"> 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"> 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> 11 <script type="text/javascript" src="../Web/JS/MLAB_Menu.js"></script>
12 <!-- AUTOINCLUDE END --> 12 <!-- AUTOINCLUDE END -->
13 </head> 13 </head>
14 <body> 14 <body>
15   15  
-   16 <!-- AUTOINCLUDE START "Page/Header.cs.ihtml" DO NOT REMOVE -->
-   17 <!-- ============== HLAVICKA ============== -->
-   18 <div class="Header">
-   19 <script type="text/javascript">
-   20 <!--
-   21 SetRelativePath("../");
-   22 DrawHeader();
-   23 // -->
-   24 </script>
-   25 <noscript>
-   26 <p><b> Pro zobrazení (vložení) hlavièky je potøeba JavaScript </b></p>
-   27 </noscript>
16 <center> 28 </div>
-   29 <!-- AUTOINCLUDE END -->
-   30  
-   31 <!-- AUTOINCLUDE START "Page/Menu.cs.ihtml" DO NOT REMOVE -->
-   32 <!-- ============== MENU ============== -->
-   33 <div class="Menu">
-   34 <script type="text/javascript">
-   35 <!--
-   36 SetRelativePath("../");
-   37 DrawMenu();
-   38 // -->
-   39 </script>
-   40 <noscript>
-   41 <p><b> Pro zobrazení (vložení) menu je potøeba JavaScript </b></p>
-   42 </noscript>
-   43 </div>
-   44 <!-- AUTOINCLUDE END -->
-   45  
-   46  
17   47  
18 <?php 48 <?php
19 /* KONFIGURACE */ 49 /* KONFIGURACE */
20 $path = '/var/www/Web'; 50 $path = '/var/www/Web';
21 $www = 'http://www.mlab.cz'; 51 $www = 'http://www.mlab.cz';
22 $folder = '/../Modules'; 52 $folder = '/../Modules';
23 /*$img = 'preview.jpg';*/ 53 /*$img = 'preview.jpg';*/
24 $info = 'ProjectInfo.xml'; 54 $info = 'ProjectInfo.xml';
25   55  
26 /* KONEC KONFIGURACE */ 56 /* KONEC KONFIGURACE */
27   57  
28   58  
29   59  
30   60  
31   61  
32   62  
33 $adresar = opendir($path.$folder); 63 $adresar = opendir($path.$folder);
34 while ($soubor = readdir($adresar)){ 64 while ($soubor = readdir($adresar)){
35 if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { 65 if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) {
36 $img = $soubor."_Small.jpg"; 66 $img = $soubor."_Small.jpg";
37   67  
38 ?> 68 ?>
39 <table border=0> 69 <table border=0>
40 <tr><td><b><?php echo $soubor; ?></b></td></tr> 70 <tr><td><b><?php echo $soubor; ?></b></td></tr>
41 <?php 71 <?php
42   72  
43 if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { 73 if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) {
44 if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<tr><td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\" width=\"150\"></td></tr>\n"; } 74 if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<tr><td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\" width=\"150\"></td></tr>\n"; }
45 if (file_exists($path.$folder.'/'.$soubor."/".$info)) { 75 if (file_exists($path.$folder.'/'.$soubor."/".$info)) {
46 echo "<tr><td>\n"; 76 echo "<tr><td>\n";
47 xml_parse ($path.$folder.'/'.$soubor."/".$info); 77 xml_parse ($path.$folder.'/'.$soubor."/".$info);
48 echo "\n</td></tr>\n"; 78 echo "\n</td></tr>\n";
49 } 79 }
50   80  
51 } else { 81 } else {
52   82  
53 ?> 83 ?>
54 <tr><td> 84 <tr><td>
55 <?php 85 <?php
56   86  
57 $adresar1 = opendir($path.$folder."/".$soubor); 87 $adresar1 = opendir($path.$folder."/".$soubor);
58 while ($soubor1 = readdir($adresar1)){ 88 while ($soubor1 = readdir($adresar1)){
59 if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) { 89 if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) {
60 $img = $soubor1."_Small.jpg"; 90 $img = $soubor1."_Small.jpg";
61   91  
62 ?> 92 ?>
63 <table border=0> 93 <table border=0>
64 <?php 94 <?php
65 /*<tr><td colspan="2"><center><?php echo $soubor1; ?></center></td></tr>*/ 95 /*<tr><td colspan="2"><center><?php echo $soubor1; ?></center></td></tr>*/
66   96  
67 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) { 97 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) {
68 ?> 98 ?>
69 <tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td> 99 <tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td>
70 <?php 100 <?php
71 } else { echo "<tr><td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\" width=\"150\"></td>\n"; } 101 } else { echo "<tr><td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\" width=\"150\"></td>\n"; }
72 echo "<td>".$soubor1."</td>\n"; 102 echo "<td>".$soubor1."</td>\n";
73 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) { 103 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) {
74 echo "<td><iframe src=".$www.$folder.'/'.$soubor."/".$soubor1."/".$info." name=hlavni scrolling=AUTO align=middle frameborder=0> 104 echo "<td><iframe src=".$www.$folder.'/'.$soubor."/".$soubor1."/".$info." name=hlavni scrolling=AUTO align=middle frameborder=0>
75 Chce to novej prohlížeè...</iframe>\n"; 105 Chce to novej prohlížeè...</iframe>\n";
76 echo "\n</td></tr>\n"; 106 echo "\n</td></tr>\n";
77 } else { echo "<td><i>Description isn't availible!!</i></td>\n"; } 107 } else { echo "<td><i>Description isn't availible!!</i></td>\n"; }
78 ?> 108 ?>
79 </table> 109 </table>
80 </td></tr> 110 </td></tr>
81 <?php 111 <?php
82 } 112 }
83 } 113 }
84 } 114 }
85   115  
86 ?> 116 ?>
87 </table> 117 </table>
88 <?php 118 <?php
89 } 119 }
90 } 120 }
91 ?> 121 ?>
92   122  
-   123  
-   124 <!-- AUTOINCLUDE START "Page/Footer.cs.ihtml" DO NOT REMOVE -->
-   125 <!-- ============== PATIÈKA ============== -->
-   126 <div class="Footer">
-   127 <script type="text/javascript">
-   128 <!--
-   129 SetRelativePath("../");
-   130 DrawFooter();
-   131 // -->
-   132 </script>
-   133 <noscript>
-   134 <p><b> Pro zobrazení (vložení) hlavièky je potøeba JavaScript </b></p>
-   135 </noscript>
93 </center> 136 </div>
-   137 <!-- AUTOINCLUDE END -->
-   138  
-   139  
94   140  
95 </body> 141 </body>
96 </html> 142 </html>