663 |
Dawon |
1 |
<html> |
|
|
2 |
<head> |
|
|
3 |
|
|
|
4 |
<title></title> |
|
|
5 |
</head> |
|
|
6 |
<body> |
|
|
7 |
|
683 |
Dawon |
8 |
<center> |
|
|
9 |
|
663 |
Dawon |
10 |
<?php |
|
|
11 |
/* KONFIGURACE */ |
665 |
Dawon |
12 |
$path = '/var/www/Web'; |
664 |
Dawon |
13 |
$www = 'http://www.mlab.cz'; |
666 |
Dawon |
14 |
$folder = '/../Modules'; |
667 |
Dawon |
15 |
/*$img = 'preview.jpg';*/ |
678 |
Dawon |
16 |
$info = 'ProjectInfo.xml'; |
663 |
Dawon |
17 |
|
|
|
18 |
/* KONEC KONFIGURACE */ |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
$adresar = opendir($path.$folder); |
|
|
26 |
while ($soubor = readdir($adresar)){ |
671 |
Dawon |
27 |
if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { |
677 |
Dawon |
28 |
$img = $soubor."_Small.jpg"; |
663 |
Dawon |
29 |
|
|
|
30 |
?> |
|
|
31 |
<table border=0> |
673 |
Dawon |
32 |
<tr><td><b><?php echo $soubor; ?></b></td></tr> |
668 |
Dawon |
33 |
<?php |
|
|
34 |
|
677 |
Dawon |
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"; } |
|
|
37 |
if (file_exists($path.$folder.'/'.$soubor."/".$info)) { |
|
|
38 |
echo "<tr><td>\n"; |
|
|
39 |
xml_parse ($path.$folder.'/'.$soubor."/".$info); |
|
|
40 |
echo "\n</td></tr>\n"; |
|
|
41 |
} |
668 |
Dawon |
42 |
|
677 |
Dawon |
43 |
} else { |
663 |
Dawon |
44 |
|
668 |
Dawon |
45 |
?> |
|
|
46 |
<tr><td> |
|
|
47 |
<?php |
663 |
Dawon |
48 |
|
677 |
Dawon |
49 |
$adresar1 = opendir($path.$folder."/".$soubor); |
|
|
50 |
while ($soubor1 = readdir($adresar1)){ |
|
|
51 |
if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) { |
|
|
52 |
$img = $soubor1."_Small.jpg"; |
663 |
Dawon |
53 |
|
668 |
Dawon |
54 |
?> |
684 |
Dawon |
55 |
<table style="border: 1px solid #000;" color="EEFFEE" border=0> |
674 |
Dawon |
56 |
<?php |
687 |
Dawon |
57 |
/*<tr><td colspan="2"><center><?php echo $soubor1; ?></center></td></tr>*/ |
|
|
58 |
|
677 |
Dawon |
59 |
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) { |
674 |
Dawon |
60 |
?> |
685 |
Dawon |
61 |
<tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td> |
674 |
Dawon |
62 |
<?php |
697 |
Dawon |
63 |
} else { echo "<tr><td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\" width=\"150\"></td>\n"; } |
694 |
Dawon |
64 |
echo "<td>".$soubor1."</td>"; |
677 |
Dawon |
65 |
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) { |
694 |
Dawon |
66 |
echo "<td><iframe src=".$www.$folder.'/'.$soubor."/".$soubor1."/".$info." name=hlavni scrolling=AUTO align=middle frameborder=0> |
681 |
Dawon |
67 |
Chce to novej prohlíeè...</iframe>\n"; |
677 |
Dawon |
68 |
echo "\n</td></tr>\n"; |
700 |
Dawon |
69 |
} else { echo "<td><i>Description isn't availible!!</i></td>\n"; } |
674 |
Dawon |
70 |
?> |
668 |
Dawon |
71 |
</table> |
|
|
72 |
</td></tr> |
|
|
73 |
<?php |
677 |
Dawon |
74 |
} |
|
|
75 |
} |
|
|
76 |
} |
668 |
Dawon |
77 |
|
|
|
78 |
?> |
|
|
79 |
</table> |
|
|
80 |
<?php |
663 |
Dawon |
81 |
} |
|
|
82 |
} |
|
|
83 |
?> |
|
|
84 |
|
683 |
Dawon |
85 |
</center> |
|
|
86 |
|
663 |
Dawon |
87 |
</body> |
|
|
88 |
</html> |