发布v2.5.6版本
This commit is contained in:
@@ -30,7 +30,7 @@ class fworkClassAction extends Action
|
||||
$mid = '0';
|
||||
foreach($rows as $k=>$rs){
|
||||
$path = ''.P.'/flow/page/rock_page_'.$rs['num'].'.php';
|
||||
if(!file_exists($path) || $rs['isscl']==0)continue;
|
||||
if((!file_exists($path) && $rs['isscl']==1) || $rs['isscl']==0)continue;
|
||||
$lx = $rs['type'];
|
||||
$mid.=','.$rs['id'].'';
|
||||
$row[$lx][] = $rs;
|
||||
@@ -44,9 +44,13 @@ class fworkClassAction extends Action
|
||||
if(!isset($atypea[$nus]))$atypea[$nus] = $rs1['num'];
|
||||
}
|
||||
foreach($row as $lx=>$rowaa){
|
||||
$nrowa = array();
|
||||
foreach($rowaa as $k2=>$rs2){
|
||||
$row[$lx][$k2]['atype'] = $this->rock->arrvalue($atypea, $rs2['id']);
|
||||
$atype = $this->rock->arrvalue($atypea, $rs2['id']);
|
||||
$row[$lx][$k2]['atype'] = $atype;
|
||||
if($atype)$nrowa[] = $row[$lx][$k2];
|
||||
}
|
||||
$row[$lx] = $nrowa;
|
||||
}
|
||||
}
|
||||
$this->returnjson(array('rows'=>$row));
|
||||
@@ -325,9 +329,15 @@ class fworkClassAction extends Action
|
||||
|
||||
public function deltodoAjax()
|
||||
{
|
||||
$id = $this->post('id','0');
|
||||
$id = c('check')->onlynumber($this->post('id','0'));
|
||||
m('flow_todos')->delete('id in('.$id.') and `uid`='.$this->adminid.'');
|
||||
$this->backmsg();
|
||||
}
|
||||
|
||||
|
||||
public function deltodoydAjax()
|
||||
{
|
||||
$id = c('check')->onlynumber($this->post('id','0'));
|
||||
m('flow_todos')->update('`readdt`=now(),`isread`=1','id in('.$id.') and `uid`='.$this->adminid.' and `isread`=0');
|
||||
return returnsuccess();
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ $(document).ready(function(){
|
||||
s1 ='<div align="left" style="margin:20px;width:230px" class="list-group">';
|
||||
s1+='<div class="list-group-item list-group-item-success"><i class="icon-star-empty"></i> '+lx+'('+len+')</div>';
|
||||
for(i=0;i<len;i++){
|
||||
s1+='<a style="TEXT-DECORATION:none" onclick="opencoluske_{rand}(\''+d[i].name+'\',\''+d[i].num+'\',\''+d[i].atype+'\')" class="list-group-item">'+d[i].name+'</a>';
|
||||
s1+='<a style="TEXT-DECORATION:none" onclick="opencoluske_{rand}(\''+d[i].name+'\',\''+d[i].num+'\',\''+d[i].atype+'\','+d[i].isscl+')" class="list-group-item">'+d[i].name+'</a>';
|
||||
}
|
||||
s1+='</div>';
|
||||
strarr[l]+=s1;
|
||||
@@ -26,9 +26,11 @@ $(document).ready(function(){
|
||||
}
|
||||
}
|
||||
|
||||
opencoluske_{rand}=function(na,num,ats){
|
||||
opencoluske_{rand}=function(na,num,ats,scl){
|
||||
if(!ats)ats='my';
|
||||
addtabs({name:na,num:'search'+num+'',url:'flow,page,'+num+',atype='+ats+'',icons:'search'});
|
||||
var str = num;
|
||||
if(scl=='2')str='aas,bh='+num+'';
|
||||
addtabs({name:na,num:'search'+num+'',url:'flow,page,'+str+',atype='+ats+'',icons:'search'});
|
||||
}
|
||||
|
||||
js.ajax(js.getajaxurl('getmodesearcharr','{mode}','{dir}'),{},function(a){
|
||||
|
||||
@@ -74,6 +74,17 @@ $(document).ready(function(){
|
||||
},
|
||||
del:function(){
|
||||
a.del({checked:true,url:js.getajaxurl('deltodo','{mode}','{dir}')});
|
||||
},
|
||||
searchyidu:function(){
|
||||
var sid = a.getchecked();
|
||||
if(!sid){
|
||||
js.msg('msg','没有选中行记录');
|
||||
return;
|
||||
}
|
||||
js.ajax(js.getajaxurl('deltodoyd','{mode}','{dir}'),{id:sid},function(){
|
||||
a.reload();
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
js.initbtn(c);
|
||||
@@ -112,7 +123,7 @@ $(document).ready(function(){
|
||||
<button class="btn btn-default" click="search" type="button">搜索</button>
|
||||
</td>
|
||||
<td width="80%" style="padding-left:10px">
|
||||
|
||||
<button class="btn btn-default" click="searchyidu" type="button">全部标识已读</button>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user