|
@@ -5711,44 +5711,60 @@ class Fullordertt extends Start_Controller {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if($excel == '4'){
|
|
|
- $titlename = "测试";
|
|
|
- $filename ="ceshi1";
|
|
|
- $header = [
|
|
|
- [
|
|
|
- 'title'=>"订单号",
|
|
|
- 'width'=>0,//为0 默认为自动
|
|
|
- ],
|
|
|
- [
|
|
|
- 'title'=>"订单状态",
|
|
|
- 'width'=>0,//为0 默认为自动
|
|
|
- ],
|
|
|
- [
|
|
|
- 'title'=>"产品名",
|
|
|
- 'width'=>30,//为0 默认为自动
|
|
|
- ],
|
|
|
- [
|
|
|
- 'title'=>"客户名",
|
|
|
- 'width'=>0,//为0 默认为自动
|
|
|
- ],
|
|
|
- [
|
|
|
- 'title'=>"客户邮箱",
|
|
|
- 'width'=>0,//为0 默认为自动
|
|
|
- ],
|
|
|
- [
|
|
|
- 'title'=>"下单时间",
|
|
|
- 'width'=>0,//为0 默认为自动
|
|
|
- ],
|
|
|
- [
|
|
|
- 'title'=>"订单金额",
|
|
|
- 'width'=>0,//为0 默认为自动
|
|
|
- ],
|
|
|
- ];
|
|
|
- $title = $country['zname'].date('Y-m-d',$timetk).'-'.date('Y-m-d',$timetj);
|
|
|
- $filename = $title;
|
|
|
- $data = $kh;
|
|
|
- $this->excelnew->doHeadMerg($titlename,$filename,$header,$data);
|
|
|
- }else{
|
|
|
+ // if($excel == '4'){
|
|
|
+ // $titlename = "测试";
|
|
|
+ // $filename ="ceshi1";
|
|
|
+ // $header = [
|
|
|
+ // [
|
|
|
+ // 'title'=>"订单号",
|
|
|
+ // 'width'=>0,//为0 默认为自动
|
|
|
+ // ],
|
|
|
+ // [
|
|
|
+ // 'title'=>"订单状态",
|
|
|
+ // 'width'=>0,//为0 默认为自动
|
|
|
+ // ],
|
|
|
+ // [
|
|
|
+ // 'title'=>"产品名",
|
|
|
+ // 'width'=>30,//为0 默认为自动
|
|
|
+ // ],
|
|
|
+ // [
|
|
|
+ // 'title'=>"客户名",
|
|
|
+ // 'width'=>0,//为0 默认为自动
|
|
|
+ // ],
|
|
|
+ // [
|
|
|
+ // 'title'=>"客户邮箱",
|
|
|
+ // 'width'=>0,//为0 默认为自动
|
|
|
+ // ],
|
|
|
+ // [
|
|
|
+ // 'title'=>"下单时间",
|
|
|
+ // 'width'=>0,//为0 默认为自动
|
|
|
+ // ],
|
|
|
+ // [
|
|
|
+ // 'title'=>"订单金额",
|
|
|
+ // 'width'=>0,//为0 默认为自动
|
|
|
+ // ],
|
|
|
+ // ];
|
|
|
+ // $title = $country['zname'].date('Y-m-d',$timetk).'-'.date('Y-m-d',$timetj);
|
|
|
+ // $filename = $title;
|
|
|
+ // $data = $kh;
|
|
|
+ // $this->excelnew->doHeadMerg($titlename,$filename,$header,$data);
|
|
|
+ // }else{
|
|
|
+ // $title = $country['zname'].date('Y-m-d',$timetk).'-'.date('Y-m-d',$timetj);
|
|
|
+ // $titlename = "<table border=1>
|
|
|
+ // <tr>
|
|
|
+ // <td>订单号</td>
|
|
|
+ // <td>订单状态</td>
|
|
|
+ // <td>产品名</td>
|
|
|
+ // <td>客户名</td>
|
|
|
+ // <td>客户邮箱</td>
|
|
|
+ // <td>下单时间</td>
|
|
|
+ // <td>订单金额</td>
|
|
|
+ // </tr>
|
|
|
+ // </table>";
|
|
|
+ // $filename = $title.".xls";
|
|
|
+ // $tail = "\n";
|
|
|
+ // $this->excel->get_fz2($kh,$titlename,$filename,$tail);
|
|
|
+ // }
|
|
|
$title = $country['zname'].date('Y-m-d',$timetk).'-'.date('Y-m-d',$timetj);
|
|
|
$titlename = "<table border=1>
|
|
|
<tr>
|
|
@@ -5764,8 +5780,6 @@ class Fullordertt extends Start_Controller {
|
|
|
$filename = $title.".xls";
|
|
|
$tail = "\n";
|
|
|
$this->excel->get_fz2($kh,$titlename,$filename,$tail);
|
|
|
- }
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|