//$row=mysql_fetch_array($result); return $result; } } if (isset($_GET["page"])) { $page = $_GET["page"]; } else { $page = 1; } $temp = substr($_GET["type"], -3, 3); if ($temp == "_id") { $type = $_GET["type"]; } else { $type = $_GET["type"] . "_id"; } $status = $_GET["state"]; $id = $_GET["id"]; $temp = $status ? "&status={$status}" : null; $url = "order_list_stats.php?type=" . $type . $temp . "&id={$id}"; $order_list_stats = new order_List_Stats($type, $status, $id); $num = $order_list_stats->getNum(); //返回数据的记录数 $pageClass = new pageClass($page, $url, $num); $pageClass->display_top(); //显示页面顶部 $array = $pageClass->getArray(); //返回数据起始和终点位置 $result = $order_list_stats->getResult($array["start"], $array["end"]); //返回查找到的数据 $pageClass->display_data($result); $pageClass->display();
/* * e107 website system * * Copyright (C) e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * * URL and front controller Management * * $URL$ * $Id$ */ require_once "class2.php"; e107::coreLan('page'); $e107CorePage = new pageClass(false); // Important - save request BEFORE any output (header footer) - used in navigation menu if (!e_QUERY) { $e107CorePage->setRequest('listBooks'); $e107CorePage->listBooks(); require_once HEADERF; e107::getRender()->tablerender($e107CorePage->pageOutput['caption'], $e107CorePage->pageOutput['text'], "cpage-full-list"); // $tmp = $e107CorePage->listPages(); //$tmp = $e107CorePage->listBooks(); // $text = $tp->parseTemplate("{PAGE_NAVIGATION=book=2}",true); /*if(is_array($tmp)) { $ns->tablerender($tmp['title'], $text, 'cpage-full-list'); }*/ require_once FOOTERF; exit;
/* * e107 website system * * Copyright (C) e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * * URL and front controller Management * * $URL$ * $Id$ */ require_once "class2.php"; e107::coreLan('page'); $e107CorePage = new pageClass(false); if (!e_QUERY) { require_once HEADERF; // $tmp = $e107CorePage->listPages(); $tmp = $e107CorePage->listBooks(); if (is_array($tmp)) { $ns->tablerender($tmp['title'], $tmp['text']); require_once FOOTERF; exit; } } else { $e107CorePage->processViewPage(); require_once HEADERF; echo $e107CorePage->showPage(); require_once FOOTERF; exit;