user_list.blade.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <div class="main-panel">
  2. <div class="content-wrapper">
  3. <div class="page-header">
  4. <h3 class="page-title">
  5. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  6. <i class="mdi mdi-settings"></i>
  7. </span>
  8. {{ __('auto.实时数据') }}
  9. </h3>
  10. <nav aria-label="breadcrumb">
  11. <ol class="breadcrumb">
  12. <li class="breadcrumb-item"><a href="#">{{ __('auto.实时数据') }}</a></li>
  13. <li class="breadcrumb-item active" aria-current="page">{{ __('auto.房间实时数据') }}</li>
  14. </ol>
  15. </nav>
  16. </div>
  17. <div class="row">
  18. <div class="col-lg-12 grid-margin stretch-card">
  19. <div class="card">
  20. <div class="card-body">
  21. <h4 class="card-title">{{ __('auto.用户数据') }}</h4>
  22. <form class="well form-inline margin-top-20" method="post" action='/admin/global/userlist'>
  23. <div>
  24. @csrf
  25. <span style="padding-left: 10px">{{ __('auto.会员ID:') }}</span>
  26. <input class="form-control" type="text" name="UserID" id="UserID" style="width: 10%; "
  27. value="{{$UserID}}">
  28. <span style="padding-left: 10px">{{ __('auto.设备ID:') }}</span>
  29. <input class="form-control" type="text" name="MachineID" id="MachineID" style="width: 10%; "
  30. value="{{$MachineID}}">
  31. <span style="padding-left: 10px">{{ __('auto.手机号:') }}</span>
  32. <input class="form-control" type="text" name="RegisterMobile" id="RegisterMobile"
  33. style="width: 10%; " value="{{$RegisterMobile}}">
  34. <span style="padding-left: 10px">{{ __('auto.上级ID:') }}</span>
  35. <input class="form-control" type="text" name="SpreaderID" id="SpreaderID"
  36. style="width: 10%; " value="{{$SpreaderID}}">
  37. <span style="padding-left: 10px">{{ __('auto.姓名:') }}</span>
  38. <input class="form-control" type="text" name="Compellation" id="Compellation"
  39. style="width: 10%; " value="{{$Compellation}}">
  40. <span style="padding-left: 10px">{{ __('auto.注册时间:') }}</span>
  41. <input type="datetime-local" step="01" name="start_time" id="start_time"
  42. class="form-control" value="{{$start_time}}" onclick="start_times()" />
  43. <input type="datetime-local" step="01" name="end_time" id='end_time'
  44. class="form-control" value="{{$end_time}}" onclick="end_times()"/><br>
  45. <span style="padding-left: 10px">{{ __('auto.渠道名称:') }}</span>
  46. <input class="form-control" type="text" name="mobile" style="width: 10%; "
  47. value="{{ __('auto.暂时无法使用') }}" disabled>
  48. <span style="padding-left: 10px">{{ __('auto.当前在线状态:') }}</span>
  49. <input class="form-control" type="text" name="mobile" style="width: 10%; "
  50. value="{{ __('auto.暂时无法使用') }}" disabled>
  51. <span style="padding-left: 10px">VIP{{ __('auto.筛选:') }}</span>
  52. <select class="form-control" name="vip" value="{{$vip}}" style="color: black">
  53. <option value="">{{ __('auto.请选择') }}</option>
  54. @for($i=1;$i<=6;$i++)
  55. @if($vip==$i)
  56. <option value="{{$i}}" selected>VIP {{$i}}</option>
  57. @else
  58. <option value="{{$i}}">VIP {{$i}}</option>
  59. @endif
  60. @endfor
  61. </select>
  62. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  63. <br>
  64. <input class="form-control" type="checkbox" name="obj" id="radio" value="1"
  65. onclick="search(1)">{{ __('auto.当前在线') }}
  66. <input class="form-control" type="checkbox" name="obj" id="radio" value="2"
  67. onclick="search(2)">{{ __('auto.未实名') }}
  68. <input class="form-control" type="checkbox" name="obj" id="radio" value="3"
  69. onclick="search(3)">{{ __('auto.无手机号') }}
  70. <input class="form-control" type="checkbox" name="obj" id="radio" value="4"
  71. onclick="search(4)">{{ __('auto.同') }}IP
  72. <input class="form-control" type="checkbox" name="obj" id="radio" value="5"
  73. onclick="search(5)">{{ __('auto.无渠道') }}
  74. <input class="form-control" type="checkbox" name="obj" id="radio" value="6"
  75. onclick="search(6)">{{ __('auto.未充值') }}
  76. <input class="form-control" type="checkbox" name="obj" id="radio" value="7"
  77. onclick="search(7)">{{ __('auto.无上级') }}
  78. <input class="form-control" type="checkbox" name="obj" id="radio" value="8"
  79. onclick="search(8)">{{ __('auto.封号中') }}
  80. <a href="/admin/global/userlist?excel=1
  81. &UserID={{$UserID}}
  82. &RegisterMobile={{$RegisterMobile}}
  83. &SpreaderID={{$SpreaderID}}
  84. &Compellation={{$Compellation}}
  85. &start_time={{$start_time}}
  86. &end_time={{$end_time}}
  87. &obj={{$obj}}
  88. &vip={{$vip}}"
  89. class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
  90. <input type="button" onclick="ban(1)" class="btn btn-sm btn-gradient-dark btn-icon-text"
  91. value="{{ __('auto.批量封号') }}"/>&nbsp;&nbsp;
  92. <input type="button" onclick="ban(2)" class="btn btn-sm btn-gradient-dark btn-icon-text"
  93. value="{{ __('auto.批量解封') }}"/>&nbsp;&nbsp;
  94. </div>
  95. </form>
  96. <table class="table table-bordered">
  97. <thead>
  98. <tr>
  99. <th width="6%">
  100. <center>
  101. <button type="button" id="quan" onclick="checkbox()"
  102. class="btn btn-sm btn-gradient-primary btn-icon-text">
  103. {{ __('auto.全选/全不选') }}
  104. </button>
  105. </center>
  106. </th>
  107. <th width="6%">{{ __('auto.会员') }}ID</th>
  108. <th width="4%">{{ __('auto.姓名') }}</th>
  109. <th width="6%">{{ __('auto.手机号') }}</th>
  110. <th width="6%">IP</th>
  111. <th width="6%">{{ __('auto.金豆余额') }}</th>
  112. {{-- <th width="6%">{{ __('auto.上级') }}ID</th>--}}
  113. {{-- <th width="6%">VIP{{ __('auto.等级') }}</th>--}}
  114. <th width="6%">{{ __('auto.当前在线状态') }}</th>
  115. <th width="6%">{{ __('auto.注册日期') }}({{ __('auto.当地') }})</th>
  116. {{-- <th width="6%">{{ __('auto.注册日期') }}({{ __('auto.中国') }})</th>--}}
  117. <th width="6%">{{ __('auto.渠道名称') }}</th>
  118. <th width="6%">{{ __('auto.账号') }}</th>
  119. <th width="6%">{{ __('auto.账号状态') }}</th>
  120. <th width="6%">{{ __('auto.设置') }}</th>
  121. </tr>
  122. </thead>
  123. <tbody class="search_checkbox">
  124. @foreach($list as $k=>$item)
  125. <tr>
  126. <td>
  127. <input class="form-control" type="checkbox" name="checkbox"
  128. id="{{$item->UserID}}" value="">
  129. </td>
  130. <td>
  131. <a href="/admin/global/id_find?UserID={{$item->UserID}}">
  132. {{$item->UserID}}
  133. </a>
  134. </td>
  135. <td>{{$item->Compellation}}</td>
  136. <td>{{$item->RegisterMobile}}</td>
  137. <td>{{$item->RegisterIP}}</td>
  138. <td>{{$item->Score}}</td>
  139. {{-- <td>{{$item->SpreaderID}}</td>--}}
  140. {{-- <td>{{$item->MemberOrder}}</td>--}}
  141. {{-- <td>{{ __('auto.无法统计') }}</td>--}}
  142. <td>
  143. @if($item->ServerName != null)
  144. {{ __('auto.在线') }}($item->ServerName)
  145. @elseif($item->LastLogonDate >= now())
  146. {{ __('auto.在线') }}({{ __('auto.大厅') }})
  147. @else
  148. {{ __('auto.离线') }}
  149. @endif
  150. </td>
  151. <td>{{ date('Y-m-d H:i:s',strtotime($item->RegisterDate))}}</td>
  152. {{-- <td>{{ dateConvert($item->RegisterDate) }}</td>--}}
  153. <td>{{$item->Channel}}</td>
  154. <td>{{$item->Accounts}}</td>
  155. <td>
  156. @if($item->Nullity==0)
  157. {{ __('auto.正常') }}
  158. @else
  159. {{ __('auto.封禁') }}
  160. @endif
  161. </td>
  162. <td>
  163. <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text"
  164. onclick="update({{$item->UserID}})">
  165. {{ __('auto.修改') }}
  166. <i class="mdi mdi-file-check btn-icon-append"></i>
  167. </button>
  168. </td>
  169. </tr>
  170. @endforeach
  171. </tbody>
  172. </table>
  173. <div class="box-footer clearfix" id="pages">
  174. {{ __('auto.总共') }} <b>{{ $list->appends([
  175. 'list'=>$list,
  176. 'UserID'=>$UserID,
  177. 'RegisterMobile'=>$RegisterMobile,
  178. 'SpreaderID'=>$SpreaderID,
  179. 'Compellation'=>$Compellation,
  180. 'start_time'=>$start_time,
  181. 'end_time'=>$end_time,
  182. 'obj'=>$obj,
  183. 'vip'=>$vip
  184. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  185. {!! $list->links() !!}
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. <script>
  194. var search_arr = [];
  195. function update(id) {
  196. var page = layer.open({
  197. type: 2,
  198. title: '{{ __('auto.修改配置') }}',
  199. shadeClose: true,
  200. shade: 0.8,
  201. area: ['70%', '90%'],
  202. content: '/admin/global/user_update?id=' + id
  203. });
  204. }
  205. function del(id) {
  206. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?", function () {
  207. myRequest("/admin/accusation/del/" + id, "post", {}, function (res) {
  208. layer.msg(res.msg)
  209. setTimeout(function () {
  210. window.location.reload();
  211. }, 1500)
  212. });
  213. });
  214. }
  215. function checkbox() {
  216. var num = document.getElementsByName('checkbox');
  217. for (var i = 0; i < num.length; i++) {
  218. if (num[i].checked) {
  219. num[i].checked = false;
  220. } else {
  221. num[i].checked = true;
  222. }
  223. }
  224. }
  225. function ban(ban) {
  226. //1封号 2解封
  227. var num = document.getElementsByName('checkbox');
  228. var str = '';
  229. for (var i = 0; i < num.length; i++) {
  230. if (num[i].checked) {
  231. str = str + num[i].id + ',';
  232. }
  233. }
  234. if (str == '') {
  235. alert('{{ __('auto.请选择要操作的数据') }}');
  236. return false;
  237. }
  238. var id = str.substr(0, str.length - 1);
  239. myConfirm("{{ __('auto.是否继续账户操作') }}?", function () {
  240. myRequest("/admin/global/ban", "post", {id: id, ban: ban}, function (res) {
  241. layer.msg(res.msg)
  242. setTimeout(function () {
  243. window.location.reload();
  244. }, 1500)
  245. });
  246. });
  247. return false;
  248. }
  249. function search(value) {
  250. $.ajax({
  251. type: "post",
  252. url: "/admin/global/userlist",
  253. headers: {
  254. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  255. },
  256. data: {search: search_arr},
  257. success: function (msg) {
  258. if (msg) {
  259. $(".main-panel").html(msg)
  260. }
  261. }
  262. })
  263. }
  264. </script>