- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
if ($page != 1) $pervpage = '<a href="?emw;News;1" rel="history2">'.first.'</a> | <a href="?emw;News;'.($page - 1).'" rel="history2">'.previous.'</a> | ';
if ($page != $total) $nextpage = ' | <a href="?emw;News;'.($page + 1).'" rel="history2">'.next.'</a> | <a href="?emw;News;'.$total.'" rel="history2">'.last.'</a>';
if ($page - 5 > 0) $page5left = '<a href="?emw;News;'.($page - 5).'" rel="history2">'.($page - 5).'</a> | ';
if ($page - 4 > 0) $page4left = '<a href="?emw;News;'.($page - 4).'" rel="history2">'.($page - 4).'</a> | ';
if ($page - 3 > 0) $page3left = '<a href="?emw;News;'.($page - 3).'" rel="history2">'.($page - 3).'</a> | ';
if ($page - 2 > 0) $page2left = '<a href="?emw;News;'.($page - 2).'" rel="history2">'.($page - 2).'</a> | ';
if ($page - 1 > 0) $page1left = '<a href="?emw;News;'.($page - 1).'" rel="history2">'.($page - 1).'</a> | ';
if ($page + 5 <= $total) $page5right = ' | <a href="?emw;News;'. ($page + 5) .'" rel="history2">'.($page + 5).'</a>';
if ($page + 4 <= $total) $page4right = ' | <a href="?emw;News;'. ($page + 4) .'" rel="history2">'.($page + 4).'</a>';
if ($page + 3 <= $total) $page3right = ' | <a href="?emw;News;'. ($page + 3) .'" rel="history2">'.($page + 3).'</a>';
if ($page + 2 <= $total) $page2right = ' | <a href="?emw;News;'. ($page + 2) .'" rel="history2">'.($page + 2).'</a>';
if ($page + 1 <= $total) $page1right = ' | <a href="?emw;News;'. ($page + 1) .'" rel="history2">'.($page + 1).'</a>';
if ($total > 1)
{
Error_Reporting(E_ALL & ~E_NOTICE);
echo "<center><div class=\"pstrnav\">";
echo $pervpage.$page5left.$page4left.$page3left.$page2left.$page1left.'<b>'.$page.'</b>'.$page1right.$page2right.$page3right.$page4right.$page5right.$nextpage;
echo "</div></center>";
}