Login Details

Login :
Password :
Pirates
Russian France FlagFrench Español FlagEspañol Italiano FlagItaliano Deutsch FlagDeutsch Japanese Flag Japanese 


Catalogue
             



0?$page:1; $start=($page-1)*$size; //$pagestring="Move To :"; if (isset($_GET["page"])) $page=intval($_GET["page"],20); $query5="select SQL_CALC_FOUND_ROWS * from snexports_manageproducts where category='$cat' and subcategory='$subcat' and isactive=1 order by priority asc limit ".$start.",".$size; $res55 =mysql_query($query5) or die(mysql_error()); $tot1=mysql_query("select found_rows()"); $tot1=mysql_result($tot1, 0, 0); $pagecount=ceil($tot1/$size); $page=$page>0 && $pagecount>=$page?$page:1; $start=($page-1)*$size; //========================== if(($page != 1) and ($page != "")) { $prev=$page - 1; //$pagestring.=" << Prev "; } $pagingstart=($page>6 ? $page-5:1); $pagingend=$pagingstart+9; if($pagingend > $pagecount) { $pagingend=$pagecount; } if($pagingstart > 1) { $pagestring.="...."; } //echo $pagingstart; //echo $pagingend; //============================= for ($i=$pagingstart;$i<=$pagingend;$i++) { if ($page==$i) $pagestring.=""; else $pagestring.=""; } //========================== if($pagingend < $pagecount) { $pagestring.="...."; } if($page != $pagecount) { $next=$page + 1; //$pagestring.=" Next >> "; } ?>
Item Code:



© Copyright 2009 www.snexports.com