- โปรโมชั่น -
$objQuery=$db->query("select * from promotion where pr_online='0'"); $Num_Rows = $db->rows($objQuery); $Per_Page = 4; // Per Page if(isset($_POST["Page"])){ $Page = $_POST["Page"]; } elseif(isset($_GET['Page'])){ $Page=$_GET['Page']; } elseif(!isset($_POST['Page']) and !isset($_GET['Page'])) { $Page=1; } $Prev_Page = $Page-1; $Next_Page = $Page+1; $Page_Start = (($Per_Page*$Page)-$Per_Page); if($Num_Rows<=$Per_Page) { $Num_Pages =1; } else if(($Num_Rows % $Per_Page)==0) { $Num_Pages =($Num_Rows/$Per_Page) ; } else { $Num_Pages =($Num_Rows/$Per_Page)+1; $Num_Pages = (int)$Num_Pages; } $page_end=$Page_Start+$Per_Page; ?>-
$qr=$db->query("select * from promotion where pr_online='0' order by pr_date desc limit $Page_Start,$Per_Page");
while($rs=$db->fetcharray($qr)){
$o=$rs->pr_online;
if($o==0){
$on="pr_no."\">ONLINE";
}if($o==1){
$on="pr_no."\">OFFLINE";
}?>
- } ?>
-
if($Num_Rows > 4) {
$pages = new Paginator;
$pages->items_total = $Num_Rows;
$pages->mid_range = 5;
$pages->current_page = $Page;
$pages->default_ipp = $Per_Page;
$pages->url_next = $_SERVER["PHP_SELF"]."?Page=";
$pages->url_next_ = $_SERVER["PHP_SELF"]."?Page=";
$pages->paginate();
echo $pages->display_pages();
$page_ = $pages->display_pages();
$str = strip_tags($page_);
$arr = array();
for($i=0; $i
| Go to "; } ?>

ก๋วยเตี๋ยวลูกชิ้นหมูแม่ตุ๋มวัดพระศรี
Copyright 2011 MaetoomNoodle.com All Rights Reserved.ByAke Design include("./counter/countermodule.php");?>