yunset($this->MODEL('cache')->GetCache(array('city','job','hy','com'))); include(PLUS_PATH."user.cache.php"); $this->yunset("userdata",$userdata); $this->yunset("userclass_name",$userclass_name); include(PLUS_PATH."part.cache.php"); $this->yunset("partdata",$partdata); $this->yunset("partclass_name",$partclass_name); $qy_rows=$this->MODEL('rating')->getList(array('category'=>1,'orderby'=>'sort,desc')); $this->yunset("qy_rows",$qy_rows); $this->yunset("sy_weburl",$this->config['sy_weburl']); $path = APP_PATH."data/api/locoy/locoy_config.php"; require_once $path; $this->yunset("locoyinfo",$locoyinfo); $this->yuntpl(array('admin/admin_collection_list')); } function save_action(){ $config = "$value){ $locoyinfo[$key]=$value; } foreach($locoyinfo as $key=>$value){ $parr .= "\"".$key."\"=>\"".$value."\","; } $parr = rtrim($parr,","); $config.="\$locoyinfo=array(".$parr."); \r\n"; } $path = APP_PATH."data/api/locoy/locoy_config.php"; $fp = @fopen($path,"w"); fwrite($fp,$config); fclose($fp); if(is_array($locoy_type)) include(APP_PATH."data/api/locoy/locoy_config.php"); $this->ACT_layer_msg("保存成功!",9,"index.php?m=collection",2,1); } } ?>