发布v2.5.6版本
This commit is contained in:
@@ -257,10 +257,14 @@ class indexClassAction extends Action{
|
||||
$surl = $this->jm->base64decode($this->get('surl'));
|
||||
$num = $this->get('num');
|
||||
$menuname = $this->jm->base64decode($this->get('menuname'));
|
||||
$urlpms = $this->jm->base64decode($this->get('urlpms'));
|
||||
if(isempt($surl))exit('not found');
|
||||
$file = ''.P.'/'.$surl.'.php';
|
||||
if(!file_exists($file))$file = ''.P.'/'.$surl.'.shtml';
|
||||
if(!file_exists($file))exit('404 not found '.$surl.'');
|
||||
$params = array();
|
||||
if($urlpms)$params = json_decode('{'.str_replace('\'','"', $urlpms).'}', true);
|
||||
$this->assign('pageparams', $params);
|
||||
if(contain($surl,'home/index/rock_index'))$this->showhomeitems();//首页的显示
|
||||
$this->displayfile = $file;
|
||||
//记录打开菜单日志
|
||||
|
||||
@@ -374,9 +374,12 @@ function highsearchclass(options){
|
||||
if(this.type==1){
|
||||
js.tanbody('searchhigh','自定义列显示', 300,350,{
|
||||
html:'<div id="searchhighhtml" class="select-list" style="height:300px;overflow:auto;"></div>',
|
||||
btn:[{text:'确定'}]
|
||||
btn:[{text:'确定'},{text:'清空',bgcolor:'#d9534f'}]
|
||||
});
|
||||
this.initfields();
|
||||
$('#searchhigh_btn1').click(function(){
|
||||
me.clearcolumn();
|
||||
});
|
||||
}
|
||||
$('#searchhigh_btn0').click(function(){
|
||||
me.queding();
|
||||
@@ -489,18 +492,24 @@ function highsearchclass(options){
|
||||
if(this.checked)d+=','+this.value+'';
|
||||
});
|
||||
if(d!='')d=d.substr(1);
|
||||
this.setmsg('保存中...');
|
||||
js.ajax(js.getajaxurl('savecolunms','flow','main'),{num:this.columnsnum,str:d,modeid:this.modeid},function(s){
|
||||
if(s=='ok'){
|
||||
js.msg('success','保存成功');
|
||||
me.oncallback(d);
|
||||
js.tanclose('searchhigh');
|
||||
}else{
|
||||
me.setmsg(s);
|
||||
}
|
||||
},'post');
|
||||
this.savecolunms(d);
|
||||
}
|
||||
};
|
||||
this.savecolunms=function(d){
|
||||
this.setmsg('保存中...');
|
||||
js.ajax(js.getajaxurl('savecolunms','flow','main'),{num:this.columnsnum,str:d,modeid:this.modeid},function(s){
|
||||
if(s=='ok'){
|
||||
js.msg('success','保存成功');
|
||||
me.oncallback(d);
|
||||
js.tanclose('searchhigh');
|
||||
}else{
|
||||
me.setmsg(s);
|
||||
}
|
||||
},'post');
|
||||
};
|
||||
this.clearcolumn=function(){
|
||||
this.savecolunms('');
|
||||
};
|
||||
this.saveformdata=function(){
|
||||
var d = js.getformdata('highform');
|
||||
this.setinitdata('data',d);
|
||||
|
||||
@@ -443,7 +443,7 @@ function addtabs(a){
|
||||
a.urlpath = url+'.php';
|
||||
objcont.append('<div temp="content" id="content_'+num+'"></div>');
|
||||
$.ajax({
|
||||
url:'?m=index&a=getshtml&surl='+jm.base64encode(url)+'&num='+num+'&menuname='+jm.base64encode(a.name)+'',
|
||||
url:'?m=index&a=getshtml&surl='+jm.base64encode(url)+'&num='+num+'&menuname='+jm.base64encode(a.name)+'&urlpms='+jm.base64encode(urlpms)+'',
|
||||
type:'get',
|
||||
success: function(da){
|
||||
$('#mainloaddiv').remove();
|
||||
|
||||
Reference in New Issue
Block a user