103 lines
5.0 KiB
PHP
103 lines
5.0 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>
|
|
类型:
|
|
<select name="rule_id">
|
|
<option value="" @if(Request::input('rule_id')=="") selected @endif>账户变更类型</option>
|
|
@foreach ($rules as $key => $rule)
|
|
<option value="{{ $rule->id }}" @if(Request::input('rule_id')==$rule->id) selected @endif>{{ $rule->title }}</option>
|
|
|
|
@endforeach
|
|
</select>
|
|
</td>
|
|
<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="85">
|
|
<thead>
|
|
<tr>
|
|
<th width="50">编号</th>
|
|
<th width="100">用户手机号</th>
|
|
<th width="100">用户昵称</th>
|
|
<th width="150">规则名称</th>
|
|
<th width="60">账户类型</th>
|
|
<th width="100">变动数额</th>
|
|
<th width="100">当期余额</th>
|
|
<th width="60">冻结</th>
|
|
<th width="">备注</th>
|
|
<th width="120" orderField="created_at" @if (Request::input('orderField') == 'created_at') class="{{ Request::input('orderDirection') }}" @endif>创建时间</th>
|
|
<th width="120" orderField="updated_at" @if (Request::input('orderField') == 'updated_at') class="{{ Request::input('orderDirection') }}" @endif>更新时间</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($logs as $log)
|
|
<tr>
|
|
<td>{{ $log->id }}</td>
|
|
<td>{{ $log->user->mobile }}</td>
|
|
<td>{{ $log->user->info->nickname }}</td>
|
|
<td>{{ $log->rule->title }}</td>
|
|
<td>{{ $log->type }}</td>
|
|
<td>{{ $log->variable }}</td>
|
|
<td>{{ $log->balance }}</td>
|
|
<td>{{ $log->frozen }}</td>
|
|
<td>@json($log->source)</td>
|
|
<td>{{ $log->created_at }}</td>
|
|
<td>{{ $log->updated_at }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="panelBar">
|
|
<form id="pagerForm" method="post" action="#rel#">
|
|
<input type="hidden" name="page" value="{{ $logs->currentPage() }}" />
|
|
<input type="hidden" name="numPerPage" value="{{ $logs->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 ($logs->perPage() == 30) selected @endif value="30">30</option>
|
|
<option @if ($logs->perPage() == 100) selected @endif value="100">100</option>
|
|
<option @if ($logs->perPage() == 200) selected @endif value="200">200</option>
|
|
</select>
|
|
<span>条,共 {{ $logs->total() }} 条</span>
|
|
</div>
|
|
<div class="pagination" targetType="navTab" totalCount="{{ $logs->total() }}" numPerPage="{{ $logs->perPage() }}" pageNumShown="10" currentPage="{{ $logs->currentPage() }}"></div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
|
|
//点击导出
|
|
$('.export-data').click(function (event) {
|
|
location.href = "{{ route('Admin.export.logs') }}?" + $(this).parents('form').serialize();
|
|
});
|
|
|
|
</script>
|