* php>=5.0 * @author LEI * @version 1.1.2 * @time 20111004 */ //初始化 $pagetitle = '留言分类管理'; $pagepower = 'books_class'; $moduleRoot = WEB_MODULE . 'books/'; //基本部分 require WEB_INC . WEB_APP . 'controller/' . 'checkpower.inc.php'; //功能部分 include $moduleRoot . 'model/' . 'books.class.php'; include $moduleRoot . 'model/' . 'books_class.class.php'; $books = new Books(); $books_class = new Books_class(); require_once WEB_INC . 'uclass.class.php'; $CL = new Uclass(); switch ($a) { case 'list': default: //list $List = $books_class->GetList(array('id', 'title')); //$List = $CL->arraySet($List,0); if (is_file(WEB_TPL . 'books_class_list.tpl.php')) { $templatefile = 'books_class_list.tpl.php'; } else { $tpl_in_module = 1; $templatefile = $moduleRoot . WEB_APP . 'templates/' . 'books_class_list.tpl.php'; } break;
* @author LEI * @version 1.1.2 * @time 20111004 */ //初始化 $pagetitle = '留言'; $topTitle = ''; $where = ''; $moduleRoot = WEB_ROOT . 'module/books/'; //功能部分 include $moduleRoot . 'model/' . 'books.class.php'; include $moduleRoot . 'model/' . 'books_class.class.php'; //产品类功能 include WEB_ROOT . 'module/products/model/products.class.php'; $books = new Books(); $books_class = new Books_class(); include WEB_MOD . 'ads.class.php'; include WEB_MOD . 'adflash.class.php'; $ads = new Ads(); $adflash = new Adflash(); include WEB_MOD . 'keys.class.php'; $keys = new Keys(); include WEB_INC . 'validator.class.php'; $v = new Validator(); include WEB_MOD . 'links.class.php'; $links = new Links(); $templatefile = ''; $classinfo = ''; // //classid if (isset($classid)) {