webmain/model/flow/dailyModel.php
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class flow_dailyClassModel extends flowModel
{
public $typearr,$logobj;
public function initModel()
{
$this->typearr = explode(',','日报,周报,月报,年报');
$this->logobj = m('log');
}
protected function flowchangedata()
{
$this->rs['typess'] = $this->typearr[$this->rs['type']];
}
public function flowrsreplace($rs, $lx=0)
{
if($rs['mark']=='0')$rs['mark'] = '';
$cfrom = $this->rock->get('cfrom');
if($lx==2){
if($cfrom!='mweb'){
if(isset($rs['optdt']))$rs['optdt'] = str_replace(' ','<br>', $rs['optdt']);
if(isset($rs['adddt']))$rs['adddt'] = str_replace(' ','<br>', $rs['adddt']);
}
$zt = $this->logobj->isread('daily', $rs['id'], $this->adminid);
if($zt>0)$rs['ishui'] = 1;
$dt = $rs['dt'];
if($rs['type']!=0 && !isempt($rs['enddt']) && $cfrom!='mweb'){
$dt.='<br><font color="#aaaaaa">'.$rs['enddt'].'</font>';
}
$rs['dt'] = $dt;
}
$this->replacepbr($rs, 'content');
$rs['type'] = $this->typearr[$rs['type']];
return $rs;
}
//提交保存完日报通知上级
protected function flowsubmit($na, $sm)
{
$uparr = m('admin')->getsuperman($this->uid);
$recid = arrvalue($uparr, 0);
if(!$recid || $recid==0)return;
$typea = $this->typearr[$this->rs['type']];
$title = ''.$this->rs['optname'].'的'.$typea.'';
$cont = c('html')->substrstr($this->rs['content'],0, 100);
$this->push($recid, '', "".$typea."日期:{dt}\n".$cont, $title);
}
protected function flowaddlog($a)
{
if($a['name'] == '日报评分'){
$fenshu = (int)$this->rock->post('fenshu','0');
$this->push($this->rs['uid'], '', ''.$this->adminname.'评分你[{dt}]的{typess},分数('.$fenshu.')',''.$this->modename.'评分');
$this->update(array(
'mark' => $fenshu
后面还有 238 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
