getdklocation($rs['outtime'], $rs['intime']); $rs['location'] = $s; } return $rs; } private function getdklocation($sdt,$edt) { $rows = $this->db->getrows('[Q]location',"`uid`='$this->uid' and `type`=0 and `optdt`>='$sdt' and `optdt`<='$edt'",'location_x,location_y,scale,label,`precision`,`optdt`,`id`'); $s = ''; foreach($rows as $k=>$rs){ $s.=''.($k+1).'.'.$rs['label'].'('.$rs['optdt'].') 查看
'; } return $s; } protected function flowbillwhere($uid, $lx) { $month = $this->rock->post('month'); $where = ''; if($month!=''){ $where.=" and `outtime` like '$month%'"; } return array( 'where' => $where ); } }