コード例 #1
0
ファイル: company.php プロジェクト: BGCX262/zy-sms-svn-to-git
function select()
{
    $company = new company();
    if (isset($_GET['page'])) {
        $pages = $_GET['page'];
    } else {
        $pages = 1;
    }
    $GLOBALS['pages'] = $pages;
    $page = new page($pages);
    $GLOBALS['page'] = $page;
    $total = $company->countCompany();
    $GLOBALS['page']->pageft($total, $GLOBALS['displaypg']);
    $item = $company->queryCompany();
    global $smarty;
    $smarty->assign("item", $item);
    $smarty->assign("nextpage", $GLOBALS['page']->getPagenav());
}