优化游戏订单导出

master
chenzhi 5 years ago
parent 54f2e0abcd
commit fa784fac8a

@ -435,6 +435,8 @@ class FinancePromoteController extends AdminController
} }
if (isset($_REQUEST['export'])) { if (isset($_REQUEST['export'])) {
data2csv($data,$title, array( data2csv($data,$title, array(
"company_name"=>"推广公司",
"account"=>"会长账号",
"partner_name"=>"合作公司", "partner_name"=>"合作公司",
"game_name"=>"游戏", "game_name"=>"游戏",
"cash_count"=>"游戏现金金额", "cash_count"=>"游戏现金金额",

@ -191,41 +191,41 @@
.data-table tbody td{border-right:1px solid #DDDDDD;} .data-table tbody td{border-right:1px solid #DDDDDD;}
.d_list .drop-down ul {z-index:999;} .d_list .drop-down ul {z-index:999;}
</style> </style>
<if condition = "empty($data)"> <if condition = "empty($data)">
<tr> <tr>
<td colspan="14" class="text-center">aOh! 暂时还没有内容!</td> <td colspan="14" class="text-center">aOh! 暂时还没有内容!</td>
</tr> </tr>
</if> <else/>
<notemtpy name = "data"> <notemtpy name = "data">
<volist name="data" id="data"> <volist name="data" id="data">
<tr>
<td >{$data.company_name}</td>
<td >{$data.account}</td>
<td >{$data.partner_name}</td>
<td >{$data.game_name}</td>
<td >{$data.cash_count}</td>
<td class="coin-detail" data-pay_type="0" style="color: #0066cc;cursor: pointer" data-url="{:U('FinancePromote/gameCoinDetail',array_merge(I('get.'),['pay_way'=>0,'promote_id'=>$data['p_id'],'game_id'=>$data['game_id'],p=>1,row=>10]))}">{$data.balance_coin_count}</td>
<td class="coin-detail" data-pay_type="-1" style="color: #0066cc;cursor: pointer" data-url="{:U('FinancePromote/gameCoinDetail',array_merge(I('get.'),['pay_way'=>-1,'promote_id'=>$data['p_id'],'game_id'=>$data['game_id'],p=>1,row=>10]))}">
{$data.inside_cash_count}
</td>
<td >{$data.all_cash_count}</td>
<td >
<a href="{:U('FinancePromote/gameStatisticsDetail',array_merge(I('get.'),['game_id'=>$data['game_id'],'promote_id'=>$data['p_id'],'game_name'=>$data['game_name'],'promote_level'=>$promote_level]))}" >订单查看</a>
</td>
</tr>
</volist>
<tr> <tr>
<td >{$data.company_name}</td> <td colspan="4" ><span>总计</span></td>
<td >{$data.account}</td> <td ><span><if condition="$sumCash neq ''">{$sumCash}<else/>0</if></span></td>
<td >{$data.partner_name}</td> <td><if condition="$sumBalance neq ''">{$sumBalance}<else/>0</if></td>
<td >{$data.game_name}</td> <td><if condition="$sumInside neq ''">{$sumInside}<else/>0</if></td>
<td >{$data.cash_count}</td> <td><if condition="$sumAll neq ''">{$sumAll}<else/>0</if></td>
<td class="coin-detail" data-pay_type="0" style="color: #0066cc;cursor: pointer" data-url="{:U('FinancePromote/gameCoinDetail',array_merge(I('get.'),['pay_way'=>0,'promote_id'=>$data['p_id'],'game_id'=>$data['game_id'],p=>1,row=>10]))}">{$data.balance_coin_count}</td> <td>
<td class="coin-detail" data-pay_type="-1" style="color: #0066cc;cursor: pointer" data-url="{:U('FinancePromote/gameCoinDetail',array_merge(I('get.'),['pay_way'=>-1,'promote_id'=>$data['p_id'],'game_id'=>$data['game_id'],p=>1,row=>10]))}"> <a href="{:U('FinancePromote/gameStatisticsDetail',array_merge(I('get.'),['promote_level'=>1]))}" >订单查看</a>
{$data.inside_cash_count}
</td>
<td >{$data.all_cash_count}</td>
<td >
<a href="{:U('FinancePromote/gameStatisticsDetail',array_merge(I('get.'),['game_id'=>$data['game_id'],'game_name'=>$data['game_name'],'promote_level'=>$promote_level]))}" >订单查看</a>
</td> </td>
</tr> </tr>
</volist> </notemtpy>
<tr> </if>
<td colspan="4" ><span>总计</span></td>
<td ><span><if condition="$sumCash neq ''">{$sumCash}<else/>0</if></span></td>
<td><if condition="$sumBalance neq ''">{$sumBalance}<else/>0</if></td>
<td><if condition="$sumInside neq ''">{$sumInside}<else/>0</if></td>
<td><if condition="$sumAll neq ''">{$sumAll}<else/>0</if></td>
<td>
<a href="{:U('FinancePromote/gameStatisticsDetail',array_merge(I('get.'),['promote_level'=>1]))}" >订单查看</a>
</td>
</tr>
</notemtpy>
</tbody> </tbody>
</table> </table>
</div> </div>

Loading…
Cancel
Save