count.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?php require_once 'header.php' ?>
  2. <style>
  3. .table td{height: 50px}a.current{color:red}
  4. </style>
  5. <div class="row wrapper wrapper-content">
  6. <div class="row">
  7. <div class="col-md-12">
  8. <div class="panel panel-default">
  9. <div class="panel-heading">
  10. <div class="panel-title">
  11. <em class="fa fa-list">
  12. </em>
  13. 统计
  14. </div>
  15. </div>
  16. <div class="panel-body">
  17. <form class="form-inline m-b-xs" action="" method="get">
  18. <div class="input-group">
  19. <span class="input-group-addon">
  20. <i class="fa fa-calendar"></i>
  21. </span>
  22. <input size="16" type="text" name="fdate" readonly class="form_datetime form-control"
  23. value="<?php echo $search['fdate']?>">
  24. <span class="input-group-addon">
  25. </span>
  26. <input size="16" type="text" name="tdate" readonly class="form_datetime form-control"
  27. value="<?php echo $search['tdate']?>">
  28. </div><hr> <button type="submit" class="btn btn-primary">
  29. <i class="fa fa-search"></i>
  30. &nbsp;立即查询
  31. </button>
  32. &nbsp;&nbsp;
  33. <a href="?day=1" <?php echo $search[ 'day']=='1' ? ' class="current"' : ''?>>今天
  34. </a>
  35. <span class="v-line">
  36. |
  37. </span>
  38. <a href="?day=2" <?php echo $search[ 'day']=='2' ? ' class="current"' : ''?>
  39. >昨天
  40. </a>
  41. <span class="v-line">
  42. |
  43. </span>
  44. <a href="?day=7" <?php echo $search[ 'day']=='7' ? ' class="current"': ''?> >7天
  45. </a>
  46. <span class="v-line">
  47. |
  48. </span>
  49. <a href="?day=30" <?php echo $search[ 'day']=='30' ? ' class="current"' : ''?>
  50. >30天
  51. </a>
  52. </form>
  53. <hr><span style="margin-bottom:2;font-size:14px;color:#333">
  54. 实付总额:
  55. <span class="red">
  56. <?php echo $count[ 'total_money']?>
  57. </span>
  58. 元&nbsp;&nbsp;商户收入:
  59. <span class="blue">
  60. <?php echo $count[ 'user_money']?>
  61. </span>
  62. 元&nbsp;&nbsp;
  63. </span>
  64. <hr>
  65. <div class="table-responsive">
  66. <table class="table table-bordered">
  67. <thead>
  68. <tr>
  69. <th>
  70. 订单时间
  71. </th>
  72. <th>
  73. 商户编号
  74. </th>
  75. <th>
  76. 商户订单号
  77. </th>
  78. <th>
  79. 实付金额
  80. </th>
  81. <th>
  82. 商户收入
  83. </th>
  84. <th>
  85. 付款渠道
  86. </th>
  87. </tr>
  88. </thead>
  89. <tbody>
  90. <?php if($lists):?>
  91. <?php foreach($lists as $key=>$val):$acc=$this->model()->select('name')->from('acc')->where(array('fields'=>'id=?','values'=>array($val['channelid'])))->fetchRow();$cname=$acc
  92. ? $acc['name'] : '-';?>
  93. <tr>
  94. <td class="text-center blue">
  95. <?php echo date('m-d H:i:s',$val['addtime'])?>
  96. </td>
  97. <td class="text-center">
  98. <?php echo $val['userid']?>
  99. </td>
  100. <td class="text-center">
  101. <?php echo $val['sdorderno']?>
  102. </td>
  103. <td class="text-center red">
  104. <?php echo $val['realmoney']?>
  105. </td>
  106. <td class="text-center blue">
  107. <?php echo $val['realmoney']*$val[ 'uprice']?>
  108. </td>
  109. <td class="text-center">
  110. <?php echo $cname ?>
  111. </td>
  112. </tr>
  113. <?php endforeach;?>
  114. <?php else:?>
  115. <tr>
  116. <td colspan="7" class="text-center">
  117. 暂无记录
  118. </td>
  119. </tr>
  120. <?php endif;?>
  121. </tbody>
  122. </table>
  123. </div>
  124. <?php if($lists):?>
  125. <?php echo $pagelist ?>
  126. <?php endif;?>
  127. </div></div></div></div></div></div>
  128. <?php require_once 'footer.php' ?>