$count) {$x = $count;}; for ($rows = 0; $rows < $maxrows; $rows++){ for( $cols = 0, $wide = 0; $cols < $maxcols; $cols++){ $a = $x + ($rows*$maxcols) + $cols; if(isset($_COOKIE["WindowWidth"]) && isset($_COOKIE["WindowHeight"])){ $tWidth = $_COOKIE["WindowWidth"]/$maxcols; $tHeight = (($_COOKIE["WindowHeight"] - 120)/$maxrows) ; } list($width, $height) = getimagesize("../Pictures/".$dirFiles[$a]); if($width < 1){ continue; } $newheight = floor($height * ($tWidth/$width)); $newwidth = $tWidth; if($newheight > $tHeight){ $newwidth = floor($tWidth * ($tHeight/$newheight)); $newheight = $tHeight; } $str = ''; // error_log($a.":".$str); $display[$rows][$cols] = $str; } ++$a; } // }else{ // error_log("Failed to open Photo Archive"); // //} ?>
'.$display[$i][ $j].' | '; } echo ""; } ?>