作者 董瑞恩

order

@@ -35,6 +35,14 @@ class AdminStatisticsController extends AdminBaseController{ @@ -35,6 +35,14 @@ class AdminStatisticsController extends AdminBaseController{
35 35
36 dump($week); 36 dump($week);
37 37
  38 + $month=array();
  39 + $start_month="";
  40 + $end_month="";
  41 + for ($i = 0; $i <= 24; $i++){
  42 + $week[24-$i]=date('Y-m',strtotime(date('Ymd',strtotime("-$i month"))));
  43 + }
  44 +
  45 +
38 return $this->fetch(); 46 return $this->fetch();
39 } 47 }
40 48