apply.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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/apply')}">查询</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. </tr>
  27. </thead>
  28. <tbody>
  29. <volist name="list" id="m" empty="$empty">
  30. <tr>
  31. <td>{$m.uname}</td>
  32. <td>{$m.telephone}</td>
  33. <td>
  34. <?php if($m['share_id'] == 0){ ?>
  35. 平台推荐
  36. <?php }else { ?>
  37. <?php $member_info = M('member')->field('name')->where( array('member_id' => $m['share_id']) )->find(); ?>
  38. <span class="blue"><?php echo $member_info['name']; ?></span>
  39. <?php } ?>
  40. </td>
  41. <td><?php echo empty($m['create_time'])?'无':date('Y-m-d H:i:s',$m['create_time']); ?></td>
  42. <td><?php echo empty($m['addtime'])?'无':date('Y-m-d H:i:s',$m['addtime']); ?></td>
  43. <td>
  44. <a class="btn btn-xs btn-info" href='{:U("Member/info",array("id"=>$m["member_id"]))}'>
  45. <i class="icon-eye-open bigger-120"></i>查看详情
  46. </a>
  47. <?php if($m['comsiss_flag'] == 0){ ?>
  48. <a class="delete btn btn-xs btn-danger" href='{:U("Member/fencommissapply",array("id"=>$m["member_id"],"aid" => $m["id"]))}' >
  49. 升级为分销商
  50. </a>
  51. <?php } ?>
  52. </td>
  53. </tr>
  54. </volist>
  55. <tr>
  56. <td colspan="20" class="page">{$page}</td>
  57. </tr>
  58. </tbody>
  59. </table>
  60. </div>
  61. </div>
  62. </div>
  63. </block>
  64. <block name="javascript">
  65. <script>
  66. $(function(){
  67. $("#export").click(function(){
  68. var url = $(this).attr('url');
  69. var query = $('.search-form').find('input,select').serialize();
  70. query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
  71. query = query.replace(/^&/g, '');
  72. if (url.indexOf('?') > 0) {
  73. url += '&' + query;
  74. } else {
  75. url += '?' + query;
  76. }
  77. window.open(url);
  78. })
  79. $("#search").click(function () {
  80. var url = $(this).attr('url');
  81. var query = $('.search-form').find('input,select').serialize();
  82. query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
  83. query = query.replace(/^&/g, '');
  84. if (url.indexOf('?') > 0) {
  85. url += '&' + query;
  86. } else {
  87. url += '?' + query;
  88. }
  89. window.location.href = url;
  90. });
  91. });
  92. </script>
  93. </block>