1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40: | <?
//***********************************************************************************************//
// phpMyDIR
//***********************************************************************************************//
require("../../seiten/class.dir.php");
$DIR = new myDIR;
$DIR->setMASK("*.jpg,*.jpeg,*.gif,*.bmp"); // (".*") separated with comma
$DIR->setFIND("all"); // could be "folder" "files" "all"
$DIR->setROOT("high"); // start folder
$RESULT = $DIR->getRESULT();
echo "<table cellpadding='5' cellspacing='5'align=center width= '500' border='0'>n";
// echo "<tr bgcolor='white' ><td width=70> </td><td width=150> </td><td width=70> </td><td width=150> </td></tr>"; //
// echo "<tr><td colspan='4'>Es wurden ".count($RESULT)." Dateien gefunden.</td></tr>n";//
for ( $i=0 ; $i < count($RESULT); $i++ )
{
$save1 = ( $i%6 == 0 ) ? "<tr bgcolor='#EFEFEF'>" : " ";
$save2 = ( $i%6 == 0 ) ? "</td>" : "</td></tr>";
echo $save1;
// echo "<td width = '250'> ".$RESULT[$i]["file"]."</td>";//
echo "<td width = '284' height = '160' align= 'center'><a href='high/".$RESULT[$i]["file"]."' target='_blank'> <img border='0' src='low/".$RESULT[$i]["file"]."' ></a></td>";
echo $save2;
}
echo "</table>n";
?>
</div>
<br><br><br>
</td> |