array("2018-08-11 00:00:00", "2018-08-12 01:30:00", "2018-08-13 02:30:00", "2018-08-14 03:30:00", "2018-08-15 04:30:00"), "data"=>array(32, 60, 34, 46, 34) ); return self::send_result($result); } // 通过时间参数 获取整个区域的医废类型分布图 public function getAreaDashboardMwTypePie() { $result = array(368,81); return self::send_result($result); } // public function userEdit(){ if (!empty($_SESSION)) { render(null, 'web', 'userEdit'); } else { header("Location:?c=index&a=index"); } } /** * 获取两个指定日期之间的每一天 */ public function getDateFromtime($starttime,$endtime) { $dt_start = strtotime($starttime); $dt_end = strtotime($endtime); while ($dt_start <= $dt_end){ $array[] = date('Y-m-d',$dt_start); $dt_start = strtotime('+1 day',$dt_start); } return $array; } /** * 获取本年的12个月 */ public function getYearMonthTime() { for ($i=1; $i < 13; $i++) { $month = date("Y",time())."-".$i; $array[] = date("Y-m",strtotime($month)); } return $array; } }