0
0

更新代码

This commit is contained in:
2020-08-04 10:09:42 +08:00
parent 6118b5b63b
commit c2ac5d964e
478 changed files with 34410 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
<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>