50 lines
2.2 KiB
PHP
50 lines
2.2 KiB
PHP
<div class="pageHeader">
|
|
<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="{{ url()->current() }}" method="get">
|
|
</form>
|
|
</div>
|
|
|
|
<div class="pageContent">
|
|
|
|
<table class="table" width="100%" layoutH="112">
|
|
<thead>
|
|
<tr>
|
|
<th width="50">编号</th>
|
|
<th width="200">活动名称</th>
|
|
<th width="150">用户</th>
|
|
<th width="120">奖品</th>
|
|
<th width="120" orderField="created_at" @if (Request::input('orderField') == 'created_at') class="{{ Request::input('orderDirection') }}" @endif>抽奖时间</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($logs as $log)
|
|
<tr>
|
|
<td>{{ $log->id }}</td>
|
|
<td>{{ $log->lottery->title }}</td>
|
|
<td>{{ $log->user->info->nickname }}</td>
|
|
<td>{{ $log->gift->item->getTitle() }}</td>
|
|
<td>{{ $log->created_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>
|