commissapply.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. </div>
  5. <table class="table table-striped table-bordered table-hover search-form">
  6. <thead>
  7. <th><input name="name" type="text" placeholder="输入用户名" value="{:I('name')}" /></th>
  8. <th><input name="tel" type="text" placeholder="输入手机号码" value="{:I('tel')}" /></th>
  9. <th>
  10. <a class="btn btn-primary" href="javascript:;" id="search" url="{:U('Member/commissapply')}">查询</a>
  11. </th>
  12. </thead>
  13. </table>
  14. <div class="row">
  15. <div class="col-xs-12">
  16. <div class="table-responsive">
  17. <table class="table table-striped table-bordered table-hover">
  18. <thead>
  19. <tr>
  20. <th>用户名</th>
  21. <th>手机号码</th>
  22. <th>上级</th>
  23. <th>状态</th>
  24. <th>提现金额</th>
  25. <th>转账银行</th>
  26. <th>卡号</th>
  27. <th>持卡人姓名</th>
  28. <th>申请时间</th>
  29. <th>操作</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <volist name="list" id="m" empty="$empty">
  34. <tr>
  35. <td>{$m.uname}</td>
  36. <td>{$m.telephone}</td>
  37. <td>
  38. <?php if($m['share_id'] == 0){ ?>
  39. 平台推荐
  40. <?php }else { ?>
  41. <?php $member_info = M('member')->field('name')->where( array('member_id' => $m['share_id']) )->find(); ?>
  42. <span class="blue"><?php echo $member_info['name']; ?></span>
  43. <?php } ?>
  44. </td>
  45. <td>
  46. <?php if($m['state'] ==0){ ?>
  47. <span class="red">提现中</span>
  48. <?php }else if($m['state'] == 1){ ?>
  49. <span class="blue">已打款</span>
  50. <?php }else{ ?>
  51. <span class="green">已拒绝</span>
  52. <?php } ?>
  53. </td>
  54. <td><?php echo $m['money']; ?>元</td>
  55. <?php $member_commiss = M('member_commiss')->where( array('member_id' => $m['member_id']) )->find(); ?>
  56. <td><?php echo $member_commiss['bankname']; ?></td>
  57. <td><?php echo $member_commiss['bankaccount']; ?></td>
  58. <td><?php echo $member_commiss['bankusername']; ?></td>
  59. <td><?php echo empty($m['addtime'])?'无':date('Y-m-d H:i:s',$m['addtime']); ?></td>
  60. <td>
  61. <?php if($m['state'] ==0){ ?>
  62. <a class="btn btn-xs btn-info btn-danger" href='{:U("Member/commissmoneyapply",array("id"=>$m["member_id"],"aid" => $m["id"],"state" => 2))}'>
  63. <i class="icon-eye-open bigger-120"></i>拒绝提现
  64. </a>
  65. <a class="delete btn btn-xs btn-danger" href='{:U("Member/commissmoneyapply",array("id"=>$m["member_id"],"aid" => $m["id"], "state" => 1))}' >
  66. 确认提现
  67. </a>
  68. <?php }else{ ?>
  69. -----
  70. <?php } ?>
  71. </td>
  72. </tr>
  73. </volist>
  74. <tr>
  75. <td colspan="20" class="page">{$page}</td>
  76. </tr>
  77. </tbody>
  78. </table>
  79. </div>
  80. </div>
  81. </div>
  82. </block>
  83. <block name="javascript">
  84. <script>
  85. $(function(){
  86. $("#export").click(function(){
  87. var url = $(this).attr('url');
  88. var query = $('.search-form').find('input,select').serialize();
  89. query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
  90. query = query.replace(/^&/g, '');
  91. if (url.indexOf('?') > 0) {
  92. url += '&' + query;
  93. } else {
  94. url += '?' + query;
  95. }
  96. window.open(url);
  97. })
  98. $("#search").click(function () {
  99. var url = $(this).attr('url');
  100. var query = $('.search-form').find('input,select').serialize();
  101. query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
  102. query = query.replace(/^&/g, '');
  103. if (url.indexOf('?') > 0) {
  104. url += '&' + query;
  105. } else {
  106. url += '?' + query;
  107. }
  108. window.location.href = url;
  109. });
  110. });
  111. </script>
  112. </block>