From 7a876e01abab89e450b41542ace2a0f0c34810f4 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 17 Nov 2020 17:36:20 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=91=98=E6=B1=87=E6=80=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/PlatformController.class.php | 192 +++++++++++- .../Admin/View/Platform/promote_pool.html | 282 ++++++++++++++++++ .../View/Platform/promote_statistics.html | 1 + .../View/Platform/promotepay_statistics.html | 1 + 4 files changed, 475 insertions(+), 1 deletion(-) create mode 100644 Application/Admin/View/Platform/promote_pool.html diff --git a/Application/Admin/Controller/PlatformController.class.php b/Application/Admin/Controller/PlatformController.class.php index 741948b58..9e958090b 100644 --- a/Application/Admin/Controller/PlatformController.class.php +++ b/Application/Admin/Controller/PlatformController.class.php @@ -11,6 +11,197 @@ use Org\UcenterSDK\Ucservice; */ class PlatformController extends ThinkController { + public function promote_pool() + { + if(!array_key_exists("year",$_REQUEST) || !array_key_exists("company_belong",$_REQUEST)){ + $this->redirect(ACTION_NAME, array('year' => date('Y',time()),"company_belong"=>0)); + } + $isExport = false; + if(isset($_REQUEST['export']) && $_REQUEST['export'] == 1){ + $isExport = true; + } + + $page = intval($_REQUEST['p']); + $page = $page ? $page : 1; //默认显示第一页数据 + if (isset($_REQUEST['row'])) { + $row = $_REQUEST['row']; + } else { + $row = 10; + } + $companyBelong = isset($_REQUEST['company_belong']) ? $_REQUEST['company_belong'] : 0; + $year = isset($_REQUEST['year']) ? $_REQUEST['year'] : date("Y",time()); + $yearMap = [strtotime("$year-1-1 00:00:00"),strtotime("$year-12-31 23:59:59")]; + //获取公司数据 tab_promote_company + $companyMap = "1"; + if($companyBelong > -1){ + $companyMap .= " AND company_belong = {$companyBelong}"; + } + if(isset($_REQUEST['company_name'])){ + $companyId = $_REQUEST['company_name']; + $companyMap .= " AND company_name like '%{$companyId}%' "; + } + + $promoteCompany = M("promote_company","tab_"); + $data = $promoteCompany + ->field("id,company_name,company_belong") + ->where($companyMap); + if($isExport){ + $data = $data->select(); + //生成头 + $fp = $this->setPromotePoolTitle($year); + }else{ + $data = $data->page($page,$row)->select(); + $count = $promoteCompany->where($companyMap)->count(); + } + + //获取公司累计注册 + $sendData = []; + foreach($data as $k=>$v){ + $promote = getPromoteByLevel(0,$v['id']); + if(empty($promote)){ + $promoteIds = ''; + }else{ + $promoteIds = implode(",",array_column($promote,"id")); + } + $list = self::setYearList($year); + $this->getRegisterCount($list,$promoteIds,$yearMap); + $this->getPayamountCount($list,$promoteIds,$yearMap); + $v["list"] = $list; + $v["company_belong"] = getCompanyBlongOther($v["company_belong"]); + $sendData[] = $v; + if($isExport) $fp = $this->setCsvData($fp,$v); + } + + if($isExport){ + //刷新输出缓冲到浏览器 + fclose($fp); + exit(); + } + + $th = array_keys(self::setYearList($year)); + $this->assign('th', $th); + $this->assign('list_data', $sendData); + $this->getYearList(); + + $page = set_pagination($count, $row); + if ($page) { + $this->assign('_page', $page); + } + $this->display(); + // var_dump($sendData); + + + } + //获取公司每个月的注册及充值金额 + private static function setYearList($year) + { + $range = []; + $i = 1; + do { + if($i < 10){ + $month = "0".$i; + }else{ + $month = $i; + } + $range[$year."-".$month] = ["register"=>0,"payamount"=>0]; + $i++; + } while ($i<13); + return $range; + } + //获取注册量 + protected function getRegisterCount(&$list,$promoteIds,$yearMap) + { + $map = [ + "promote_id"=>["in",$promoteIds], + "register_time"=>["between",$yearMap] + ]; + $Register = M("User","tab_")->field("count(id) count,FROM_UNIXTIME(`register_time`, '%Y-%m') regtime")->where($map)->group("regtime")->select(); + if(empty($Register)) return ; + foreach ($Register as $v) { + $list[$v['regtime']]['register'] = $v['count']; + } + } + //获取支付流水 + protected function getPayamountCount(&$list,$promoteIds,$yearMap) + { + $map = [ + "promote_id"=>["in",$promoteIds], + "pay_time"=>["between",$yearMap], + "pay_status"=>1 + ]; + $Payamount = M("Spend","tab_")->field("sum(pay_amount) pay_amount,FROM_UNIXTIME(`pay_time`, '%Y-%m') paytime")->where($map)->group("paytime")->select(); + if(empty($Payamount)) return ; + foreach ($Payamount as $v) { + $list[$v['paytime']]['payamount'] = $v['pay_amount']; + } + } + //获取所有年分 + protected function getYearList() + { + $star = 2019; + $end = date("Y",time()); + $list = []; + for ($i=$star; $i <= $end; $i++) { + $temp = array( + "value"=>$i, + "name"=>"{$i}年" + ); + $list[] = $temp ; + } + $this->assign('YearList', $list); + } + //获取导出头 + private static function setPromotePoolTitle($year) + { + $range = ["推广公司","内外团归属"]; + $i = 1; + do { + if($i < 10){ + $month = "0".$i; + }else{ + $month = $i; + } + $range[] = $year."年".$month."月注册数"; + $range[] = $year."年".$month."月充值流水"; + $i++; + } while ($i<13); + + $csvFileName = '推广公司汇总.csv'; + //设置好告诉浏览器要下载excel文件的headers + header('Content-Description: File Transfer'); + header('Content-Type: application/vnd.ms-excel'); + header('Content-Disposition: attachment; filename="'. $csvFileName .'"'); + header('Expires: 0'); + header('Cache-Control: must-revalidate'); + header('Pragma: public'); + $fp = fopen('php://output', 'a');//打开output流 + mb_convert_variables('GBK', 'UTF-8', $range); + fputcsv($fp, $range);//将数据格式化为CSV格式并写入到output流中 + + return $fp; + } + //获取导出头 + private static function setCsvData($fp,$data) + { + unset($data['id']); + $sendData = []; + foreach ($data as $key => $value) { + if($key != "list"){ + $sendData[] = $value; + } + } + foreach ($data['list'] as $key => $value) { + $sendData[] = $value['register']; + $sendData[] = $value['payamount']; + } + mb_convert_variables('GBK', 'UTF-8', $sendData); + fputcsv($fp, $sendData);//将数据格式化为CSV格式并写入到output流中 + ob_flush(); + flush(); + return $fp; + } + + function game_statistics($p = 0) { $page = intval($p); @@ -437,7 +628,6 @@ class PlatformController extends ThinkController $this->display(); } - function promote_statistics($p = 0) { $page = intval($p); diff --git a/Application/Admin/View/Platform/promote_pool.html b/Application/Admin/View/Platform/promote_pool.html new file mode 100644 index 000000000..d4a4745aa --- /dev/null +++ b/Application/Admin/View/Platform/promote_pool.html @@ -0,0 +1,282 @@ + + + + + + + + + + +
+ + +
+
+ +
+ +
+ +
+
+ + +
+ +
+   +
+ + +
+ 搜索 +
+
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
推广公司内外团归属{$vo}
注册数充值流水
aOh! 暂时还没有内容!
{$data['company_name']}{$data['company_belong']}{$it}
+
+
+
+ 导出 + {$_page|default=''} +
+
+ + + + + + if(C('COLOR_STYLE')=='blue_color') echo ''; + + + + + + \ No newline at end of file diff --git a/Application/Admin/View/Platform/promote_statistics.html b/Application/Admin/View/Platform/promote_statistics.html index e226976b6..8a3df4834 100644 --- a/Application/Admin/View/Platform/promote_statistics.html +++ b/Application/Admin/View/Platform/promote_statistics.html @@ -29,6 +29,7 @@
- + +
+
+ +
+
+
From 1f694ef47bb9fc49cb4443913591ccf5804cbb7c Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 18 Nov 2020 11:14:26 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A8=E5=B9=BF?= =?UTF-8?q?=E5=91=98=E5=85=85=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/PlatformController.class.php | 324 +++--------------- .../View/Platform/promotepay_statistics.html | 18 +- 2 files changed, 73 insertions(+), 269 deletions(-) diff --git a/Application/Admin/Controller/PlatformController.class.php b/Application/Admin/Controller/PlatformController.class.php index fbd9760ae..08ee924e0 100644 --- a/Application/Admin/Controller/PlatformController.class.php +++ b/Application/Admin/Controller/PlatformController.class.php @@ -627,60 +627,6 @@ class PlatformController extends ThinkController $this->assign('list_data', $data); $this->assign("is_admin",is_administrator()); $this->display(); - } - function promote_statistics1($p = 0) - { - $page = intval($p); - $page = $page ? $page : 1; //默认显示第一页数据 - $arraypage = $page; - - if (isset($_REQUEST['row'])) { - $row = $_REQUEST['row']; - } else { - $row = 10; - } - - $user = M('User', 'tab_'); - if (!empty($_REQUEST['timestart']) && !empty($_REQUEST['timeend'])) { - $map['register_time'] = ['between', array(strtotime($_REQUEST['timestart']), strtotime($_REQUEST['timeend']) + 86399)]; - unset($_REQUEST['timestart']); - unset($_REQUEST['timeend']); - } elseif (!empty($_REQUEST['timestart']) && empty($_REQUEST['timeend'])) { - $map['register_time'] = ['between', array(strtotime($_REQUEST['timestart']), time())]; - unset($_REQUEST['timestart']); - } elseif (empty($_REQUEST['timestart']) && !empty($_REQUEST['timeend'])) { - $map['register_time'] = ['elt', strtotime($_REQUEST['timeend']) + 86399]; - unset($_REQUEST['timeend']); - } - - - $data = M("User u","tab_") - ->field("count(u.id) as count,CASE when (fgame_name is null or fgame_name = '') THEN '无' ELSE left(fgame_name,char_length(fgame_name)-5) END fgame_name,promote_id,promote_account,admin_id,company_name,s.real_name") - ->join("tab_promote promote ON u.promote_id = promote.id","left") - ->join("tab_promote_company pc on promote.company_id = pc.id", 'left') - ->join('sys_member s on promote.admin_id = s.uid', 'left') - ->where($map) - ->group('fgame_name,promote_id') - ->page($page,$row) - ->order("count desc") - ->select(); - - - $sql = M("User u","tab_")->field("count(u.id) as count,CASE when (fgame_name is null or fgame_name = '') THEN '无' ELSE left(fgame_name,char_length(fgame_name)-5) END fgame_name,promote_id")->where($map)->group('fgame_name,promote_id')->select(false); - $count = M()->table("(".$sql.") c")->count(); - - $page = set_pagination($count, $row); - if ($page) { - $this->assign('_page', $page); - } - $this->assign('list_data', $data); - - $this->display(); - // dd($data); - - - - } function promote_statistics($p = 0) { @@ -831,21 +777,6 @@ class PlatformController extends ThinkController $tmdata[$tag]['id'] = $v['id']; } } - // if(count($tmdata) >0){ - // //获取推广员 - // $idstr = implode(",",array_keys($tmdata)); - // $promoteRes = M("Promote","tab_")->field("id,account promote_account")->where("id in ({$idstr})")->select(); - // foreach($promoteRes as $k=>$v){ - // $tmdata[$v['id']]['promote_account'] = $v['promote_account']; - // } - // } - // $data = []; - // foreach($tmdata as $k => $v){ - // if($v['id'] == 0){ - // $v['promote_account'] = C('OFFICIEL_CHANNEL'); - // } - // $data[] = $v; - // } $data = array_values($tmdata); unset($map['tp1.id']); @@ -957,18 +888,33 @@ class PlatformController extends ThinkController }else{ $tmin = $tmonth[1][0]; } - - if (isset($_REQUEST['promote_id'])) { - //$map['tp1.id'] = $_REQUEST['promote_id']; - $promoter_ids = D("Promote")->where("chain like '%/{$_REQUEST['promote_id']}/%' or id={$_REQUEST['promote_id']}")->field('id')->select(); - if ($promoter_ids) { + $isOffice = true; + if (isset($_REQUEST['promote_id']) || isset($_REQUEST['company_id']) ) { + $isOffice = false; + $pwhere = "1"; + if(isset($_REQUEST['promote_id'])){ + $pwhere .= " and (chain like '%/{$_REQUEST['promote_id']}/%' or id={$_REQUEST['promote_id']})"; $map['tp1.id'] = $_REQUEST['promote_id']; + } + if(isset($_REQUEST['company_id'])){ + $map['tp1.company_id'] = $_REQUEST['company_id']; + + $pwhere .= " and company_id={$_REQUEST['company_id']}"; + } + $promoter_ids = D("Promote")->where($pwhere)->field('id')->select(); + if ($promoter_ids) { $map['tp2.id'] = ['in', implode(',', array_column($promoter_ids, 'id'))]; } } else { $map['tp1.chain'] = '/'; } - + $map['tp1.level'] = '1'; + + if (isset($_REQUEST['company_belong'])){ + $isOffice = false; + $map['tp1.company_belong'] = $_REQUEST['company_belong']; + } + if (isset($_REQUEST['game_name'])) { $map['s.game_name'] = ['like', "{$_REQUEST['game_name']}%"]; if (isset($_REQUEST['server_id'])) { @@ -992,7 +938,7 @@ class PlatformController extends ThinkController $data = M('promote', 'tab_')->alias('tp1') ->field('tp1.account as promote_account,tp1.id,g.relation_game_id,g.relation_game_name, - floor(sum(pay_amount)*100) as count') + floor(sum(pay_amount)*100) as count') ->join("tab_promote AS tp2 ON tp2.`chain` LIKE CONCAT('%/', tp1.id, '/%') OR tp2.id = tp1.id", 'left') ->join("tab_spend as s use INDEX(search) on tp2.id = s.promote_id", 'left') ->join("tab_game as g on g.id = s.game_id", 'left') @@ -1001,30 +947,6 @@ class PlatformController extends ThinkController ->order('count desc') ->select(); - // if (isset($_REQUEST['server_id'])||isset($_REQUEST['game_name'])||isset($_REQUEST['promote_id'])||isset($_REQUEST['admin_id'])||isset($_REQUEST['admin_user_id'])) { - // $data = M('promote', 'tab_')->alias('tp1') - // ->field('tp1.account as promote_account,tp1.id, - // floor(sum(pay_amount)*100) as count') - // ->join("tab_promote AS tp2 ON tp2.`chain` LIKE CONCAT('%/', tp1.id, '/%') OR tp2.id = tp1.id", 'left') - // ->join("tab_spend as s use INDEX(search) on tp2.id = s.promote_id", 'left') - // ->join("tab_game as g on g.id = s.game_id", 'left') - // ->where($map) - // ->group('tp1.id') - // ->order('count desc') - // ->select(); - // } else { - // $statisticsMap['time'] =$map['pay_time']; - // setPowerPromoteIds($statisticsMap, 'tab_promote.id'); - // $data = M('promote_statistics', 'tab_') - // ->field("promote_account,promote_id as id,sum(count) count") - // ->join('tab_promote on tab_promote.id = tab_promote_statistics.promote_id', 'left') - // ->where($statisticsMap) - // ->group("promote_id") - // ->select(); - // } - - -// var_dump($data);die(); //今日/本周/本月不变 $tmap = $map; if(isset($map['pay_time'])){ @@ -1074,42 +996,43 @@ class PlatformController extends ThinkController foreach($tmdata as $k => $v){ $data[] = $v; } - //dd($data); - unset($map['tp1.id'], $map['tp2.id'], $map['tp2.admin_id']); - unset($map['tp1.chain']); - unset($tmap['tp1.id']); - unset($tmap['tp1.chain'], $tmap['tp2.id']); - $map['s.promote_id'] = 0; - $tmap['s.promote_id'] = 0; - $authorityData['count'] = 0; - - //如果有官方渠道权限 - $user_auth_promote_ids = session('user_auth_promote_ids'); - if ($user_auth_promote_ids == 'all' || in_array('0', explode(",", $user_auth_promote_ids))) { - //官方渠道数据添加 - $authorityData = M('spend', 'tab_')->alias('s') + if ($isOffice) { + //dd($data); + unset($map['tp1.id'], $map['tp2.id'], $map['tp2.admin_id'],$map['tp1.company_id'],$map['tp1.company_belong'],$map['tp1.level']); + unset($map['tp1.chain']); + unset($tmap['tp1.id']); + unset($tmap['tp1.chain'], $tmap['tp2.id'],$tmap['tp1.company_id'],$tmap['tp1.company_belong'],$tmap['tp1.level']); + $map['s.promote_id'] = 0; + $tmap['s.promote_id'] = 0; + $authorityData['count'] = 0; + + //如果有官方渠道权限 + $user_auth_promote_ids = session('user_auth_promote_ids'); + if ($user_auth_promote_ids == 'all' || in_array('0', explode(",", $user_auth_promote_ids))) { + //官方渠道数据添加 + $authorityData = M('spend', 'tab_')->alias('s') ->field('floor(sum(pay_amount)*100) as count') ->where($map) ->find(); - $tauthorityData = M('spend', 'tab_')->alias('s') - ->field(' - floor(sum(IF(s.pay_time ' . $today . ',pay_amount,0))*100) as today, - floor(sum(IF(s.pay_time ' . $week . ',pay_amount,0))*100) as week, - floor(sum(IF(s.pay_time ' . $mounth . ',pay_amount,0))*100) as mounth') - ->where($tmap) - ->find(); - $authorityData['today'] = $tauthorityData['today']; - $authorityData['week'] = $tauthorityData['week']; - $authorityData['mounth'] = $tauthorityData['mounth']; - } - $authorityData['promote_account'] = "官方渠道"; - $authorityData['id'] = "1"; - if (isset($_REQUEST['promote_id'])||$authorityData['count']==0) { - $authorityData = []; - } else { - array_push($data, $authorityData); + $tauthorityData = M('spend', 'tab_')->alias('s') + ->field(' + floor(sum(IF(s.pay_time ' . $today . ',pay_amount,0))*100) as today, + floor(sum(IF(s.pay_time ' . $week . ',pay_amount,0))*100) as week, + floor(sum(IF(s.pay_time ' . $mounth . ',pay_amount,0))*100) as mounth') + ->where($tmap) + ->find(); + $authorityData['today'] = $tauthorityData['today']; + $authorityData['week'] = $tauthorityData['week']; + $authorityData['mounth'] = $tauthorityData['mounth']; + } + $authorityData['promote_account'] = "江息网络"; + $authorityData['id'] = "0"; + if (isset($_REQUEST['promote_id'])||$authorityData['count']==0) { + $authorityData = []; + } else { + array_push($data, $authorityData); + } } - //数据排序 $last_names = array_column($data,'count'); array_multisort($last_names,SORT_DESC,$data); @@ -1183,147 +1106,12 @@ class PlatformController extends ThinkController $this->meta_title = '渠道充值统计列表'; $this->assign('list_data', $data); $this->assign('admin_users', M('member')->field('uid,nickname')->select()); + $this->assign("companyList",D("PromoteCompany")->getList()); $this->assign("is_admin",is_administrator()); $this->display(); } - public function promotepay_statistics1($p = 0) - { - $page = intval($p); - $page = $page ? $page : 1; //默认显示第一页数据 - $arraypage = $page; - if (isset($_REQUEST['row'])) { - $row = $_REQUEST['row']; - } else { - $row = 10; - } - $map1['promote_id'] = $map['promote_id'] = array('egt', 0); - $spend = M('Spend', 'tab_'); - if (!empty($_REQUEST['timestart']) && !empty($_REQUEST['timeend'])) { - $map['pay_time'] = ['between', array(strtotime($_REQUEST['timestart']), strtotime($_REQUEST['timeend']) + 86399)]; - unset($_REQUEST['timestart']); - unset($_REQUEST['timeend']); - } elseif (!empty($_REQUEST['timestart']) && empty($_REQUEST['timeend'])) { - $map['pay_time'] = ['between', array(strtotime($_REQUEST['timestart']), time())]; - unset($_REQUEST['timestart']); - } elseif (empty($_REQUEST['timestart']) && !empty($_REQUEST['timeend'])) { - $map['pay_time'] = ['elt', strtotime($_REQUEST['timeend']) + 86399]; - unset($_REQUEST['timeend']); - } else { - $map['pay_time'] = ['between', array(0, time())]; - // $pay_time = " between 0 and " . time(); - } - $map1['pay_status'] = $map['pay_status'] = 1; - $today = total(1); - $week = total(2); - $mounth = total(3); - unset( $map['create_time']); - - //获取所有会长 - $promote_map = "`chain` = '/'"; - if (isset($_REQUEST['promote_id'])) { - $promote_map = "`chain` = '%/{$_REQUEST['promote_id']}/%' OR id = {$_REQUEST['promote_id']}"; - } - //为数据权限添加 - setPowerPromoteIds($map); - $promote_map2 = array(); - setPowerPromoteIds($promote_map2, 'id'); - $promote = M("promote","tab_")->field("id,account")->page($page,$row)->where($promote_map)->where($promote_map2)->select(); - $pcount = M("promote","tab_")->field("count(*) acount")->where($promote_map)->where($promote_map2)->find()['acount']; - - // var_dump( $promote); - $tweek = total(2,false); - $tmonth = total(3,false); - //获取最小 - $tmin = 0; - if($tweek[1][0] < $tmonth[1][0]){ - $tmin = $tweek[1][0]; - }else{ - $tmin = $tmonth[1][0]; - } - - - $data =array(); - for ($i=0; $i < count($promote); $i++) { - # code... - $proid = M("promote","tab_")->field("id")->where("`chain` like '%/{$promote[$i]['id']}/%'")->select(); - $str = ''; - for($k=0; $kfield('floor(sum(IF(pay_time ' . $pay_time . ',pay_amount,0))*100) as count') - ->where($map) - ->find(); - $tmap = $map; - if(isset($map['pay_time'])){ - $tmap['pay_time'] = ['between', array($tmin,$tmonth[1][1])]; - } - $tdbdata = $spend - ->field(' - floor(sum(IF(pay_time ' . $today . ',pay_amount,0))*100) as today, - floor(sum(IF(pay_time ' . $week . ',pay_amount,0))*100) as week, - floor(sum(IF(pay_time ' . $mounth . ',pay_amount,0))*100) as mounth') - ->where($tmap) - ->find(); - $dbdata['today']= $tdbdata['today']; - $dbdata['week']= $tdbdata['week']; - $dbdata['mounth']= $tdbdata['mounth']; - - $dbdata['promote_account'] = $promote[$i]['account']; - $dbdata['promote_id'] = $promote[$i]['id']; - - $data[] = $dbdata; - } - $count = count($data); - foreach ($data as $key => $value) { - $value['count'] ?: 0; - $value['today'] ?: 0; - $value['week'] ?: 0; - $value['mounth'] ?: 0; - static $i = 0; - $i++; - $data[$key]['rand'] = $i; - $data[$key]['count'] = $value['count'] / 100; - $data[$key]['today'] = $value['today'] / 100; - $data[$key]['week'] = $value['week'] / 100; - $data[$key]['mounth'] = $value['mounth'] / 100; - } - $total = $this->data_total($data); - $this->assign('total', $total); - if ($_REQUEST['data_order'] != '') { - $data_order = reset(explode(',', $_REQUEST['data_order'])); - $data_order_type = end(explode(',', $_REQUEST['data_order'])); - $this->assign('userarpu_order', $data_order); - $this->assign('userarpu_order_type', $data_order_type); - } - - $page = set_pagination($pcount, $row); - if ($page) { - $this->assign('_page', $page); - } - - $data = my_sort($data, $data_order_type, (int)$data_order); - - $size = $row;//每页显示的记录数 - $pnum = ceil(count($data) / $size); //总页数,ceil()函数用于求大于数字的最小整数 - $this->meta_title = '渠道充值统计列表'; - $this->assign('list_data', $data); - $this->assign("is_admin",is_administrator()); - $this->display(); - - } public function data_total($data) { diff --git a/Application/Admin/View/Platform/promotepay_statistics.html b/Application/Admin/View/Platform/promotepay_statistics.html index 62aa45c1a..9bbea626e 100644 --- a/Application/Admin/View/Platform/promotepay_statistics.html +++ b/Application/Admin/View/Platform/promotepay_statistics.html @@ -52,7 +52,23 @@
- +
+ +
+
+ +
+
+ + + + +
+ +
+ +
+ +
+ 搜索 +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
游戏名称{$vo}
注册数充值流水
aOh! 暂时还没有内容!
{$data['relation_game_name']}class="gotoinfo" data-id="{$data.relation_game_id}" data-type="{$type}" data-date="{$date}">{$it}
+
+
+
+ 导出 + {$_page|default=''} +
+ + + + + + + + \ No newline at end of file diff --git a/Application/Admin/View/Platform/game_statistics.html b/Application/Admin/View/Platform/game_statistics.html index b5707b940..63e0c59a5 100644 --- a/Application/Admin/View/Platform/game_statistics.html +++ b/Application/Admin/View/Platform/game_statistics.html @@ -30,6 +30,7 @@