啊啊好大好舒服av大鸡吧亚洲一区二乱,国产黄A三级三级在线看,熟女作爱一区二区视频,年龄最小的无码AⅤ在线观看,又黑又大又黄又爽国产,猛插女人视频网站,国产免费观看三级黄色,毛片一区二区三区四区五区在线视频 ,欧美顶级黄最新视频在线观看,高清在线一区二区

龍巖易富通網(wǎng)絡(luò)科技有限公司

龍巖小程序開發(fā),龍巖分銷系統(tǒng)

ecshop后臺分頁代碼

2016.05.15 | 1992閱讀 | 0條評論 | php

<?php

if($_REQUEST['act'] == 'list'){

//獲取信息列表

$order_list = order_list();

$smarty->assign('order_list',  $order_list['order_list']);

$smarty->assign('filter',       $order_list['filter']);

$smarty->assign('record_count', $order_list['record_count']);

$smarty->assign('page_count',   $order_list['page_count']);

//后臺頁面樣式

$smarty->assign('full_page',    1);

//跳轉(zhuǎn)頁面

assign_query_info();

$smarty->display('order_list.htm');

}

elseif ($_REQUEST['act'] == 'query'){//分頁代碼

//獲取信息列表

$order_list = order_list();

$smarty->assign('order_list',  $order_list['order_list']);

$smarty->assign('filter',       $order_list['filter']);

$smarty->assign('record_count', $order_list['record_count']);

$smarty->assign('page_count',   $order_list['page_count']);

//跳轉(zhuǎn)頁面

make_json_result ( $smarty->fetch ( 'order_list.htm' ), '', array ('filter' => $order_list ['filter'], 'page_count' => $order_list ['page_count'] ) );

}


//查詢數(shù)據(jù)方法

function order_list()

{

$sql = 'SELECT COUNT(*) FROM ' . $GLOBALS['ecs']->table('cuanji');

$filter['record_count'] = $GLOBALS['db']->getOne($sql);

$filter = page_and_size($filter);

/* 獲活動數(shù)據(jù) */

$sql = 'SELECT * FROM ' . $GLOBALS['ecs']->table('cuanji').' LIMIT '. $filter['start'] .', ' . $filter['page_size'];

$filter['keywords'] = stripslashes($filter['keywords']);

set_filter($filter, $sql);

$row = $GLOBALS['db']->getAll($sql);

$arr = array('order_list' => $row, 'filter' => $filter, 'page_count' => $filter['page_count'], 'record_count' => $filter['record_count']);

return $arr;

}

?>

<!—————————————————html代碼———————————————->

<!–導(dǎo)入js–>

{insert_scripts files='../js/utils.js,listtable.js'}

<!–動態(tài)賦值div 名字必須相同–>

<div  id='listDiv'>

<!–循環(huán)顯示相關(guān)信息–>

</div>

<!–分頁樣式–>

{include file='page.htm'}

<script>

//分頁js賦值

listTable.recordCount = {$record_count};

listTable.pageCount = {$page_count};

{foreach from=$filter item=item key=key}

listTable.filter.{$key} = '{$item}';

{/foreach}

</script>


贊 (

發(fā)表評論