Folgender Code stellt bei mir keine 5 Zeilen, á 5 Spalten dar.
Sorry, aber bin erst PHP-Anfänger.
	
							
						
					Sorry, aber bin erst PHP-Anfänger.
PHP-Code:
	
	
<?php 
function getFileList($dirname,$sort = true) {
    $files = array();
    $dir = opendir( $dirname );
    while( $file = readdir( $dir ) ) 
    {
        {
                //if (!strpos($file,".php") && !strpos($file,".inc") && $file != "..") {
                if ($file != "..") {
                    $files[] = $file; 
                }
        }
    }
    
    if ($sort)
        usort($files,dirCompare);
        
    return $files; 
} 
?>
<?php 
$str = getFileList("./admin_includes","ja");
$files = round(count($str)/5, 0);
for($i=0;$i<$files;$i++){
$t = $i+1;
echo '[<a href="?p='.$i.'">'.$t.'</a>]  ';
}
echo "<br /><br /><br />";
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr>
<?php 
if($p) $a = $p*25;
else $a = 0;
for($i=$a;$i<$a+25;$i++){
$t = $i+1; ?>
    <td width="20%" style="border-style: solid; border-width: 1">
      <p align="center"><img border="0" src="<?php echo $str[$i]; ?>" width="32" height="32"></td>
<?php 
if($i / 25) { echo "</tr>"; }
else { if($i / 5){ echo "</tr><tr>"; } }
}
?>
</table>
 
          
 Moderator
 Moderator
Kommentar