|
- <?php
- /**
- *
- * ============================================================================
- * * 版权所有 蜘蛛出行 * *
- * 网站地址: http://www.zhizhuchuxing.com
- * ----------------------------------------------------------------------------
- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
- * 使用;不允许对程序代码以任何形式任何目的的再发布。
- * ============================================================================
- * Author By: 张帅
- * PhpStorm statistical-from.php
- * Create By 2017/1/12 11:39 $
- */
-
- use backend\modules\zzcs\assets\ZzcsAsset;
- use yii\widgets\Pjax;
- ZzcsAsset::addScript($this, '/gathering/js/tool.js');
- ZzcsAsset::addCss($this, '/finance/css/bus_cost.css');
- ZzcsAsset::addCss($this, '/plug/My97DatePicker/skin/WdatePicker.css');
- ZzcsAsset::addScript($this, '/finance/js/bus_work.js?v=002');
- ZzcsAsset::addScript($this, '/plug/date-time/date-manage.js?v=001');
- ZzcsAsset::addScript($this, '/plug/My97DatePicker/WdatePicker.js');
-
- ZzcsAsset::addCssHTTP($this,'http://img.zhizhuchuxing.cn/zzframe/dist/css/bootstrap.css');
- ZzcsAsset::addCssHTTP($this,'http://img.zhizhuchuxing.cn/zzframe/dists/css/style.css');
- ZzcsAsset::addCssHTTP($this,'http://img.zhizhuchuxing.cn/zzframe/dists/css/bootstrap-datetimepicker.css');
- ZzcsAsset::addCssHTTP($this,'http://img.zhizhuchuxing.cn/zzframe/docs/assets/css/docs.min.css');
- ZzcsAsset::addCssHTTP($this,'http://img.zhizhuchuxing.cn/zzframe/dists/css/home.css');
- ZzcsAsset::addCssHTTP($this,'http://img.zhizhuchuxing.cn/zzframe/dists/css/prettify.min.css');
- ZzcsAsset::addCssHTTP($this,'http://img.zhizhuchuxing.cn/zzframe/dists/css/module.css');
- ZzcsAsset::addCssHTTP($this,'http://img.zhizhuchuxing.cn/zzframe/dists/css/xcConfirm.css');
-
- ZzcsAsset::addScriptHTTP($this,'http://img.zhizhuchuxing.cn/zzframe/dists/js/bootstrap-datetimepicker.min.js');
- ZzcsAsset::addScriptHTTP($this,'http://img.zhizhuchuxing.cn/zzframe/dists/js/module.js');
- ZzcsAsset::addScriptHTTP($this,'http://img.zhizhuchuxing.cn/zzframe/dists/js/xcConfirm.js');
- ?>
-
- <div class="search_station">
- <ul id="search_station">
- <li class="search1">
- <span>线路类型:</span>
- <select id="line_type">
- <option value="0">全部</option>
- <option value="256">市内</option>
- <option value="255">省际</option>
- </select>
- </li>
-
- <li class="search2">
- <span>出发起止日期:</span>
- <input type="text" id="start_date" onclick="WdatePicker({onpicked:changeEndDate})" value="<?php echo $start_date; ?>"/>
- <span> - </span>
- <input type="text" id="end_date" onclick="WdatePicker({onpicked:changeStartDate})" value="<?php echo $end_date; ?>"/>
- </li>
- <li class="search3">
- <span class="btn-primary" id="search_btn" onclick='searchInfo()'>查询</span>
- </li>
- <li class="search4">
- <a id="export_prod_cost"><span class="btn-primary" id="export_btn" onclick='exportInfo()'>导出</span></a>
- </li>
- </ul>
- </div>
- <?php Pjax::begin(['id' => 'main_table', 'timeout' => 30000000]) ?>
- <div class="table_list">
- <table id="table_list" data-time="<?php echo time();?>">
- <thead>
- <tr>
- <th class="td1">编号</th>
- <th class="td2">姓名</th>
- <th class="td3">订单数</th>
- <th class="td6">GMV</th>
- <th class="td11">赔入</th>
- <th class="td12">赔出</th>
- <th class="td7">成本</th>
- <th class="td8">GP</th>
- <th class="td9">GP率</th>
- <th class="td10">订单明细</th>
- <!--<th class="td9">人次月环比</th>
- <th class="td10">GMV月环比</th>-->
- </tr>
- </thead>
- <tbody>
- <!-- 合计 -->
- <tr>
- <td class="td1" style="color:#0095d9;font-size:larger;">-</td>
- <td class="td2" style="color:#0095d9;font-size:larger;">合计</td>
- <td class="td3"
- style="color:#0095d9;font-size:larger;text-align:right;padding-right: 10px;"><?php if (!isset($count['order_num'])) {
- $count['order_num'] = 0;
- }
- echo number_format($count['order_num']); ?></td>
- <td class="td6"
- style="color:#0095d9;font-size:larger;text-align:right;padding-right: 10px;"><?php echo number_format($count['gmv'], 2); ?></td>
- <td class="td11"
- style="color:#0095d9;font-size:larger;text-align:right;padding-right: 10px;"><?php echo number_format($count['pay_in'], 2); ?></td>
- <td class="td12"
- style="color:#0095d9;font-size:larger;text-align:right;padding-right: 10px;"><?php echo number_format($count['pay_out'], 2); ?></td>
- <td class="td7"
- style="color:#0095d9;font-size:larger;text-align:right;padding-right: 10px;"><?php echo number_format($count['base_price'], 2); ?></td>
- <td class="td8"
- style="color:#0095d9;font-size:larger;text-align:right;padding-right: 10px;"><?php echo number_format($count['gp'], 2); ?></td>
- <td class="td9 <?php
- if ($count['gp'] >= 0) {
- echo 'red_color';
- } else {
- echo 'green_color';
- } ?>" style="text-align:right;padding-right: 10px;"><?php echo $count['gp_rate']; ?></td>
- <td class="td10">-</td>
-
- </tr>
- <!-- end 合计 -->
- <?php
- if (count($list) > 0) {
- foreach ($list as $key => $vel) { ?>
- <tr>
- <td class="td1"><?php echo $vel['no']; ?></td>
- <td class="td2"><?php echo $vel['true_name']; ?></td>
- <th class="td3"
- style="text-align:right;padding-right: 10px;"><?php echo number_format($vel['order_num']); ?></th>
- <td class="td6"
- style="text-align:right;padding-right: 10px;"><?php echo number_format($vel['gmv'], 2); ?></td>
- <td class="td11"
- style="text-align:right;padding-right: 10px;"><?php echo number_format($vel['pay_in'], 2); ?> </td>
- <td class="td12"
- style="text-align:right;padding-right: 10px;"><?php echo number_format($vel['pay_out'], 2); ?> </td>
- <td class="td7"
- style="text-align:right;padding-right: 10px;"><?php echo number_format($vel['base_price'], 2); ?> </td>
- <td class="td8 <?php if ($vel['gp'] >= 0) {
- echo 'red_color';
- } else {
- echo 'green_color';
- } ?>" style="text-align:right;padding-right: 10px;"><?php echo number_format($vel['gp'], 2); ?></td>
- <td class="td9 <?php if ($vel['gp_rate'] == '-') {
-
- } else if ($vel['gp_rate'] >= 0) {
- echo 'red_color';
- } else {
- echo 'green_color';
- } ?>" style="text-align:right;padding-right: 10px;"><?php echo $vel['gp_rate']; ?></td>
- <td class="td10"><a href="javascript:void(0);" onclick="window.open('<?php echo $vel['url']?>','_blank');" >下载</a></td>
-
- </tr>
- <?php }
- } ?>
- <!-- 合计 -->
- <tr>
- <td class="td1" style="color:#0095d9;font-size:larger;">-</td>
- <td class="td2" style="color:#0095d9;font-size:larger;">合计</td>
- <td class="td3"
- style="color:#0095d9;font-size:larger;text-align:right;padding-right: 10px;"><?php if (!isset($count['order_num'])) {
- $count['order_num'] = 0;
- }
- echo number_format($count['order_num']); ?></td>
- <td class="td6"
- style="color:#0095d9;font-size:larger;text-align:right;padding-right: 10px;"><?php echo number_format($count['gmv'], 2); ?></td>
- <td class="td11"
- style="color:#0095d9;font-size:larger;text-align:right;padding-right: 10px;"><?php echo number_format($count['pay_in'], 2); ?></td>
- <td class="td12"
- style="color:#0095d9;font-size:larger;text-align:right;padding-right: 10px;"><?php echo number_format($count['pay_out'], 2); ?></td>
- <td class="td7"
- style="color:#0095d9;font-size:larger;text-align:right;padding-right: 10px;"><?php echo number_format($count['base_price'], 2); ?></td>
- <td class="td8"
- style="color:#0095d9;font-size:larger;text-align:right;padding-right: 10px;"><?php echo number_format($count['gp'], 2); ?></td>
- <td class="td9 <?php
- if ($count['gp'] >= 0) {
- echo 'red_color';
- } else {
- echo 'green_color';
- } ?>" style="text-align:right;padding-right: 10px;"><?php echo $count['gp_rate']; ?></td>
- <td class="td10">-</td>
-
- </tr>
- <!-- end 合计 -->
-
- </tbody>
- </table>
- </div>
-
-
- <!--页码信息-->
- <div id="page_size_d" total_row="<?php echo $page['total_row']; ?>" total_page="<?php echo $page['total_page']; ?>">
- <span class="page_size">每页条数</span>
- <select id="page_size" onchange="changePageSize(this)">
- <?php foreach ($page_size_arr as $key => $vel) {
- if ($vel == $page['page_size']) {
- echo '<option value="' . $vel . '" selected=selected>' . $vel . '</option>';
- } else {
- echo '<option value="' . $vel . '">' . $vel . '</option>';
- }
- } ?>
- </select>
- </div>
- <div id="page_list">
- <?php
- if (count($page_arr) > 0) {
- foreach ($page_arr as $key => $vel) {
- if ($page['current_page'] == 1 && ($vel == '首页' || $vel == '<上一页')) {
- $class = 'not_click';
- } elseif ($page['current_page'] == $vel) {
- $class = 'click';
- } elseif ($page['current_page'] == $page['total_page'] && ($vel == '末页' || $vel == '下一页>')) {
- $class = 'not_click';
- } elseif ($vel == '...') {
- $class = 'not_click';
- } else {
- $class = 'clickable';
- }
- if ($vel != '首页' && $vel != '<上一页' && $vel != '下一页>' && $vel != '末页') {
- $class = 'page_num ' . $class;
- }
- if ($class == 'clickable' || $class == 'page_num clickable') {
- echo '<span class="' . $class . '" onclick="pageSearchInfo(this,' . $page['total_page'] . ')">' . $vel . '</span>';
- } else {
- echo '<span class="' . $class . '">' . $vel . '</span>';
- }
- }
- }
- ?>
- <span class="total_row">共<?php echo $page['total_row']; ?>条</span>
- </div>
-
- <?php Pjax::end() ?>
-
-
-
-
-
-
-
|