= $count) { $end = ($count); } $nextbatch = ($end); if($nextbatch == $count) { $nextbatch = (0); } $prevbatch = ($start-$total); if($prevbatch <= 0) { $prevbatch = (0); } $pageNo = ceil((($start)/$total)+1); if($pageNo == 0) { $pageNo = ($count/$total); } echo ""; /* echo "
"; */ /* echo "Files: ".($start+1)."-".$end." of ".count($allfiles).""; */ /* */ /* echo("  "); */ /* */ /* while($a < $pages) { */ /* if($a == ($pageNo-1)) { */ /* $page_display .= "".($a+1)." "; */ /* } else { */ /* $page_display .= "".($a+1)." "; */ /* } */ /* $a++; */ /* } */ /* echo $page_display; */ /* echo(""); */ echo "
"; echo "\n"; echo "\n"; $i = $start; while ($i < $end) { $newRow = (is_integer($tdcount/($cols))); if ($newRow) { echo "\n\n"; } else { echo "\n"; } $tdcount++; $i++; } echo "
"; echo "<< Home
"; include("list_archives.php"); echo "
"; } else { echo ""; } if (is_file("$fileSPaths[$i]")) { $imagesize = getimagesize("$fileSPaths[$i]"); $img_width = $imagesize[0]; $img_height = $imagesize[1]; } if (is_file("$fileLPaths[$i]")) { $imageLsize = getimagesize("$fileLPaths[$i]"); $img_Lwidth = $imageLsize[0]; $img_Lheight = $imageLsize[1]; } echo "
"; echo ""; echo "
"; if ($newRow) { echo "
"; /* echo "Files: ".($start+1)."-".$end." of ".count($allfiles).""; */ /* echo("  "); */ /* echo $page_display; */ /* echo("

"); */ ?>