信呼v2.5.2版本
This commit is contained in:
@@ -103,6 +103,7 @@ class adminClassAction extends Action
|
||||
|
||||
public function updatedataAjax()
|
||||
{
|
||||
c('cache')->del('deptuserjson');
|
||||
$a = $this->updatess();
|
||||
m('imgroup')->updategall();
|
||||
echo '总'.$a[0].'条记录,更新了'.$a[1].'条';
|
||||
|
||||
@@ -367,7 +367,7 @@ return array(
|
||||
if(getconfig('systype')=='demo')return '演示不要改';
|
||||
$stype = (int)$this->post('stype','0');
|
||||
$msg = 'ok';
|
||||
if($stype==0)$msg = $this->saveconfig('title,imgcompress,watertype,video_bool,flowchehuitime,saasmode,hoemtimeout',',video_bool,');
|
||||
if($stype==0)$msg = $this->saveconfig('title,imgcompress,watertype,video_bool,flowchehuitime,saasmode,hoemtimeout,usercache',',video_bool,');
|
||||
|
||||
return $msg;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ $(document).ready(function(){
|
||||
}
|
||||
this.xuannum = [];
|
||||
var xues = ',gong,vcard,remind,tovoid,';
|
||||
var less = ',公文,进销存,客户,工程,考勤,物品,车辆,学校,';
|
||||
var less = ',公文,进销存,客户,工程,考勤,物品,车辆,学校,物业,';
|
||||
|
||||
var d,i1,i2=0,i3=0,dis='',bh='',zs=0;
|
||||
for(i in typarr){
|
||||
@@ -165,6 +165,9 @@ $(document).ready(function(){
|
||||
<span style="color:#aaaaaa;">单位分钟,默认是0没有限制</span></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
|
||||
<tr><td align="right" style="color:gray">读取人员缓存方式:</td><td><select style="width:200px" name="usercache" class="form-control"><option value="">默认本地浏览器缓存</option><option <?php if(getconfig('usercache')=='1')echo 'selected';?> value="1">不缓存本地浏览器</option></select></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
|
||||
<tr>
|
||||
<td align="right"></td>
|
||||
<td align="left"><button click="savecog,0" class="btn btn-success" type="button"><i class="icon-save"></i> 保存</button> <span id="msgview0_{rand}"></span>
|
||||
|
||||
@@ -128,7 +128,7 @@ class deptClassAction extends Action
|
||||
$bo = $this->contain($val, $ars['did']);
|
||||
}
|
||||
$ars['checked']=$bo;
|
||||
}
|
||||
}
|
||||
}
|
||||
$rows[] = $ars;
|
||||
}
|
||||
@@ -137,7 +137,14 @@ class deptClassAction extends Action
|
||||
|
||||
public function deptuserjsonAjax()
|
||||
{
|
||||
$udarr = m('dept')->getdeptuserdata(1);
|
||||
$udarr = m('dept')->getdeptuserdata(1);
|
||||
$bool = false;
|
||||
if(!ISMORECOM && !$udarr['uarr'] && $udarr['isall']){
|
||||
$udarrs = c('cache')->get('deptuserjson');
|
||||
if($udarrs)$udarr = $udarrs;
|
||||
$bool = true;
|
||||
}
|
||||
|
||||
$userarr = $udarr['uarr'];
|
||||
$deptarr = $udarr['darr'];
|
||||
$grouparr = $udarr['garr'];
|
||||
@@ -145,6 +152,8 @@ class deptClassAction extends Action
|
||||
$arr['deptjson'] = json_encode($deptarr);
|
||||
$arr['userjson'] = json_encode($userarr);
|
||||
$arr['groupjson'] = json_encode($grouparr);
|
||||
$arr['iscache'] = getconfig('usercache');
|
||||
if(!ISMORECOM && $udarr['isall'] && !$bool)c('cache')->set('deptuserjson', $udarr);
|
||||
$this->showreturn($arr);
|
||||
}
|
||||
}
|
||||
@@ -55,15 +55,21 @@ var c = {
|
||||
$('#showtype').css('height',''+he+'px');
|
||||
},
|
||||
loaddata:function(iscs){
|
||||
var url = js.getajaxurl('deptuserjson','dept','system',{'changerange':this.changerange});
|
||||
var url = js.getajaxurl('deptuserjson','dept','system',{'changerange':this.changerange,'gtype':'change'});
|
||||
$('#showdiv_0').html('<div align="center" style="margin-top:30px"><img src="images/mloading.gif"></div>')
|
||||
$.get(url,function(ret){
|
||||
var d = js.decode(ret);
|
||||
ret = d.data;
|
||||
if(c.changerange==''){
|
||||
js.setoption('deptjson', ret.deptjson);
|
||||
js.setoption('userjson', ret.userjson);
|
||||
js.setoption('groupjson', ret.groupjson);
|
||||
if(ret.iscache=='1'){
|
||||
js.setoption('deptjson', '');
|
||||
js.setoption('userjson', '');
|
||||
js.setoption('groupjson', '');
|
||||
}else{
|
||||
js.setoption('deptjson', ret.deptjson);
|
||||
js.setoption('userjson', ret.userjson);
|
||||
js.setoption('groupjson', ret.groupjson);
|
||||
}
|
||||
}
|
||||
|
||||
c.userarr = js.decode(ret.userjson);
|
||||
|
||||
@@ -95,7 +95,8 @@ class sysfileClassAction extends Action
|
||||
if($str=$this->iscaozuo())return $str;
|
||||
$path = $this->jm->base64decode($this->get('path'));
|
||||
if(isempt($path))return '无效路径';
|
||||
if(!file_exists($path))return '文件不存在';
|
||||
|
||||
if(!file_exists(ROOT_PATH.'/'.$path))return '文件不存在';
|
||||
$pathinfo=pathinfo($path);
|
||||
|
||||
$filename = $pathinfo['basename'];
|
||||
|
||||
Reference in New Issue
Block a user