示例#1
0
文件: list.php 项目: chaobj001/tt
* 登陆页面
*
* @author    indraw <*****@*****.**>
* @version   1.0
* @copyright 商业软件,受著作权保护
* @link      http://***
* @create     2007/2/9 下午
*/
//包含配置
include_once 'includes/LibConfig.inc.php';
$oApp->setMySQL();
$oApp->loadClass("PageMaker");
//$oMySQL->debug_all = true;
$oMySQL->show_errors = true;
/*--------------------------------------------------------*/
//简单流程
$oPage = new PageMaker();
$oPage->Page = $_GET['page'];
$oPage->PerPage = 5;
//$oPage->Condition = "&sortid=".$iSortid; //分页传送条件
$oLogicUser = new Logic_Demo_User();
$aListUser = $oLogicUser->listUser($oPage);
//_dump($aListUser);
//调试信息
$oSmarty->assign("user", $aListUser);
$oSmarty->assign("page", $oPage->getPage());
//可以使用三种分页方法,基本囊括了所有分页实现
$oSmarty->display("list.htm");
//调试信息
//_dump($_SESSION);
/*--------------------------------------------------------*/