user.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <!--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">-->
  2. <!--<html xmlns="http://www.w3.org/1999/xhtml">-->
  3. <!--<head>-->
  4. <!--<title>管理栏目</title>-->
  5. <!--<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />-->
  6. <!--<meta name="viewport" content="width=device-width">-->
  7. <!--<link href="<?php echo $data['rootUrl']; ?>global/v1/m/images/style.css" rel="stylesheet" type="text/css" />-->
  8. <!--<script type="text/javascript" src="<?php echo $data['rootUrl']; ?>global/v1/js/jquery-1.7.2.min.js"></script>-->
  9. <!--<script type="text/javascript" src="<?php echo $data['rootUrl']; ?>global/v1/js/over.js"></script>-->
  10. <!--</head>-->
  11. <!--<body>-->
  12. <!--<div class="main_content new_product">-->
  13. <!--<div class="globle_form">-->
  14. <!--<form name="cityform" method="post">-->
  15. <!--<table cellspacing="0" cellpadding="0" class="tableForm">-->
  16. <!--<tr><th width="120">用户名 :</th><td><input type="text" name="username" class="inputText"></td></tr>-->
  17. <!--<tr><th width="120">电子邮箱:</th><td><input type="text" name="useremail" class="inputText"></td></tr>-->
  18. <!--<tr><th width="120">密 码 :</th><td><input type="password" name="password" class="inputText"></td></tr>-->
  19. <!--<tr><td><input type="submit" name="citysubmit" value="添加用户"></td></tr>-->
  20. <!--</table>-->
  21. <!--</form>-->
  22. <!--</div>-->
  23. <!--<div class="globle_form">-->
  24. <!--<form name="cityform" method="post">-->
  25. <!--<table cellspacing="0" cellpadding="0" class="tableForm">-->
  26. <!--<tr><th width="120">用户名或者电子邮箱:</th><td><input type="text" name="ttt" class="inputText"></td></tr>-->
  27. <!--<tr><td><input type="submit" name="searchuser" value="查找用户"></td></tr>-->
  28. <!--</table>-->
  29. <!--</form>-->
  30. <!--</div>-->
  31. <!--&lt;!&ndash;table列表&ndash;&gt;-->
  32. <!--<div class="globle_list">-->
  33. <!--<table cellspacing="0" cellpadding="0" class="tableList">-->
  34. <!--<tbody>-->
  35. <!--<tr>-->
  36. <!--<th class="">用户名</th>-->
  37. <!--<th class="">电子邮箱</th>-->
  38. <!--<th class="">最近登录IP</th>-->
  39. <!--<th class="">最近登录时间</th>-->
  40. <!--<th class="">操作</th>-->
  41. <!--</tr>-->
  42. <!--&lt;!&ndash; loop userArray &ndash;&gt;-->
  43. <!--<tr class="">-->
  44. <!--<td class=""><?php echo $v1['username']; ?></td>-->
  45. <!--<td class=""><?php echo $v1['useremail']; ?></td>-->
  46. <!--<td class=""><?php echo zlong2ip($v1['lastloginip']); ?></td>-->
  47. <!--<td class=""><?php echo formatDate($v1['lastlogintime'], 'Y-m-d'); ?></td>-->
  48. <!--<td class=""><a href="#">修改</a>&nbsp;<a href="#">删除</a></td>-->
  49. <!--</tr>-->
  50. <!--&lt;!&ndash; endloop &ndash;&gt;-->
  51. <!--</tbody>-->
  52. <!--</table>-->
  53. <!--<?php echo $data['pager']; ?>-->
  54. <!--</div>-->
  55. <!--</div>-->
  56. <!--</body>-->
  57. <!--</html>-->
  58. <?php include Doo::conf()->SITE_PATH . Doo::conf()->PROTECTED_FOLDER . "viewc/admin/headAndLeftWrapper.php"; ?>
  59. <div class="mainWrapper container-fluid">
  60. <div class="page-header pageTop">
  61. <h3>用户中心</h3>
  62. </div>
  63. <div class="shopContent clearfix">
  64. <!-- <div class="btnGroup">
  65. <a type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModalAdd">添加用户</a>
  66. </div> -->
  67. <div class="search">
  68. <form name="cityform" method="post">
  69. <div class="input-group">
  70. <input type="text" name="ttt" class="form-control" placeholder="注册手机/注册邮箱/称呼">
  71. <span class="input-group-btn">
  72. <button class="btn btn-default" type="submit" name="searchuser" value="搜索用户">点击搜索</button>
  73. </span>
  74. </div>
  75. </form>
  76. </div>
  77. </div>
  78. <div class="tableContent">
  79. <table class="table table-hover">
  80. <thead>
  81. <tr>
  82. <th width="150">注册手机</th>
  83. <th width="250">注册邮箱</th>
  84. <th width="200">称呼(原账号)</th>
  85. <th>最近登录IP</th>
  86. <th>最近登录时间</th>
  87. <?php if( isset($data['search']) ): ?><th width="100">账号余额</th><?php endif; ?>
  88. </tr>
  89. </thead>
  90. <?php foreach($data['userArray'] as $k1=>$v1): ?>
  91. <tr>
  92. <td><?php if( !empty($v1['mobile']) ): ?><?php echo $v1['mobile']; ?> <i class="text-success glyphicon glyphicon-ok-circle"></i><?php endif; ?></td>
  93. <td><?php if( !empty($v1['useremail']) ): ?><?php echo $v1['useremail']; ?> <?php if( empty($v1['status']) ): ?><i class="text-danger glyphicon glyphicon-ban-circle"></i><?php else: ?><i class="text-success glyphicon glyphicon-ok-circle"></i><?php endif; ?><?php endif; ?></td>
  94. <td><?php echo $v1['username']; ?></td>
  95. <td><?php echo zlong2ip($v1['lastloginip']); ?></td>
  96. <td><?php echo formatDate($v1['lastlogintime'], 'Y-m-d'); ?></td>
  97. <?php if( isset($data['search']) ): ?><td>¥<?php echo $v1['bank']; ?></td><?php endif; ?>
  98. </tr>
  99. <?php endforeach; ?>
  100. </table>
  101. </div>
  102. <nav style="margin: 20px 0">
  103. <?php echo $data['pager']; ?>
  104. </nav>
  105. </div>
  106. <!-- mainWrapper end -->
  107. </div>
  108. <!-- 添加 -->
  109. <!-- <div class="modal fade" id="myModalAdd" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  110. <div class="modal-dialog" role="document">
  111. <div class="modal-content">
  112. <div class="modal-header">
  113. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  114. <h4 class="modal-title" id="myModalLabel">用户添加</h4>
  115. </div>
  116. <div class="modal-body">
  117. <form class="form-horizontal">
  118. <div class="form-group">
  119. <label for="adminName" class="col-sm-3 control-label">用户名称</label>
  120. <div class="col-sm-7">
  121. <input type="adminName" class="form-control" id="adminName" placeholder="请输入用户名">
  122. </div>
  123. </div>
  124. <div class="form-group">
  125. <label for="adminPassword" class="col-sm-3 control-label">电子邮箱</label>
  126. <div class="col-sm-7">
  127. <input type="adminPassword" class="form-control" id="adminPassword" placeholder="请输入电子邮箱">
  128. </div>
  129. </div>
  130. <div class="form-group">
  131. <label for="adminPassword" class="col-sm-3 control-label">密码</label>
  132. <div class="col-sm-7">
  133. <input type="adminPassword" class="form-control" id="adminPassword" placeholder="请输入密码">
  134. </div>
  135. </div>
  136. </form>
  137. </div>
  138. <div class="modal-footer">
  139. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  140. <button type="button" class="btn btn-primary">确认</button>
  141. </div>
  142. </div>
  143. </div>
  144. </div> -->
  145. <!--编辑 -->
  146. <!-- <div class="modal fade" id="myModalEdit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  147. <div class="modal-dialog" role="document">
  148. <div class="modal-content">
  149. <div class="modal-header">
  150. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  151. <h4 class="modal-title" id="myModalLabel">用户编辑</h4>
  152. </div>
  153. <div class="modal-body">
  154. <form class="form-horizontal">
  155. <div class="form-group">
  156. <label for="adminName" class="col-sm-3 control-label">用户名称</label>
  157. <div class="col-sm-7">
  158. <input type="adminName" class="form-control" id="adminName" value="zlf162543">
  159. </div>
  160. </div>
  161. <div class="form-group">
  162. <label for="adminPassword" class="col-sm-3 control-label">电子邮箱</label>
  163. <div class="col-sm-7">
  164. <input type="adminPassword" class="form-control" id="adminPassword" value="446550385@qq.com">
  165. </div>
  166. </div>
  167. <div class="form-group">
  168. <label for="adminPassword" class="col-sm-3 control-label">密码</label>
  169. <div class="col-sm-7">
  170. <input type="adminPassword" class="form-control" id="adminPassword" value="">
  171. </div>
  172. </div>
  173. </form>
  174. </div>
  175. <div class="modal-footer">
  176. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  177. <button type="button" class="btn btn-primary">确认</button>
  178. </div>
  179. </div>
  180. </div>
  181. </div> -->
  182. <!-- 删除 -->
  183. <!-- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  184. <div class="modal-dialog" role="document">
  185. <div class="modal-content">
  186. <div class="modal-header">
  187. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  188. <h4 class="modal-title" id="myModalLabel">确认删除</h4>
  189. </div>
  190. <div class="modal-body">
  191. <p>确定要删除该用户吗?</p>
  192. </div>
  193. <div class="modal-footer">
  194. <button type="button" class="btn btn-default">确认</button>
  195. <button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button>
  196. </div>
  197. </div>
  198. </div>
  199. </div> -->
  200. </body>
  201. </html>