0 ? true : false; $text = $r['text']; $picType = $r['picType']; } if($subCategoryID) { $q = "select * from subCategories where subCategoryID=".$subCategoryID; $result = mysql_query($q,$conn); $r = mysql_fetch_array($result); $subCategory = $r['subCategory']; $text = $r['text']; $picType = $r['picType']; } ?>

".$r['subCategory']." | "; } $subCategories = substr($subCategories,0,strlen($subCategories)-3); $listName = "Catalogue"; // if category is Photography Catalog if($categoryID == 1) { $q = "select * from words where wordID=1"; $result = mysql_query($q,$conn); $r = mysql_fetch_array($result); $listName = $r['value']; } ?>
"; if($i > 0) { break; } $orientation = $r['orientation']; } $dimensions = ""; // Only show dimensions if the category we are in is Photography if($categoryID == 1) { $dimensions = "
Dimensions
"; switch($orientation) { case "horizontal": case "vertical": $dimensions .= " 80" x 20"
60" x 18"
40" x 14"
20" x 7"
"; break; case "horizontalSquare": case "verticalSquare": $dimensions .= " 32" x 40"
16" x 20"
11" x 14"
"; break; } } $dimensions .= "
Custom sizes available upon request

"; $img .= "
".$dimensions."<a href="javascript:printImg(".$r['pictureID'].")">Print</a>\">
".$r['title']."
"; $i++; // orientation = fullPage, meaning we are displaying 1 per page if($orientation == "fullPage") { $img = "
".$r[
"; break; } switch($orientation) { case "horizontal": if($i%2 == 0) { $rows++; } break; case "vertical": if($i%7 == 0) { $rows++; } break; case "fullPage": if($i%1 == 0) { $rows++; } break; default: if($i%4 == 0) { $rows++; } } if($rows == $maxRows) { break; } } $count += $i; if($i == 0) { ?>

No pictures available at this time

$img"; ?>
»"; ?>«"; $next = "»"; ?>«"; $next = "»"; ?>
"; if($i > 0) { if($thisPage == $page) { echo $thisPage; } else if($i != $lastRecord) { ?>