Banner graphic header

Custom Photo Gallery

\n"; echo "\n"; echo "\n"; echo "\n"; echo "
"; echo "

There are no photos in the gallery presently

"; echo ""; echo "

<<- Back

\n"; echo "
"; }else{ $i = 0; $cellCount = 1; $rowCount = 0; $captionCount = 0; $titleCount = 0; $top=0; echo "\n"; echo "$setTitle\n"; echo "\n"; while($i < $num) { $fileName = mysql_result($result,$i,2); $caption = mysql_result($result,$i,3); //$landscape = mysql_result($result,$i,3); $titleBar = mysql_result($result,$i,5); if ($titleBar == "1"){ if($cellCount == 3){ echo " \n"; echo "\n"; $cellCount = 1; $rowCount++; }else{ if($cellCount == 2){ echo " \n"; echo " \n"; echo "\n"; $cellCount = 1; $rowCount++; } } echo "\n"; echo "$caption\n"; echo "\n"; $titleCount++; }else{ if ($cellCount == 1) { echo "\n"; } $filePath = "gallery/thumbs/".$galleryNo."/".$fileName; $thumbsize = getimagesize($filePath); $img = ""; echo " ".$img.""; if ($caption != null || $caption != ""){ echo "
".$caption."
\n"; $captionCount++; } echo "\n"; if ($cellCount == 3) { echo "\n"; $cellCount = 0; $rowCount++; }else{ if($i == ($num - 1) && $cellCount == 2){ echo " \n"; echo "\n"; $rowCount++; } if($i == ($num - 1) && $cellCount == 1){ echo " \n"; echo " \n"; echo "\n"; $rowCount++; } } $cellCount++; } $i++;}//while display_photosetnav(); echo ""; } } ?> \n"; echo ""; echo "

There are no photo galleries presently

"; echo "\n"; echo "\n"; }else{ $i = 0; $cellCount = 1; $rowCount = 0; while($i < $photosetnum) { $setNo = mysql_result($photosetquery_result,$i,0); $title = mysql_result($photosetquery_result,$i,1); $filename = mysql_result($photosetquery_result,$i,2); if ($cellCount == 1) { echo "\n"; } $filePath = "gallery/thumbs/".$setNo."/".$filename; $thumbsize = getimagesize($filePath); $img = ''; echo " \n"; if ($cellCount == 3) { echo "\n"; $cellCount = 0; $rowCount++; }else{ if($i == ($photosetnum - 1) && $cellCount == 2){ echo " \n"; echo "\n"; $rowCount++; } if($i == ($photosetnum - 1) && $cellCount == 1){ echo " \n"; echo " \n"; echo "\n"; $rowCount++; } } $cellCount++; $i++;}//while } echo ""; } ?> \n"; echo "

Galleries: "; $i = 0; while($i < $photosetnum) { $navNum = $i + 1; $setNo = mysql_result($photosetquery_result,$i,0); $title = mysql_result($photosetquery_result,$i,1); echo $navNum." - ".$title.";  \n"; $i++;}//while echo "

View Gallery Selection Menu "; echo "

\n"; echo "\n"; //echo "Row Count =".$rowCount.", Caption count =".$captionCount." and Title count =".$titleCount; } } ?>