First | "; else $firstURL=" | First | "; $urls=""; if($_REQUEST['p']<10) $startPage=1; else $startPage=(int)($_REQUEST['p']/10)*10+1; //echo $startPage; if($startPage+10<=$totPages) $endPage=$startPage+10; else $endPage=$lastPage; $prevPage=$startPage-2; if($prevPage>=0) $prevURL=" | Previous | "; else $prevURL=" | Previous | "; //echo $startPage.", ".$endPage; for($i=$startPage-1;$i<$endPage;$i++) { $j=$i+1; if($i==$_REQUEST['p']) { $urls.=" | $j | "; } else { $urls.=" | $j | "; } if($j%10==0) break; } $nextPage=$i+1; if($nextPage-1!=$lastPage) $nextURL=" | Next | "; else { $k=$nextPage-1; if($k==$_REQUEST['p']) $urls.=" | $nextPage | "; else $urls.=" | $nextPage | "; $nextURL=" | Next | "; } if($nextPage-1!=$lastPage) $lastURL=" | Last | "; else $lastURL=" | Last | "; $query=$sql." limit $start, $pageSize"; $rs=mysql_query($query); //echo $query; echo " |
"; echo "Currently there are no news/articles in this category."; echo " | "; echo "|||
";
echo "
| ";
echo "";
echo "";
echo " Posted by ".$row["user_name"]." on ".formatDate($row["post_date"])." (".trimURL($row["url"]).") ";
echo "Category : ".$row["cat_name"]." | Tags : ".splitTags($row["tags"])." ";
echo $row["summary"].""; include 'inc/middle-adds.php'; echo " | ";
echo "||
";
echo "
| ";
echo "";
echo "";
echo " Posted by ".$row["user_name"]." on ".formatDate($row["post_date"])." (".trimURL($row["url"]).") ";
echo "Category : ".$row["cat_name"]." | Tags : ".splitTags($row["tags"])." ";
echo $row["summary"].""; include 'inc/middle-adds.php'; echo " | ";
echo "(Click to Enlarge) | ";
echo "|
";
echo " | ";
echo "|||
"; echo " | "; include_once 'inc/tags.php'; echo " | "; echo "