index.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <title>代理中心</title>
  7. <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/vendor/bootstrap/css/bootstrap.min.css">
  8. <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/base.css" media="all">
  9. <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/common.css" media="all">
  10. <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/module.css">
  11. <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/style.css" media="all">
  12. <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/default_color.css" media="all">
  13. <script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.min.js"></script>
  14. <script type="text/javascript" src="__PUBLIC__/layer/layer.js"></script>
  15. <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/flat-ui.css">
  16. <script src="__PUBLIC__/Admin/js/flat-ui.min.js"></script>
  17. <script src="__PUBLIC__/Admin/js/application.js"></script>
  18. </head>
  19. <body style="margin:0px;padding:0px; margin-top:100px;">
  20. <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  21. <div class="navbar-header" style="background-color:#3c434d;">
  22. <a class="navbar-brand" style="width:200px;text-align:center;background-color:#3c434d;" href="{:U('Agent/Index/index')}">
  23. <span>代理系统</span>
  24. </a>
  25. </div>
  26. <div class="navbar-collapse collapse">
  27. <ul class="nav navbar-nav">
  28. <li class="active">
  29. <a href="{:U('Agent/Index/index')}">会员列表</a>
  30. </li>
  31. <li>
  32. <a href="{:U('Agent/Index/jclist')}">合约建仓订单</a>
  33. </li>
  34. <li>
  35. <a href="{:U('Agent/Index/pclist')}">合约平仓订单</a>
  36. </li>
  37. <li>
  38. <a href="{:U('Agent/Index/tyjclist')}">体验单建仓订单</a>
  39. </li>
  40. <li>
  41. <a href="{:U('Agent/Index/typclist')}">体验单平仓订单</a>
  42. </li>
  43. <li>
  44. <a href="{:U('Agent/Index/czlist')}">充值记录</a>
  45. </li>
  46. <li>
  47. <a href="{:U('Agent/Index/txlist')}">提币记录</a>
  48. </li>
  49. </ul>
  50. <ul class="nav navbar-nav navbar-rights" style="margin-right:10px;">
  51. <li>
  52. <a class="dropdown-toggle" title="退出" href="{:U('Agent/Login/loginout')}" target="_blank">
  53. <span class="glyphicon glyphicon-share" aria-hidden="true"></span>
  54. </a>
  55. </li>
  56. </ul>
  57. </div>
  58. </div>
  59. <div id="main-content">
  60. <div id="top-alert" class="fixed alert alert-error" style="display: none;">
  61. <button class="close fixed" style="margin-top: 4px;">&times;</button>
  62. <div class="alert-content">警告内容</div>
  63. </div>
  64. <div id="main" class="main">
  65. <div class="main-title-h">
  66. <span class="h1-title">会员管理</span>
  67. <a class="btn btn-warning" onClick="location.href='{:U('Agent/Index/index')}'">初始化搜索</a>
  68. </div>
  69. <div class="cf">
  70. <div class="search-form cf">
  71. <div class="sleft">
  72. <form name="formSearch" id="formSearch" method="get" name="form1">
  73. <select style="width:120px;float:left;margin-right:10px;" name="field" class="form-control">
  74. <option value="username"
  75. <empty name="Think.get.field">selected</empty>
  76. >邮箱账号</option>
  77. </select>
  78. <script type="text/javascript" src="/Public/layer/laydate/laydate.js"></script>
  79. <input type="text" name="name" class="search-input form-control" value="{$Think.get.name}" placeholder="请输入邮箱账号" style="width: 380px;">
  80. <a class="sch-btn" href="javascript:;" id="search"> <i class="btn-search"></i> </a>
  81. </form>
  82. <script>
  83. //搜索功能
  84. $(function () {
  85. $('#search').click(function () {
  86. $('#formSearch').submit();
  87. });
  88. });
  89. //回车搜索
  90. $(".search-input").keyup(function (e) {
  91. if (e.keyCode === 13) {
  92. $("#search").click();
  93. return false;
  94. }
  95. });
  96. </script>
  97. </div>
  98. </div>
  99. </div>
  100. <div class="data-table table-striped">
  101. <table class="">
  102. <thead>
  103. <tr>
  104. <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
  105. <th>ID</th>
  106. <th>会员账号</th>
  107. <th>登陆</th>
  108. <th>注册IP/时间</th>
  109. <th>地址</th>
  110. <th>推荐人</th>
  111. <th>认证状态</th>
  112. <th>邀请码</th>
  113. </tr>
  114. </thead>
  115. <tbody>
  116. <notempty name="list">
  117. <volist name="list" id="vo">
  118. <tr>
  119. <td>
  120. <input class="ids" type="checkbox" name="id[]" value="{$vo.id}"/>
  121. </td>
  122. <td>{$vo.id}</td>
  123. <td title="登录该用户">{$vo.username}</td>
  124. <td><span>{$vo.logins}</span>次</td>
  125. <td>
  126. <span>IP:{$vo.addip}</span><br />
  127. <span>时间:<?php echo date("Y-m-d H:i:s",$vo['addtime']);?></span>
  128. </td>
  129. <td><span>{$vo.addr}</span></td>
  130. <td>
  131. <neq name="vo.invit_1">1代:{$vo['invit_1']}<br/></neq>
  132. <neq name="vo.invit_2">2代:{$vo['invit_2']}<br/></neq>
  133. <neq name="vo.invit_3">3代:{$vo['invit_3']}<br/></neq>
  134. </td>
  135. <td>
  136. <eq name="vo.rzstatus" value="0">未提交</eq>
  137. <eq name="vo.rzstatus" value="1"><span style="color:blue;">待审核</span></eq>
  138. <eq name="vo.rzstatus" value="2"><span style="color:green;">认证成功</span></eq>
  139. <eq name="vo.rzstatus" value="3"><span style="color:red;">认证驳回</span></eq>
  140. </td>
  141. <td><span>{$vo.invit}</span></td>
  142. </tr>
  143. </volist>
  144. <else/>
  145. <td colspan="12" class="text-center empty-info">
  146. <i class="glyphicon glyphicon-exclamation-sign"></i>暂无数据
  147. </td>
  148. </notempty>
  149. </tbody>
  150. </table>
  151. <div class="page">
  152. <div>{$page}</div>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. <script type="text/javascript" src="__PUBLIC__/Admin/js/common.js"></script>
  158. <script type="text/javascript">
  159. $(function(){
  160. setInterval("tzfc()",2000);
  161. });
  162. function tzfc(){
  163. var st = 1;
  164. $.post("{:U('Admin/Trade/gethyorder')}",
  165. {'st':st},
  166. function(data){
  167. if(data.code == 1){
  168. layer.confirm('有新的合约订单', {
  169. btn: ['知道了'] //按钮
  170. }, function(){
  171. $.post("{:U('Admin/Trade/settzstatus')}",
  172. function(data){
  173. if(data.code == 1){
  174. window.location.reload();
  175. }
  176. });
  177. });
  178. }
  179. });
  180. }
  181. </script>