customer stat export del html
This commit is contained in:
@@ -195,7 +195,7 @@ class Customer extends HD_Controller
|
||||
return $this->show_view('receiver/customer/lists_statdata', true);
|
||||
}
|
||||
|
||||
private function get_statdata($id){
|
||||
private function get_statdata($id, $export=false){
|
||||
if (!$id){
|
||||
return array();
|
||||
}
|
||||
@@ -211,7 +211,7 @@ class Customer extends HD_Controller
|
||||
$group_id = $val['group_id'];
|
||||
$k = $val['k'];
|
||||
$list['序号'] = $i;
|
||||
$list['栏目'] = $k;
|
||||
$list['栏目'] = $export ? str_replace('</b>', '', str_replace('<b>', '', $k)) : $k;
|
||||
foreach ($rows_stat_date as $key_date => $val_date){
|
||||
$stat_date = $val_date['stat_date'];
|
||||
#$index = str_replace('-', '', substr($stat_date, 5));
|
||||
@@ -874,7 +874,7 @@ class Customer extends HD_Controller
|
||||
return $this->show_json(SYS_CODE_FAIL, '计划不存在!');
|
||||
}
|
||||
|
||||
$stat_data = $this->get_statdata($id);
|
||||
$stat_data = $this->get_statdata($id, $export=true);
|
||||
$indexs = array();
|
||||
foreach ($stat_data['indexs'] as $index){
|
||||
$indexs[$index] = $index;
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="am-form-group" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group fl" style="margin-bottom: 0px;">
|
||||
<div class="am-form-group fl ml10">
|
||||
<button type="submit" class="am-btn am-btn-success am-btn-sm w100">搜索</button>
|
||||
|
||||
Reference in New Issue
Block a user