93 lines
4.3 KiB
PHP
93 lines
4.3 KiB
PHP
<div class="pageHeader">
|
|
<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="{{ url()->current() }}" method="post">
|
|
<div class="searchBar">
|
|
<table class="searchContent">
|
|
<tr>
|
|
<td>
|
|
手机号:
|
|
<input type="text" name="mobile" value="{{ Request::input('mobile') }}"/>
|
|
</td>
|
|
<td>
|
|
昵称:
|
|
<input type="text" name="nickname" value="{{ Request::input('nickname') }}"/>
|
|
</td>
|
|
<td>
|
|
起:
|
|
<input type="text" name="start" value="{{ Request::get('start') }}" class="date textInput readonly valid" datefmt="yyyy-MM-dd HH:mm:ss" defaulttime="23:59:59" readonly="true">
|
|
</td>
|
|
<td>
|
|
止:
|
|
<input type="text" name="end" value="{{ Request::get('end') }}" class="date textInput readonly valid" datefmt="yyyy-MM-dd HH:mm:ss" defaulttime="23:59:59" readonly="true">
|
|
</td>
|
|
<td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索结果</button></div></div></td>
|
|
<td><div class="buttonActive"><div class="buttonContent"><button type="button" class="export-data">导出数据</button></div></div></td>
|
|
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="pageContent">
|
|
|
|
|
|
<table class="table" width="100%" layoutH="112">
|
|
<thead>
|
|
<tr>
|
|
<th width="100">手机号</th>
|
|
<th width="100">昵称</th>
|
|
<th width="100">现金账户</th>
|
|
<!-- <th width="100">积分账户</th> -->
|
|
<!-- <th width="100">满仓次数</th> -->
|
|
<!-- <th width="100">备用账户B</th> -->
|
|
<!-- <th width="100">备用账户C</th> -->
|
|
<!-- <th width="100">备用账户D</th> -->
|
|
<th width="120" orderField="created_at" @if (Request::input('orderField') == 'created_at') class="{{ Request::input('orderDirection') }}" @endif>注册时间</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($accounts as $account)
|
|
<tr>
|
|
<td>{{ $account->user->mobile }}</td>
|
|
<td>{{ $account->user->info->nickname }}</td>
|
|
<td>{{ $account->cash }}</td>
|
|
<!-- <td>{{ $account->score }}</td> -->
|
|
<!-- <td>{{ $account->act_a }}</td> -->
|
|
<!-- <td>{{ $account->act_b }}</td> -->
|
|
<!-- <td>{{ $account->act_c }}</td> -->
|
|
<!-- <td>{{ $account->act_d }}</td> -->
|
|
<td>{{ $account->created_at }}</td>
|
|
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="panelBar">
|
|
<form id="pagerForm" method="post" action="#rel#">
|
|
<input type="hidden" name="page" value="{{ $accounts->currentPage() }}" />
|
|
<input type="hidden" name="numPerPage" value="{{ $accounts->perPage() }}" />
|
|
<input type="hidden" name="orderField" value="{{ Request::input('orderField') }}" />
|
|
<input type="hidden" name="orderDirection" value="{{ Request::input('orderDirection') }}" />
|
|
</form>
|
|
<div class="pages">
|
|
<span>显示</span>
|
|
<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
|
|
<option @if ($accounts->perPage() == 30) selected @endif value="30">30</option>
|
|
<option @if ($accounts->perPage() == 100) selected @endif value="100">100</option>
|
|
<option @if ($accounts->perPage() == 200) selected @endif value="200">200</option>
|
|
</select>
|
|
<span>条,共 {{ $accounts->total() }} 条</span>
|
|
</div>
|
|
<div class="pagination" targetType="navTab" totalCount="{{ $accounts->total() }}" numPerPage="{{ $accounts->perPage() }}" pageNumShown="10" currentPage="{{ $accounts->currentPage() }}"></div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
|
|
//点击导出
|
|
$('.export-data').click(function (event) {
|
|
location.href = "{{ route('Admin.export.accounts') }}?" + $(this).parents('form').serialize();
|
|
});
|
|
|
|
</script>
|