|
echo "$title"; ?> |
$orig = $start;
if(!$start){
$start = 0;
}
$end = $start+12;
if($end>$num){
$end = $num;
}
$j = $start+1;
$onpage = $end-$start;
$k = 1;
while(($start<$num)&&($start<$end)){
if($k==1){
echo "";
}
$file = "images/".$dir."_thumbs/tn_$j.jpg";
$bigFile = "images/".$dir."_regs/tn_$j.jpg";
// echo " | ";
echo " | ";
if($k==4){
echo " ";
$k=0;
}
echo "";
$start++;
$j++;
$k++;
}// end of while
if($k<5){
while($k<5){
echo " | ";
$k++;
if($k==5){
echo "";
}
} // end of while
} // end of if
echo "";
$pages = ceil($num/12);
if($pages>1){
$upto = 0;
$k = 0;
$m = 1;
if($orig>0){
$prev = $orig-12;
echo "< previous ";
}
while($upto<$pages){
if($k==$orig){
echo "$m ";
}
else{
echo "$m ";
}
$k+=12;
$upto++;
$m++;
}// end of while
$greatest = ($pages-1)*12;
if($orig!=$greatest){
$next = $orig+12;
echo "next> ";
}
}
?>
|
|
|