Browse Source

upd

station_14109
altob.rd 7 years ago
parent
commit
430f35d19d
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      controllers/Carpark.php

+ 22
- 0
controllers/Carpark.php View File

@@ -68,6 +68,28 @@ class Carpark extends CC_Controller
}
}
// 進出記錄表 (分時統計)
public function export_cario_summery()
{
// 次月算上月
$last_day_of_previous_month = date("Y-n-j", strtotime("last day of previous month"));
$d = date_parse_from_format("Y-m-d", $last_day_of_previous_month);
$station_name = empty($this->input->post('station_name', true)) ? '場站名稱' : $this->input->post('station_name', true);
$year = empty($this->input->post('year', true)) ? $d['year'] : $this->input->post('year', true);
$month = empty($this->input->post('month', true)) ? $d['month'] : $this->input->post('month', true);
$addr = empty($this->input->post('addr', true)) ? '地址' : $this->input->post('addr', true);
$phone_no = empty($this->input->post('phone_no', true)) ? '電話' : $this->input->post('phone_no', true);
$result = $this->app_model('excel')->export_cario_summery($station_name, $year, $month, $addr, $phone_no);
if(empty($result))
{
echo '無記錄';
exit;
}
}
// ------------------------------------------------
//
// 博辰 (START)


Loading…
Cancel
Save