111,6 → 111,9 |
echo "<tr><td>Náhled</td><td>Název</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n"; |
} |
|
if (isset($HTTP_GET_VARS["file"]) { |
include "modules.inc.php"; |
} else { |
$adresar = opendir($path.$folder); |
while ($soubor = readdir($adresar)){ |
if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { |
137,45 → 140,13 |
echo "<td>".wordwrap($data, 50, "<br>")."</td>\n"; |
} else { echo "\n<td><i>No description available!!</i></td>\n"; } |
echo "</tr>\n\n"; |
|
|
} else { |
|
|
echo "<tr>\n"; |
$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"; |
|
|
|
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) { |
echo "<td><img src=\"".$www.$folder.'/'.$soubor."/".$soubor1."/".$img."\"></td>\n"; |
} else { echo "<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\"></td>\n"; } |
|
if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/HTML/".$soubor1.".".$lang.".html")) { |
echo "<td><a href=\"".$www.$folder."/".$soubor."/".$soubor1."/DOC/HTML/".$soubor1.".".$lang.".html\">".$soubor."/<b>".$soubor1."</b></a></td>\n"; |
} else { echo "<td>".$soubor."/<b>".$soubor1."</b></td>\n"; } |
if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf")) { |
echo "<td><a href=\"".$www.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf\">PDF</a></td>\n"; |
} else { echo "\n<td>-</td>\n"; } |
// if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) { |
// echo "<td><a href=".$www.$folder.'/'.$soubor."/".$soubor1."/".$info.">XML</a></td>\n"; |
// } else { echo "<td>-</td>\n"; } |
echo "<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&path=/Modules/".$soubor."/".$soubor1."/\">WebSVN</a></td>\n"; |
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info1)) { |
$fp = FOpen ($path.$folder.'/'.$soubor."/".$soubor1."/".$info1, "r"); |
$data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$soubor1."/".$info1)); |
FClose ($fp); |
echo "<td>".wordwrap($data, 50, "<br>")."</td>\n"; |
} else { echo "\n<td><i>No description available!!</i></td>\n"; } |
echo "</tr>\n\n"; |
echo "<tr>\n<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\"></td>\n<td><a href=\"modules.php?lang=".$lang."&file=".$soubor."\">".$soubor."</a></td>\n"; |
echo "<td>-</td>\n<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&path=/Modules/".$soubor."/\">WebSVN</a></td>\n<td><i>No description available!!</i></td></tr>\n\n"; |
} |
} |
} |
} |
} |
?> |
</table> |
</div> |