63 lines
3.2 KiB
PHP
63 lines
3.2 KiB
PHP
<div class="pageHeader">
|
|
<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="{{ url()->current() }}" method="get">
|
|
</form>
|
|
</div>
|
|
|
|
<div class="pageContent">
|
|
<div class="panelBar">
|
|
<ul class="toolBar">
|
|
<!-- <li><a class="add" href="{{ route('Admin.lottery.create') }}" mask="true" width="480" height="350" target="dialog" rel="dialog_{{ time() }}" title="创建抽奖" ><span>创建抽奖</span></a></li> -->
|
|
</ul>
|
|
</div>
|
|
|
|
<table class="table" width="100%" layoutH="112">
|
|
<thead>
|
|
<tr>
|
|
<th width="50">编号</th>
|
|
<th width="200">标题</th>
|
|
<th width="100">状态</th>
|
|
<th width="120">开始时间</th>
|
|
<th width="120">结束时间</th>
|
|
<th width="120" orderField="created_at" @if (Request::input('orderField') == 'created_at') class="{{ Request::input('orderDirection') }}" @endif>创建时间</th>
|
|
<th width="200"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($lists as $lottery)
|
|
<tr>
|
|
<td>{{ $lottery->id }}</td>
|
|
<td>{{ $lottery->title }}</td>
|
|
<td>{{ $lottery->status_text }}</td>
|
|
<td>{{ $lottery->start_at }}</td>
|
|
<td>{{ $lottery->end_at }}</td>
|
|
<td>{{ $lottery->created_at }}</td>
|
|
<td>
|
|
<a title="编辑" target="dialog" href="{{ route('Admin.lottery.edit', $lottery) }}" width="650" height="390" rel="dialog_{{ time() }}" >编辑</a>
|
|
<a title="记录" target="dialog" href="{{ route('Admin.lottery.logs', $lottery) }}" width="800" height="600" rel="dialog_{{ time() }}" >记录</a>
|
|
<a title="奖品管理" target="navTab" href="{{ route('Admin.lottery.gifts', $lottery) }}" width="800" height="600" rel="navTab_{{ time() }}" >奖品管理</a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="panelBar">
|
|
<form id="pagerForm" method="post" action="#rel#">
|
|
<input type="hidden" name="page" value="{{ $lists->currentPage() }}" />
|
|
<input type="hidden" name="numPerPage" value="{{ $lists->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 ($lists->perPage() == 30) selected @endif value="30">30</option>
|
|
<option @if ($lists->perPage() == 100) selected @endif value="100">100</option>
|
|
<option @if ($lists->perPage() == 200) selected @endif value="200">200</option>
|
|
</select>
|
|
<span>条,共 {{ $lists->total() }} 条</span>
|
|
</div>
|
|
<div class="pagination" targetType="navTab" totalCount="{{ $lists->total() }}" numPerPage="{{ $lists->perPage() }}" pageNumShown="10" currentPage="{{ $lists->currentPage() }}"></div>
|
|
</div>
|
|
</div>
|