dedecms分页
mshd_orderlist.php
$page = isset($_REQUEST['page']) ? intval($_REQUEST['page']) : 1; $count = $mshd_miaosha_member_obj -> getMemberList(true, $where_str, $order_by, ''); $page_size = 20;
$page_obj = new show_page;
$page_obj -> pvar="page";
$page_obj -> setvar($param_list);
$page_obj -> set($page_size,$count,$page);
$page_str = $page_obj -> output(true);
$limit = $page_obj -> limit();
$user_list = $mshd_miaosha_member_obj -> getMemberList(false, $where_str, $order_by, $limit); $smarty->assign("user_list",$user_list); $smarty->assign("page_str",$page_str);