Pages:
$temp = 1;
if (isset($q)) { $q = str_replace(" ","+",$q); }
while ($temp <= $pages) {
if ($page == $temp) {
echo '
'.$page.' ';
}
else
{
if ($_GET['orderby'] == "latest") {
if (isset($_GET['q'])) {
if (isset($_GET['category'])) { $q .= '&category='.$_GET['category']; }
echo '
'.$temp.' ';
}
else
{
if (isset($_GET['category'])) { $c = '&category='.$_GET['category']; } else { $c = ""; }
echo '
'.$temp.' ';
}
}
else
{
if (isset($_GET['q'])) {
if (isset($_GET['category'])) { $c = '&category='.$_GET['category']; } else { $c = ""; }
echo '
'.$temp.' ';
}
else
{
if (isset($_GET['category'])) { $c = '&category='.$_GET['category']; } else { $c = ""; }
echo '
'.$temp.' ';
}
}
}
$temp++;
}
?>