webmain/model/agent/meetModel.php

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
class agent_meetClassModel extends agentModel
{
	
	private $joinwhere='';
	public $dtobj;
	
	public function initModel()
	{
		$this->dtobj 		= c('date');
	}
	
	//今日会议
	public function getstotal($uid, $dt)
	{
		if($this->joinwhere=='')$this->joinwhere	= m('admin')->getjoinstr('joinid', $uid);
		$where 	= "`status`=1 and `type`=0 and `startdt` like '$dt%' and joinid is not null $this->joinwhere and `state`<2";
		$sto 	= m('meet')->rows($where);
		return $sto;
	}
	
	public function gettotal()
	{
		$stotal = $this->getstotal($this->adminid, $this->rock->date);
		return array('stotal'=>$stotal,'titles'=>'');
	}
	
	protected function agentrows($rows, $rowd, $uid)
	{
		$hyarra 	= $this->flow->hyarra;
		$hyarrb 	= $this->flow->hyarrb;
		if(!in_array($this->event, array('week','today'))){
			if($rowd)foreach($rowd as $k=>$rs){
				$nzt = $rs['nzt'];
				$rows[$k]['statustext'] 	= $hyarra[$nzt];
				$rows[$k]['statuscolor'] 	= $hyarrb[$nzt];
			}
		}
		return $rows;
	}
	
	protected function agentdata($uid, $lx)
	{
		$row = array();
		$dt  = $this->rock->date;
		if($this->joinwhere=='')$this->joinwhere	= m('admin')->getjoinstr('joinid', $uid);
		//本周
		if($lx=='week'){
			$warr = $this->dtobj->getweekarr($dt);
			foreach($warr as $dts){
				$rows = $this->getweek($dts, $uid);
				$row  = array_merge($row, $rows);
			}
		//今日	
		}else if($lx=='today'){
			$row 		= $this->getweek($dt, $uid);
		}else{
			return false;
		}
		$arr['rows'] 	= $row;
后面还有 66 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。