include('mylinks.php');
?>
|
$full = 0;
$orig = $start;
if(!$start){
$start = 0;
}
$end = $start+9;
if($end>$num){
$end = $num;
}
$j = $start+1;
$onpage = $end-$start;
$k = 1;
while(($start<$num)&&($start<$end)){
if($k==1){
echo "";
$full = 0;
}
$file = "images/".$dir."_thumbs/tn_$j.JPG";
$large = "images/".$dir."_regs/tn_$j.JPG";
$bigFile = "/home/users/web/b1646/sl.pbccalho/public_html/youth/images/".$dir."_regs/tn_$j.JPG";
$size = getimagesize($bigFile);
$altcap = "tn_$j.jpg";
if($k==2){
echo " ".$size[0]." x ".$size[1]." ".round(filesize($bigFile)*0.0009765625, 2)." KB";
echo " | ";
} //if
else{
echo " ".$size[0]." x ".$size[1]." ".round(filesize($bigFile)*0.0009765625, 2)." KB";
echo " | ";
} //else
if($k==3){
echo " ";
$k=0;
$full = 1;
}
echo "";
$start++;
$j++;
$k++;
}// end of while
if($k<4 && $full!=1){
while($k<4){
echo " | ";
$k++;
if($k==4){
echo "";
}
} // end of while
} // end of if
echo "";
$pages = ceil($num/9);
if($pages>1){
$upto = 0;
$k = 0;
$m = 1;
if($orig>0){
$prev = $orig-9;
echo "<previous ";
}
while($upto<$pages){
if($k==$orig){
echo "$m ";
}
else{
echo "$m ";
}
$k+=9;
$upto++;
$m++;
}// end of while
$greatest = ($pages-1)*9;
if($orig!=$greatest){
$next = $orig+9;
echo "next> ";
}
}
?>
|
|