本文整理汇总了PHP中pager::pageList方法的典型用法代码示例。如果您正苦于以下问题:PHP pager::pageList方法的具体用法?PHP pager::pageList怎么用?PHP pager::pageList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pager
的用法示例。
在下文中一共展示了pager::pageList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
//echo "<td >Sửa</td>";
echo "</tr>";
$stt = 1;
while ($row = mysql_fetch_object($result)) {
$id = $row->id;
$tieude = $row->tieude;
$tieude_en = $row->tieude_en;
$thuoc_menu = $row->thuoc_menu;
$hinhanh = "../Hinh CTSP/" . $row->hinhanh;
$hinhanh = "<img src='{$hinhanh}' width='40' height='20' '>";
if ($stt % 2 == 0) {
echo "<tr bgcolor='#00ccff'>";
} else {
echo "<tr>";
}
echo "<td>{$stt}</td>";
/* echo "<td>$id</td>";*/
echo "<td>{$tieude}</td>";
echo "<td>{$tieude_en}</td>";
echo "<td>{$hinhanh}</td>";
echo "<td align='center'><a href='quan_tri.php?p=9&id=" . $id . "' onclick=\"return confirm('Bạn có muốn xóa thông tin này ?')\"><img src='images/xoa_record.png' border='0'></a></td>";
echo "<td align='center'><a href='quan_tri.php?p=10&id=" . $id . "&thuoc_menu=" . $thuoc_menu . "'><img src='images/sua_record.png' border='0'></a></td>";
echo " </tr>";
$stt = $stt + 1;
}
echo " </table>";
}
$pagelist = $p->pageList($_GET['page'], $pages);
echo "<p align='center'>";
echo $pagelist;
echo "</p>";
示例2:
$product_detail_submenu = $xl_submenu_db->getProduct_nsx($nsx, $start, $limit);
$total = $xl_submenu_db->countProduct_nsx($nsx);
} else {
$total = $xl_submenu_db->countProduct_detail_submenu($result_submenu[$i]['cat1id'], $result_submenu[$i]['cat2id'], $result_submenu[$i]['cat3id'], $flag);
//var_dump($result_submenu[$i]['cat3id']);
// var_dump("</br>");
$product_detail_submenu = null;
$product_detail_submenu = $xl_submenu_db->getProduct_detail_submenu($result_submenu[$i]['cat1id'], $result_submenu[$i]['cat2id'], $result_submenu[$i]['cat3id'], $flag, $start, $limit);
$DisplayActive = $result_submenu[$i]['cat1id'];
}
}
//var_dump($total);
//var_dump($product_detail_submenu);
//tạo thành phân trang
$pages = $pager->findPages($total, $limit);
$thanh_phan_trang = $pager->pageList($_GET['page'], $pages);
?>
<div class="class" title = "<?php
echo $DisplayActive;
?>
" style="display:block"></div>
<script>
$( document ).ready(function() {
var title = $("div.class").attr("title").toLowerCase();
var isActive = false;
if(!isActive)
{
$(".sub-nav-inner li.menubar").each(function(){
var name = $(this).find("a").eq(0).attr("href");
if(name != undefined && name != '')
{