<?php
class agent_scheduleClassModel extends agentModel
{
	public function gettotal()
	{
		return array('stotal'=>0,'titles'=>'');
	}
	
	protected function agentrows($rows, $rowd, $uid)
	{
		foreach($rowd as $k=>$rs){
			if(!isempt($rs['enddt']) && $rs['enddt']<$this->rock->now){
				$rows[$k]['ishui'] = 1;
			}
		}
		return $rows;
	}
	
	protected function agentdata($uid, $lx)
	{
		//$rows  = m('schedule')->getmonthdata($uid);
		//print_r($rows);
		if(contain($lx,'month'))$this->event = 'my';
		return false;
	}
}