f=view_art.php?cat='.$cat.'&page='. ($page - 5) .'>'. ($page - 5) .' | '; if($page - 4 > 0) $page4left = ' '. ($page - 4) .' | '; if($page - 3 > 0) $page3left = ' '. ($page - 3) .' | '; if($page - 2 > 0) $page2left = ' '. ($page - 2) .' | '; if($page - 1 > 0) $page1left = ' '. ($page - 1) .' | '; if($page + 5 <= $total) $page5right = ' | '. ($page + 5) .''; if($page + 4 <= $total) $page4right = ' | '. ($page + 4) .''; if($page + 3 <= $total) $page3right = ' | '. ($page + 3) .''; if($page + 2 <= $total) $page2right = ' |