Rev 701 Rev 702
1 <html> 1 <html>
2 <head> 2 <head>
3 <title></title> 3 <title></title>
4 <link rel="StyleSheet" href="/CSS/MLAB.css" type="text/css" title="MLAB základní styl"> 4 <link rel="StyleSheet" href="/CSS/MLAB.css" type="text/css" title="MLAB základní styl">
5 </head> 5 </head>
6 <body> 6 <body>
7   7  
8 <center> 8 <center>
9   9  
10 <?php 10 <?php
11 /* KONFIGURACE */ 11 /* KONFIGURACE */
12 $path = '/var/www/Web'; 12 $path = '/var/www/Web';
13 $www = 'http://www.mlab.cz'; 13 $www = 'http://www.mlab.cz';
14 $folder = '/../Modules'; 14 $folder = '/../Modules';
15 /*$img = 'preview.jpg';*/ 15 /*$img = 'preview.jpg';*/
16 $info = 'ProjectInfo.xml'; 16 $info = 'ProjectInfo.xml';
17   17  
18 /* KONEC KONFIGURACE */ 18 /* KONEC KONFIGURACE */
19   19  
20   20  
21   21  
22   22  
23   23  
24   24  
25 $adresar = opendir($path.$folder); 25 $adresar = opendir($path.$folder);
26 while ($soubor = readdir($adresar)){ 26 while ($soubor = readdir($adresar)){
27 if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { 27 if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) {
28 $img = $soubor."_Small.jpg"; 28 $img = $soubor."_Small.jpg";
29   29  
30 ?> 30 ?>
31 <table border=0> 31 <table border=0>
32 <tr><td><b><?php echo $soubor; ?></b></td></tr> 32 <tr><td><b><?php echo $soubor; ?></b></td></tr>
33 <?php 33 <?php
34   34  
35 if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { 35 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"; } 36 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)) { 37 if (file_exists($path.$folder.'/'.$soubor."/".$info)) {
38 echo "<tr><td>\n"; 38 echo "<tr><td>\n";
39 xml_parse ($path.$folder.'/'.$soubor."/".$info); 39 xml_parse ($path.$folder.'/'.$soubor."/".$info);
40 echo "\n</td></tr>\n"; 40 echo "\n</td></tr>\n";
41 } 41 }
42   42  
43 } else { 43 } else {
44   44  
45 ?> 45 ?>
46 <tr><td> 46 <tr><td>
47 <?php 47 <?php
48   48  
49 $adresar1 = opendir($path.$folder."/".$soubor); 49 $adresar1 = opendir($path.$folder."/".$soubor);
50 while ($soubor1 = readdir($adresar1)){ 50 while ($soubor1 = readdir($adresar1)){
51 if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) { 51 if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) {
52 $img = $soubor1."_Small.jpg"; 52 $img = $soubor1."_Small.jpg";
53   53  
54 ?> 54 ?>
55 <table border=0> 55 <table border=0>
56 <?php 56 <?php
57 /*<tr><td colspan="2"><center><?php echo $soubor1; ?></center></td></tr>*/ 57 /*<tr><td colspan="2"><center><?php echo $soubor1; ?></center></td></tr>*/
58   58  
59 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) { 59 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) {
60 ?> 60 ?>
61 <tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td> 61 <tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td>
62 <?php 62 <?php
63 } else { echo "<tr><td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\" width=\"150\"></td>\n"; } 63 } else { echo "<tr><td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\" width=\"150\"></td>\n"; }
64 echo "<td>".$soubor1."</td>"; 64 echo "<td>".$soubor1."</td>\n";
65 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) { 65 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> 66 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"; 67 Chce to novej prohlížeè...</iframe>\n";
68 echo "\n</td></tr>\n"; 68 echo "\n</td></tr>\n";
69 } else { echo "<td><i>Description isn't availible!!</i></td>\n"; } 69 } else { echo "<td><i>Description isn't availible!!</i></td>\n"; }
70 ?> 70 ?>
71 </table> 71 </table>
72 </td></tr> 72 </td></tr>
73 <?php 73 <?php
74 } 74 }
75 } 75 }
76 } 76 }
77   77  
78 ?> 78 ?>
79 </table> 79 </table>
80 <?php 80 <?php
81 } 81 }
82 } 82 }
83 ?> 83 ?>
84   84  
85 </center> 85 </center>
86   86  
87 </body> 87 </body>
88 </html> 88 </html>