user.tpl.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <?php if (!defined("IS_INITPHP")) exit("Access Denied!"); /* INITPHP Version 1.0 ,Create on 2017-04-06 18:17:46, compiled from /data/wwwroot/www.shadowsocks5.com/app/template/ss/manage/user.html */ ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title></title>
  7. <style type="text/css">
  8. <!--
  9. body {
  10. margin-left: 0px;
  11. margin-top: 0px;
  12. margin-right: 0px;
  13. margin-bottom: 0px;
  14. }
  15. .tabfont01 {
  16. font-family: "宋体";
  17. font-size: 9px;
  18. color: #555555;
  19. text-decoration: none;
  20. text-align: center;
  21. }
  22. .font051 {
  23. font-family: "宋体";
  24. font-size: 12px;
  25. color: #333333;
  26. text-decoration: none;
  27. line-height: 20px;
  28. }
  29. .font201 {
  30. font-family: "宋体";
  31. font-size: 12px;
  32. color: #FF0000;
  33. text-decoration: none;
  34. }
  35. .button {
  36. font-family: "宋体";
  37. font-size: 14px;
  38. height: 37px;
  39. }
  40. html {
  41. overflow-x: auto;
  42. overflow-y: auto;
  43. border: 0;
  44. }
  45. -->
  46. </style>
  47. <link href="https://shadowsocks5.b0.upaiyun.com/static/manage/css/css.css" rel="stylesheet" type="text/css" />
  48. <link href="https://shadowsocks5.b0.upaiyun.com/static/manage/css/style.css" rel="stylesheet" type="text/css" />
  49. <link media="screen" rel="stylesheet" href="https://shadowsocks5.b0.upaiyun.com/static/manage/colorbox/colorbox.css" />
  50. <script type="text/javascript" src="https://shadowsocks5.b0.upaiyun.com/static/manage/js/jquery-1.8.2.min.js?1"></script>
  51. <script type="text/javascript" src="https://shadowsocks5.b0.upaiyun.com/static/manage/colorbox/jquery.colorbox-min.js"></script>
  52. <script type="text/javascript" src="https://shadowsocks5.b0.upaiyun.com/static/manage/js/WdatePicker.js"></script>
  53. <script>
  54. $(document).ready(function() {
  55. $(".setdate").click(function() {
  56. WdatePicker({
  57. dateFmt : 'yyyy-MM-dd'
  58. });
  59. });
  60. });
  61. </script>
  62. </head>
  63. <body>
  64. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  65. <tr>
  66. <td height="30">
  67. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  68. <tr>
  69. <td height="62" background="https://shadowsocks5.b0.upaiyun.com/static/manage/images/nav04.gif">
  70. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  71. <tr>
  72. <td width="21">
  73. <img src="https://shadowsocks5.b0.upaiyun.com/static/manage/images/ico07.gif" width="20" height="18" />
  74. </td>
  75. <td width="538">
  76. 总共耗费流量:<?php echo $allTran;?>G
  77. </td>
  78. </tr>
  79. </table>
  80. </td>
  81. </tr>
  82. </table>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td>
  87. <div id="chart" style="width: 95%"></div>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td>
  92. <table id="subtree1" style="DISPLAY:" width="100%" border="0" cellspacing="0" cellpadding="0">
  93. <tr>
  94. <td>
  95. <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  96. <tr>
  97. <td height="40" class="font42">
  98. <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#464646" class="newfont03">
  99. <tr bgcolor="#EEEEEE">
  100. <td width="10%" style="text-align: center;">编号</td>
  101. <td width="10%" style="text-align: center;">用户名</td>
  102. <td width="10%" style="text-align: center;">邮箱</td>
  103. <td width="5%" style="text-align: center;">端口</td>
  104. <td width="10%" style="text-align: center;">已使用流量</td>
  105. <td width="10%" style="text-align: center;">可用流量</td>
  106. <td width="5%" style="text-align: center;">套餐</td>
  107. <td width="10%" style="text-align: center;">最后签到时间</td>
  108. <td width="10%" style="text-align: center;">最后登陆时间</td>
  109. <td width="10%" style="text-align: center;">注册时间</td>
  110. <td width="10%" style="text-align: center;">操作</td>
  111. </tr>
  112. <?php foreach ($user as $index=>$data) { ?>
  113. <tr bgcolor="#FFFFFF">
  114. <td height="20" style="text-align: center;">
  115. <?php echo $data['uid'];?>
  116. </td>
  117. <td height="20" style="text-align: center;">
  118. <?php if($data['enable']==0){echo '<font color="red">'.$data['user_name'].'</font>';}else{echo $data['user_name'];} ?>
  119. </td>
  120. <td style="text-align: center;" id="con<?php echo $data['id'];?>">
  121. <?php echo $data['email'];?>
  122. </td>
  123. <td style="text-align: center;">
  124. <?php echo $data['port'];?>
  125. </td>
  126. <td style="text-align: center;">
  127. <?php echo round(($data['u']+$data['d'])/(1024*1024),2) ?>M
  128. </td>
  129. <td style="text-align: center;">
  130. <?php echo round($data['transfer_enable']/(1024*1024),2) ?>M
  131. </td>
  132. <td style="text-align: center;">
  133. <?php echo $data['plan'];?>
  134. </td>
  135. <td style="text-align: center;">
  136. <?php echo date("Y-m-d H:i:s",$data['last_check_in_time']) ?>
  137. </td>
  138. <td style="text-align: center;">
  139. <?php echo date("Y-m-d H:i:s",$data['last_login_time']) ?>
  140. </td>
  141. <td style="text-align: center;">
  142. <?php echo $data['reg_date'];?>
  143. </td>
  144. <td style="text-align: center;">
  145. <a href="">编辑</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/manage/del?id=<?php echo $data['uid'];?>">删除</a>
  146. </td>
  147. </tr>
  148. <?php } ?>
  149. </table>
  150. </td>
  151. </tr>
  152. </table>
  153. </td>
  154. </tr>
  155. <tr>
  156. <td height="20"></td>
  157. </tr>
  158. </table>
  159. </td>
  160. </tr>
  161. </table>
  162. <?php echo $pager;?>
  163. <script src="https://shadowsocks5.b0.upaiyun.com/js/jquery.colorbox-min.js"></script>
  164. <script>
  165. function editNode($id){
  166. $.colorbox({
  167. href:"/manage/user_edit?id="+$id,
  168. close :"关闭" ,
  169. width:"600px",
  170. });
  171. }
  172. </script>
  173. </body>
  174. </html>