* 下载 * php>=5.0 * @author LEI * @version 1.1.2 * @time 20111004 */ //初始化 $pagetitle = '下载'; $topTitle = ''; $where = ''; $moduleRoot = WEB_ROOT . 'module/downloads/'; //功能部分 include $moduleRoot . 'model/' . 'downloads.class.php'; include $moduleRoot . 'model/' . 'downloads_class.class.php'; $downloads = new Downloads(); $downloads_class = new Downloads_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)) {
* php>=5.0 * @author LEI * @version 1.1.2 * @time 20111004 */ //初始化 $pagetitle = '下载分类编辑'; $pagepower = 'downloads_class'; $moduleRoot = WEB_MODULE . 'downloads/'; //基本部分 require WEB_INC . WEB_APP . 'controller/' . 'checkpower.inc.php'; //功能部分 include $moduleRoot . 'model/' . 'downloads.class.php'; include $moduleRoot . 'model/' . 'downloads_class.class.php'; $downloads = new Downloads(); $downloads_class = new Downloads_class(); require_once WEB_INC . 'uclass.class.php'; $CL = new Uclass(); switch ($a) { case 'list': default: //list $List = $downloads_class->GetList(array('id', 'rootid', 'title', 'parentid')); $List = $CL->arraySet($List, 0); if (is_file(WEB_TPL . 'downloads_class_list.tpl.php')) { $templatefile = 'downloads_class_list.tpl.php'; } else { $tpl_in_module = 1; $templatefile = $moduleRoot . WEB_APP . 'templates/' . 'downloads_class_list.tpl.php'; } break;
* @author LEI * @version 1.1.2 * @time 20111004 */ //初始化 $pagetitle = '下载编辑'; $pagepower = 'downloads'; $where = ''; $moduleRoot = WEB_MODULE . 'downloads/'; //基本部分 require WEB_INC . WEB_APP . 'controller/' . 'checkpower.inc.php'; //功能部分 include $moduleRoot . 'model/' . 'downloads.class.php'; include $moduleRoot . 'model/' . 'downloads_class.class.php'; $downloads = new Downloads(); $downloads_class = new Downloads_class(); require_once WEB_INC . 'uclass.class.php'; $CL = new Uclass(); switch ($a) { case 'list': default: //list //列表 if (empty($classid)) { $where = ' 1 = 1 '; } else { $where = " classid = '" . $classid . "' "; } $pageListNum = 12; //每页显示 $totalPage = 0;