Location: PHPKode > projects > *StarShop - Call Shop Billing Software > starshop-oss-0.3/inc_creapages.php
<?php

/** 
 *	$Id: inc_creapages.php 14 2007-02-15 13:25:41Z sylverboss $
 *	Copyright (c) 2005, Abdoulaye Ba, www.starshop-online.com
 *	You can redistribute and/or modify it under the same term as GNU/GPL
**/
 
//--------------------------------------- Creating pages      

if ($RECORDS_PER_PAGE==0)
{
  $RECORDS_PER_PAGE=$numRows;
} 
$rsCount=$RECORDS_PER_PAGE;
if (intval($numRows/$rsCount)==$numRows/$rsCount)
{

  $pageCount=$numRows/$rsCount;
}
  else
{

  $pageCount=intval($numRows/$rsCount)+1;
} 


if ($pPage<=0)
{
  $pPage=1;
} 
if ($pPage>$pageCount)
{
  $pPage=$pageCount;
} 
$pPage=$pPage-1;
?>


Return current item: *StarShop - Call Shop Billing Software