webmain/model/flow/wenjuanModel.php
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
//问卷调查模块接口问卷
class flow_wenjuanClassModel extends flowModel
{
public $inputwidth = 950;
private $readunarr = array();//未读人员
//替换读取统计
public function flowrsreplace($rs, $lx=0)
{
if($lx==2 && $this->adminid==$rs['uid']){
$where = $this->adminmodel->gjoin($rs['receid'],'','where');
$where.= " and `workdate`<='".$rs['startdt']."' and `status`=1";
$yito = $this->adminmodel->rows($where);
$yato = 0;
if(!isempt($rs['dauserids']))$yato = count(explode(',', $rs['dauserids']));
$temp_total = ''.$yato.'/'.$yito.'';
$rs['temp_total'] = $temp_total;
}
if($rs['enddt']<$this->rock->date)$rs['ishui']=1;
//未查阅人
if($lx==1){
$barr = m('log')->getreadshu($this->mtable, $rs['id'],$rs['receid'] , $rs['startdt'], $this->adminmodel);
foreach($barr as $k=>$v)$rs[$k]=$v;
$this->readunarr = $barr['wduarr'];
}
return $rs;
}
//作废或删除时
protected function flowzuofeibill($sm)
{
m('wenjuau')->delete("`mid`='$this->id'");
}
protected function flowdatalog($arr)
{
$arr['title'] = '';
$itemarr = m('wenjuat')->getall("`mid`='$this->id'",'*','sort asc');
$suid = (int)$this->rock->get('suid','0');
if($suid==0)$suid = $this->adminid;
//读取我提交的结果
$tjrows = m('wenjuau')->getall("`mid`='$this->id' and `optid`='$suid'");
$arr['tjcount'] = count($tjrows);//是否提交过
$hlx = $this->rock->get('hlx');
foreach($itemarr as $k=>$rs)$itemarr[$k]['daan']='';
//显示汇总
if($hlx=='true'){
$xuan= explode(',','a,b,c,d,e,f,g,h,i,k');
$zongtiarr = m('wenjuau')->getall("`mid`='$this->id'");
后面还有 92 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
