bill_order_statis.index.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php defined('InShopNC') or exit('Access Invalid!');?>
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <h3><?php echo $lang['bill_manage'];?>结算管理</h3>
  6. <ul class="tab-base">
  7. <li><a class="current" href="JavaScript:void(0);"><span>结算管理</span></a></li>
  8. <li><a href="index.php?act=bill&op=show_statis"><span>商家账单列表</span></a></li></ul>
  9. </div>
  10. </div>
  11. <div class="fixed-empty"></div>
  12. <form method="get" action="index.php" target="" name="formSearch" id="formSearch">
  13. <input type="hidden" name="act" value="bill" />
  14. <input type="hidden" name="op" value="index" />
  15. <table class="tb-type1 noborder search">
  16. <tbody>
  17. <tr>
  18. <th><?php echo $lang['order_time_from'];?>按年份搜索</th>
  19. <td>
  20. <select name="query_year" class="querySelect">
  21. <option value=""><?php echo $lang['nc_please_choose'];?></option>
  22. <?php for($i = date('Y',TIMESTAMP)-5; $i <= date('Y',TIMESTAMP)+2; $i++) { ?>
  23. <option value="<?php echo $i;?>" <?php if ($_GET['query_year'] == $i) {?>selected<?php } ?>><?php echo $i;?></option>
  24. <?php } ?>
  25. </select>
  26. </td>
  27. <td><a href="javascript:void(0);" id="ncsubmit" class="btn-search " title="<?php echo $lang['nc_query'];?>">&nbsp;</a>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </form>
  33. <table class="table tb-type2" id="prompt">
  34. <tbody>
  35. <tr class="space odd">
  36. <th colspan="12"><div class="title">
  37. <h5><?php echo $lang['nc_prompts'];?></h5>
  38. <span class="arrow"></span></div></th>
  39. </tr>
  40. <tr>
  41. <td><ul>
  42. <li>此处列出了平台每月的结算信息汇总,点击查看可以查看本月详细的店铺账单信息列表</li>
  43. </ul></td>
  44. </tr>
  45. </tbody>
  46. </table>
  47. <table class="table tb-type2 nobdb">
  48. <thead>
  49. <tr class="thead">
  50. <th><?php echo $lang['order_number'];?>账单(月)</th>
  51. <th class="align-center">开始日期</th>
  52. <th class="align-center">结束日期</th>
  53. <th class="align-center">订单金额</th>
  54. <th class="align-center">运费</th>
  55. <th class="align-center">收取佣金</th>
  56. <th class="align-center">退单金额</th>
  57. <th class="align-center">退还佣金</th>
  58. <th class="align-center">店铺费用</th>
  59. <th class="align-center">本期应结</th>
  60. <th class="align-center"><?php echo $lang['nc_handle'];?></th>
  61. </tr>
  62. </thead>
  63. <tbody>
  64. <?php if(is_array($output['bill_list']) && !empty($output['bill_list'])){?>
  65. <?php foreach($output['bill_list'] as $bill){?>
  66. <tr class="hover">
  67. <td>
  68. <?php echo substr($bill['os_month'],0,4).'-'.substr($bill['os_month'],4);?>
  69. </td>
  70. <td class="nowrap align-center"><?php echo date('Y-m-d',$bill['os_start_date']);?></td>
  71. <td class="nowrap align-center"><?php echo date('Y-m-d',$bill['os_end_date']);?></td>
  72. <td class="align-center"><?php echo $bill['os_order_totals'];?></td>
  73. <td class="align-center"><?php echo $bill['os_shipping_totals'];?></td>
  74. <td class="align-center"><?php echo $bill['os_commis_totals'];?></td>
  75. <td class="align-center"><?php echo $bill['os_order_return_totals'];?></td>
  76. <td class="align-center"><?php echo $bill['os_commis_return_totals'];?></td>
  77. <td class="align-center"><?php echo $bill['os_store_cost_totals'];?></td>
  78. <td class="align-center"><?php echo $bill['os_result_totals'];?></td>
  79. <td class="align-center">
  80. <a href="index.php?act=bill&op=show_statis&os_month=<?php echo $bill['os_month'];?>"><?php echo $lang['nc_view'];?></a>
  81. </td>
  82. </tr>
  83. <?php }?>
  84. <?php }else{?>
  85. <tr class="no_data">
  86. <td colspan="15"><?php echo $lang['nc_no_record'];?></td>
  87. </tr>
  88. <?php }?>
  89. </tbody>
  90. <?php if(is_array($output['bill_list']) && !empty($output['bill_list'])){?>
  91. <tfoot>
  92. <tr class="tfoot">
  93. <td colspan="15" id="dataFuncs"><div class="pagination"> <?php echo $output['show_page'];?> </div></td>
  94. </tr>
  95. </tfoot>
  96. <?php } ?>
  97. </table>
  98. </div>
  99. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/jquery-ui/jquery.ui.js"></script>
  100. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/jquery-ui/i18n/zh-CN.js" charset="utf-8"></script>
  101. <link rel="stylesheet" type="text/css" href="<?php echo RESOURCE_SITE_URL;?>/js/jquery-ui/themes/ui-lightness/jquery.ui.css" />
  102. <script type="text/javascript">
  103. $(function(){
  104. $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
  105. $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
  106. $('#ncsubmit').click(function(){
  107. $('input[name="op"]').val('index');$('#formSearch').submit();
  108. });
  109. });
  110. </script>