special_listOp(); } /** * 专题列表 */ public function special_listOp() { $conition = array(); $conition['special_state'] = 2; $model_special = Model('cms_special'); $special_list = $model_special->getShopList($conition, 10, 'special_id desc'); Tpl::output('show_page', $model_special->showpage(2)); Tpl::output('special_list', $special_list); //分类导航 $nav_link = array( 0=>array( 'title'=>Language::get('homepage'), 'link'=>SHOP_SITE_URL ), 1=>array( 'title'=>'专题' ) ); Tpl::output('nav_link_list', $nav_link); Tpl::showpage('special_list'); } /** * 专题详细页 */ public function special_detailOp() { $special_file = getCMSSpecialHtml($_GET['special_id']); if($special_file) { Tpl::output('special_file', $special_file); Tpl::output('index_sign', 'special'); Tpl::showpage('special_detail'); } else { showMessage('专题不存在', '', '', 'error'); } } }