123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- @extends('admin/master')
- @section('content')
- <body class="pos-r">
- @if(session('info'))
- <div class="Huialert Huialert-info" onclick="$(this).remove()">
- {{session('info')}}
- </div>
- @endif
- <div>
- <div class="page-container">
- <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="r">共有数据:<strong>{{$count}}</strong> 条</span> </div>
- <div style="float:right;margin:10px;">
- <label >是否完成注册:</label>
- <select name="phone_verified" id="" style="width: 100px;height: 30px">
- <option value="all">请选择</option>
- <option value="0" @if(session('phone_verified') == '0') selected @endif>未完成</option>
- <option value="1" @if(session('phone_verified') == '1') selected @endif>已完成</option>
- </select>
- <!-- <label>渠道号:</label>
- <input type="text" class="input-text" style="width:80px;" value="@if(isset($qudao)){{$qudao}}@endif" placeholder="" id="qudao" name="qudao"> -->
- <label>开始时间:</label>
- <input type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss' })" id="stime" class="input-text Wdate" style="width:180px;" name="stime" value="{{session('s_timestamp')}}">
- <label>结束时间:</label>
- <input type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss' })" id="etime" class="input-text Wdate" style="width:180px;" name="etime" value="{{session('e_timestamp')}}">
- <a class="btn btn-primary radius" onclick="user_search()" href="javascript:;">检索</a>
- <a class="btn btn-primary radius" onclick="user_export()" href="javascript:;">导出</a>
- </div>
- <div class="mt-20">
- <table class="table table-border table-bordered table-bg table-hover table-sort">
- <thead>
- <tr class="text-c">
- <th width="20">ID</th>
- <th width="20">注册时间</th>
- <th width="20">用户名</th>
- <th width="20">手机号</th>
- </tr>
- </thead>
- <tbody>
- @foreach($users as $user)
- <tr class="text-c va-m" title="">
- <td class="text-l">{{$user['id']}}</td>
- <td class="text-l">{{$user['created_at']}}</td>
- <td class="text-l">@if(($user['name'])) {{$user['name']}} @else 用户名未填写 @endif</td>
- <td class="text-l">@if($user['mobile']) {{$user['mobile']}} @else 用户未填写 @endif</td>
- </tr>
- @endforeach
- </tbody>
- </table>
- </div>
- <div style="float: right;">
- <?php
- $presenter = new Illuminate\Pagination\BootstrapThreePresenter($users);
- ?>
- <div class="am-fr" style="position:relative; top: 30px;">
- <ul class="am-pagination">
- <?php echo $presenter->render(); ?>
- </ul>
- </div>
- </div>
- <br><br><br>
- </div>
- </div>
- <!--_footer 作为公共模版分离出去-->
- <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
- <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
- <!--/_footer 作为公共模版分离出去-->
- <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
- <script type="text/javascript">
- function user_search(){
- var qudao = $("#qudao").val() == ''? 'all' : $("#qudao").val();
- var s_datetime = $("#stime").val();
- var s_timestamp = Date.parse(new Date(s_datetime));
- s_timestamp = s_timestamp /1000;
- var e_datetime = $("#etime").val();
- var e_timestamp = Date.parse(new Date(e_datetime));
- e_timestamp = e_timestamp /1000;
- s_timestamp = isNaN(s_timestamp) ? 'all' : s_timestamp;
- e_timestamp = isNaN(e_timestamp) ? 'all' : e_timestamp;
- var phone_verified = $("select[name='phone_verified']").val();
- window.location.href="/admin/user/index/"+s_timestamp+"/"+e_timestamp+"/"+qudao+"/"+phone_verified;
- }
- function user_export(){
- var qudao = $("#qudao").val() == ''? 'all' : $("#qudao").val();
- var s_datetime = $("#stime").val();
- var s_timestamp = Date.parse(new Date(s_datetime));
- s_timestamp = s_timestamp /1000;
- var e_datetime = $("#etime").val();
- var e_timestamp = Date.parse(new Date(e_datetime));
- e_timestamp = e_timestamp /1000;
- if (isNaN(s_timestamp) && isNaN(e_timestamp) ) {
- alert('请选择合适的日期!')
- return
- }
- s_timestamp = isNaN(s_timestamp) ? 'all' : s_timestamp;
- e_timestamp = isNaN(e_timestamp) ? 'all' : e_timestamp;
- var phone_verified = $("select[name='phone_verified']").val();
- window.location.href="/admin/user/export/"+s_timestamp+"/"+e_timestamp+"/"+qudao+"/"+phone_verified;
- }
- </script>
- </body>
- @endsection
|