Rev 672 Rev 673
1 <html> 1 <html>
2 <head> 2 <head>
3   3  
4 <title></title> 4 <title></title>
5 </head> 5 </head>
6 <body> 6 <body>
7   7  
8 <?php 8 <?php
9 /* KONFIGURACE */ 9 /* KONFIGURACE */
10 $path = '/var/www/Web'; 10 $path = '/var/www/Web';
11 $www = 'http://www.mlab.cz'; 11 $www = 'http://www.mlab.cz';
12 $folder = '/../Modules'; 12 $folder = '/../Modules';
13 /*$img = 'preview.jpg';*/ 13 /*$img = 'preview.jpg';*/
14 $info = 'ProjectInfo.xml1'; 14 $info = 'ProjectInfo.xml1';
15   15  
16 /* KONEC KONFIGURACE */ 16 /* KONEC KONFIGURACE */
17   17  
18   18  
19   19  
20   20  
21   21  
22   22  
23 $adresar = opendir($path.$folder); 23 $adresar = opendir($path.$folder);
24 while ($soubor = readdir($adresar)){ 24 while ($soubor = readdir($adresar)){
25 if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { 25 if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) {
26   26  
27 $img = $soubor."_Small.jpg"; 27 $img = $soubor."_Small.jpg";
28   28  
29   29  
30 ?> 30 ?>
31 <table border=0> 31 <table border=0>
32 <tr><td><?php echo $soubor; ?></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 ?> 36 ?>
37   37  
38 <tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$img; ?>" width="150"></td></tr> 38 <tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$img; ?>" width="150"></td></tr>
39 <tr><td><?php include $path.$folder.'/'.$soubor."/".$info; ?></td></tr> 39 <tr><td><?php include $path.$folder.'/'.$soubor."/".$info; ?></td></tr>
40   40  
41   41  
42 <?php 42 <?php
43 } else { 43 } else {
44 ?> 44 ?>
45 <tr><td> 45 <tr><td>
46 <?php 46 <?php
47   47  
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   52  
53 $img = $soubor1."_Small.jpg"; 53 $img = $soubor1."_Small.jpg";
54 ?> 54 ?>
55 <table border=0> 55 <table border=0>
56 <tr><td><?php echo $soubor1; ?></td></tr> 56 <tr><td><?php echo $soubor1; ?></td></tr>
57 <tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td></tr> 57 <tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td></tr>
58 <tr><td><?php include $path.$folder.'/'.$soubor."/".$soubor1."/".$info; ?></td></tr> 58 <tr><td><?php include $path.$folder.'/'.$soubor."/".$soubor1."/".$info; ?></td></tr>
59 </table> 59 </table>
60 </td></tr> 60 </td></tr>
61 <?php 61 <?php
62 }} 62 }}
63 } 63 }
64   64  
65 ?> 65 ?>
66 </table> 66 </table>
67   67  
68 <?php 68 <?php
69   69  
70   70  
71 } 71 }
72 } 72 }
73   73  
74   74  
75   75  
76 ?> 76 ?>
77   77  
78 </body> 78 </body>
79 </html> 79 </html>