users.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?php require_once 'header.php';
  2. $url='http://' .$this-> config['siteurl'].'/register?id='.$this->session->get('login_agentid');?>
  3. <div class="row wrapper wrapper-content">
  4. <div class="row">
  5. <div class="col-md-12">
  6. <div class="panel panel-default">
  7. <div class="panel-heading">
  8. <div class="panel-title">
  9. <em class="fa fa-list">
  10. </em>
  11. <?php echo $title ?>
  12. </div>
  13. </div>
  14. <div class="panel-body">
  15. <div class="alert alert-success" style="margin-bottom:0">
  16. 邀请注册链接:
  17. <a href="<?php echo $url?>">
  18. <?php echo $url?>
  19. </a>
  20. &nbsp;
  21. <a href="javascript:;" data="<?php echo $url?>" class="zclipCopy blue">
  22. 复制
  23. </a>
  24. </div><br>
  25. <div style="background:#fff;padding:20px 15px;border:1px solid #ddd">
  26. <form class="form-inline" action="" method="get">
  27. <input type="text" class="form-control" name="uname" placeholder="商户名/编号"
  28. value="<?php echo $search['uname']?>" size="15">
  29. <button type="submit" class="btn btn-primary">
  30. <span class="glyphicon glyphicon-search">
  31. </span>
  32. &nbsp;立即查询
  33. </button>
  34. </form>
  35. </div>
  36. <div class="content-box">
  37. <table class="table table-hover">
  38. <thead>
  39. <tr>
  40. <th>
  41. 商户编号
  42. </th>
  43. <th>
  44. 商户名
  45. </th>
  46. <th>
  47. 注册时间
  48. </th>
  49. <th>
  50. 账号状态
  51. </th>
  52. <th>
  53. 操作
  54. </th>
  55. </tr>
  56. </thead>
  57. <tbody>
  58. <?php if($lists):?>
  59. <?php foreach($lists as $key=>
  60. $val):switch($val['is_state']){case 0: $state='
  61. <span class="label label-warning">
  62. 待审核
  63. </span>
  64. '; break;case 1: $state='
  65. <span class="label label-success">
  66. 已审核
  67. </span>
  68. '; break;case 2: $state='
  69. <span class="label label-danger">
  70. 已停用
  71. </span>
  72. '; break;}?>
  73. <tr>
  74. <td>
  75. <?php echo $val[ 'id']?>
  76. </td>
  77. <td>
  78. <?php echo $val[ 'username']?>
  79. </td>
  80. <td>
  81. <?php echo date( 'Y-m-d H:i:s',$val[ 'addtime'])?>
  82. </td>
  83. <td>
  84. <?php echo $state?>
  85. </td>
  86. <td>
  87. <a href="javascript:;" onclick="showContent('设置下级用户费率','/agent/users/setuserrate/<?php echo $val['id']?>')">
  88. <span class="glyphicon glyphicon-cog" data-toggle="tooltip" title="设置费率">设置费率
  89. </span>
  90. </a>
  91. </td>
  92. </tr>
  93. <?php endforeach;?>
  94. <?php else:?>
  95. <tr>
  96. <td colspan="5" class="text-center">
  97. no data.
  98. </td>
  99. </tr>
  100. <?php endif;?>
  101. </tbody>
  102. </table>
  103. </div>
  104. </div></div></div></div></div></div>
  105. <?php require_once 'footer.php' ?>