* 链接 * php>=5.0 * @author LEI * @version 1.1.2 * @time 20111004 */ //初始化 $pagetitle = '链接管理'; $pagepower = 'links'; //基本部分 require 'checkpower.inc.php'; //功能部分 include WEB_MOD . 'links.class.php'; include WEB_MOD . 'links_class.class.php'; $links = new Links(); $links_class = new Links_class(); switch ($a) { case 'list': default: //list $pageListNum = 12; //每页显示 $totalPage = 0; //总页数 $page = isset($page) ? (int) $page : 1; $start = ($page - 1) * $pageListNum; $List = $links->GetList(array('id', 'classid', 'title', 'linkurl'), $start, $pageListNum, '', 'id desc'); include WEB_INC . "page.class.php"; $sqlNum = "select id from {tablepre}links"; $db->Execute($sqlNum); $pageNum = $db->GetRsNum();
* 链接分类管理 * php>=5.0 * @author LEI * @version 1.1.2 * @time 20111004 */ //初始化 $pagetitle = '链接分类管理'; $pagepower = 'links_class'; //基本部分 require 'checkpower.inc.php'; //功能部分 include WEB_MOD . 'links.class.php'; include WEB_MOD . 'links_class.class.php'; $links = new Links(); $links_class = new Links_class(); require_once WEB_INC . 'uclass.class.php'; $CL = new Uclass(); switch ($a) { case 'list': default: //list $List = $links_class->GetList(array('id', 'title')); //$List = $CL->arraySet($List,0); $templatefile = 'links_class_list.tpl.php'; break; case 'edit': // if (isset($submit)) { $info = array(); $time = time();