| | |
| | | $this->yunset('newModel',$newModel); |
| | | $this->yuntpl(array('admin/admin_model_config')); |
| | | } |
| | | |
| | | function save_action(){ |
| | | $NavigationM = $this -> MODEL('navigation'); |
| | | $ConfigM = $this -> MODEL('config'); |
| | |
| | | $this->ACT_layer_msg("模块设置修改成功!",9,"index.php?m=model_config",2,1); |
| | | } |
| | | } |
| | | |
| | | function setnav_action(){ |
| | | $NavigationM = $this -> MODEL('navigation'); |
| | | if($_GET["config"]){ |
| | |
| | | ); |
| | | if($_POST['id']){ |
| | | $nbid = $NavigationM -> upNav($postData,array('id'=>$_POST['id'])); |
| | | $this->navcache(); |
| | | }else{ |
| | | $nbid = $NavigationM -> addNav($postData); |
| | | $this -> navcache(); |
| | | } |
| | | if (!$nbid) { |
| | | $this->layer_msg('导航设置失败!', 8); |
| | | } |
| | | // var_dump($nbid);exit; |
| | | $this->navcache(); |
| | | $this->layer_msg('导航设置成功!',9); |
| | | |
| | | } |
| | | } |
| | | |
| | | function setseo_action(){ |
| | | $SeoM = $this -> MODEL('seo'); |
| | | if($_GET["config"]){ |
| | |
| | | $this -> layer_msg('SEO设置成功!',9); |
| | | } |
| | | } |
| | | |
| | | function getseo_action(){ |
| | | $SeoM = $this -> MODEL('seo'); |
| | | if($_POST['id']){ |
| | |
| | | echo json_encode($data); |
| | | } |
| | | } |
| | | |
| | | function navcache(){ |
| | | include(LIB_PATH."cache.class.php"); |
| | | $cacheclass = new cache(PLUS_PATH,$this->obj); |
| | | $makecache = $cacheclass -> menu_cache("menu.cache.php"); |
| | | } |
| | | |
| | | function seocache(){ |
| | | include(LIB_PATH."cache.class.php"); |
| | | $cacheclass = new cache(PLUS_PATH,$this->obj); |