优化推广员充值统计导出

master
chenzhi 5 years ago
parent 0a006bbcc2
commit c590b948ef

@ -715,6 +715,16 @@ class PlatformController extends ThinkController
$size = $row;//每页显示的记录数 $size = $row;//每页显示的记录数
$pnum = ceil(count($data) / $size); //总页数ceil()函数用于求大于数字的最小整数 $pnum = ceil(count($data) / $size); //总页数ceil()函数用于求大于数字的最小整数
if(isset($_REQUEST['export'])){
data2csv($data,'推广员充值统计',array(
"promote_account"=>"推广员账号",
"count"=>"累计充值",
"rand"=>"排行榜",
"today"=>"今日充值",
"week"=>"本周充值",
"mounth"=>"本月充值",
));
}
$data = array_slice($data, ($arraypage - 1) * $size, $size); $data = array_slice($data, ($arraypage - 1) * $size, $size);
$this->meta_title = '渠道充值统计列表'; $this->meta_title = '渠道充值统计列表';
$this->assign('list_data', $data); $this->assign('list_data', $data);

@ -172,9 +172,8 @@
</div> </div>
<div class="page"> <div class="page">
<if condition="$is_admin eq true "> <if condition="$is_admin eq true ">
<a class="sch-btn" href="{:U('Export/promote_statistics', <a class="sch-btn"
array('timestart'=>$_GET['timestart'],'timeend'=>$_GET['timeend'],'type'=>1,'promote_id'=>$_GET['promote_id'],p=>$_GET['p'],'xlsname'=>'统计_推广员统计_推广员充值统计',) href="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}" target="_blank">导出</a>
,false)}">导出</a>
</if> </if>
{$_page|default=''} {$_page|default=''}
</div> </div>

Loading…
Cancel
Save