From 1c76f3de6e82dba341b9c2753c6ba4e88573e6ea Mon Sep 17 00:00:00 2001 From: altobaltobaltob <32124724+altobaltobaltob@users.noreply.github.com> Date: Fri, 6 Jul 2018 11:31:17 +0800 Subject: [PATCH] Update Vghtc_report_month.php --- controllers/reports/Vghtc_report_month.php | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/controllers/reports/Vghtc_report_month.php b/controllers/reports/Vghtc_report_month.php index 76b79e7..6c4d5ce 100644 --- a/controllers/reports/Vghtc_report_month.php +++ b/controllers/reports/Vghtc_report_month.php @@ -125,23 +125,11 @@ class Vghtc_report_month extends CI_Controller { } - $dateba_lane00=array( - "dateba_lane_0" => $dateba_lane_0, - "dateba_lane_1" => $dateba_lane_1, - "dateba_lane_2" => $dateba_lane_2, - "dateba_lane_3" => $dateba_lane_3, - "dateba_lane_4" => $dateba_lane_4, - "dateba_lane_5" => $dateba_lane_5, - "dateba_lane_6" => $dateba_lane_6, - "dateba_lane_8" => $dateba_lane_8, - "dateba_lane_9" => $dateba_lane_9, - "dateba_lane_10" => $dateba_lane_10, - "dateba_lane_11" => $dateba_lane_11, - "dateba_lane_12" => $dateba_lane_12, - ); - // "sel_cario_tatal" => $sel_cario_tatal - // "dateba" => $alltatle, - // "hourba" => $alltatle/24 + foreach($sel_in_lane as $key1 => $value1){ + $sel_cario2=$this->erpapidb->sel_cario($value1['in_lane'],$start,$end); + $dateba_lane00[]=array("dateba_lane_0".$key1=>count($sel_cario2)); + } + $this->front->sel_cario_tatal[$start0]=$sel_cario_tatal; $this->front->dateba_lane[$start0]=$dateba_lane00; $this->front->sel_in_lane[$start0]=$sel_in_lane; @@ -177,3 +165,4 @@ class Vghtc_report_month extends CI_Controller { } +