<html>
<head>

<title></title>
</head>
<body>

<center>

<?php
/* KONFIGURACE */
$path   = '/var/www/Web';
$www    = 'http://www.mlab.cz';
$folder = '/../Modules';
/*$img    = 'preview.jpg';*/
$info   = 'ProjectInfo.xml';

/* KONEC KONFIGURACE */






$adresar = opendir($path.$folder);
while ($soubor = readdir($adresar)){
  if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) {
    $img = $soubor."_Small.jpg";

?>
<table border=0>
<tr><td><b><?php echo $soubor; ?></b></td></tr>
<?php

    if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) {
      if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<tr><td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\" width=\"150\"></td></tr>\n"; }
      if (file_exists($path.$folder.'/'.$soubor."/".$info)) {
        echo "<tr><td>\n";
        xml_parse ($path.$folder.'/'.$soubor."/".$info);
        echo "\n</td></tr>\n";
      }

    } else {

?>
<tr><td>
<?php

      $adresar1 = opendir($path.$folder."/".$soubor);
      while ($soubor1 = readdir($adresar1)){
        if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) {
          $img = $soubor1."_Small.jpg";

?>
<table style="border: 1px solid #000;" color="EEFFEE" border=0>
<?php
/*<tr><td colspan="2"><center><?php echo $soubor1; ?></center></td></tr>*/

          if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) {
?>
<tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td>
<?php
          }
          if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) {
            echo "<td><center><?php echo $soubor1; ?></center><br><iframe src=".$www.$folder.'/'.$soubor."/".$soubor1."/".$info." name=hlavni scrolling=AUTO align=middle frameborder=0>
Chce to novej prohlížeè...</iframe>\n";
            echo "\n</td></tr>\n";
          }
?>
</table>
</td></tr>
<?php
        }
      }
    }

?>
</table>
<?php
  }
}
?>

</center>

</body>
</html>