$numImages) $f_pagePos = floor($numImages / $numPerPage); //extract an array of thumbnails for this page to display $g_images_sliced = array_slice($g_images,$imagePos,$numPerPage); //build imagename from image array if one isn't set if(!isset($f_imageName)) $f_imageName = key($g_images_sliced); create_header(); ?>
|
=$g_text?>
$numPerPage) {
print "\n";
print " \n";
}
?>
Navigate ";
if ($f_pagePos > 0)
print "« | \n";
else
print "« | ";
for($i = 1; $i <= $numPages; $i++) {
//if printing out number of current page, boldify
if($f_pagePos == ($i - 1)) {
$beginHREF = "";
$endHREF = "";
}
//otherwise, linkify
else {
$beginHREF = "";
$endHREF = "";
}
print $beginHREF . $i . $endHREF . " | ";
}
if($numImages - (($f_pagePos + 1) * $numPerPage) > 0)
print "»\n";
else
print "»";
print " |
\n"; print " |
| \n";
print " \n";
print " \n";
print "\n";
print " | \n";
if($counter % 3 == 0 && $counter != $numImages) print "|
| \n"; } print " |