瀏覽代碼

upd

station_14109
altob.rd 7 年之前
父節點
當前提交
430f35d19d
共有 1 個檔案被更改,包括 22 行新增0 行删除
  1. +22
    -0
      controllers/Carpark.php

+ 22
- 0
controllers/Carpark.php 查看文件

@@ -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) // 博辰 (START)


Loading…
取消
儲存