|
Halo 2 Soundtrack V2 Contest - All Entrantsif(empty($_REQUEST['display'])) { if (empty($_REQUEST['page'])) {$page = "1";} else {$page = $_REQUEST['page'];} // echo ''.print_r ($order).''; $imgstart = (($page-1)*$imgperpage); if (($imgstart+$imgperpage) <= $num_results) {$imgend = $imgstart+$imgperpage;} else {$imgend = $num_results;} $counter="0"; $pagecounter="0"; $firstheader="yes"; echo ' Page '.$page.': Images '.($imgstart+1).' - '.($imgend).' '; echo ''."\n"; $prevpage = $page-1; $nextpage = $page+1; if ($prevpage >= 1) {$startlink = 'FIRST | ';} else {$startlink = "";} if ($prevpage < 1) {$prevpagelink = "";} else {$prevpagelink = 'PREVIOUS ';} if ($nextpage > ceil(count($order)/$imgperpage)) {$nextpagelink = "";} else {$nextpagelink = ' NEXT | ';} if ($nextpage <= ceil(count($order)/$imgperpage)) {$lastlink = ' LAST';} else {$lastlink = "";} echo ' '.$startlink.$prevpagelink.$nextpagelink.$lastlink.' '; echo $imgblock; echo ''.$startlink.$prevpagelink.$nextpagelink.$lastlink.' '; } else { foreach($artwork as $artlines) { if(is_array($artlines)) { if ($artlines[0] == $_REQUEST['display']) { echo '
'.$prevlink.'BACK'.$nextlink.' '; } } } } echo ''; include("/usr/local/www/nikondata/includes/genfooter.html"); ?> |