77 lines
3.9 KiB
PHP
77 lines
3.9 KiB
PHP
<div class="pageHeader">
|
||
<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="{{ url()->current() }}" method="get">
|
||
<div class="searchBar">
|
||
<table class="searchContent">
|
||
</table>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
|
||
<div class="pageContent">
|
||
<div class="panelBar">
|
||
<ul class="toolBar">
|
||
<li>
|
||
<a class="add" href="{{ route('Admin.lottery.addgifts',['lottery'=>$lottery,'type'=>'goods']) }}" mask="true" width="600" height="400" target="dialog" rel="dialog_{{ time() }}" title="添加奖品" ><span>添加奖品(商品)</span></a>
|
||
</li>
|
||
<li>
|
||
<a class="add" href="{{ route('Admin.lottery.addgifts',['lottery'=>$lottery,'type'=>'coupon']) }}" mask="true" width="600" height="400" target="dialog" rel="dialog_{{ time() }}" title="添加奖品" ><span>添加奖品(优惠券)</span></a>
|
||
</li>
|
||
<li>
|
||
<a class="add" href="{{ route('Admin.lottery.addgifts',['lottery'=>$lottery,'type'=>'activity']) }}" mask="true" width="600" height="400" 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="">奖品</th>
|
||
<th width="">奖项</th>
|
||
<th width="">概率</th>
|
||
<th width="">类型</th>
|
||
<th width="">所属</th>
|
||
<th width="">数量</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 $gift)
|
||
<tr>
|
||
<td>{{ $gift->id }}</td>
|
||
<td>{{ $gift->getTitle() }}</td>
|
||
<td>{{ $gift->level_text }}</td>
|
||
<td>{{ $gift->chance }}({{ $gift->chance_text }}%)</td>
|
||
<td>{{ $gift->type_text }}</td>
|
||
<td>{{ $gift->class }}</td>
|
||
<td>{{ $gift->number }}</td>
|
||
<td>{{ $gift->created_at }}</td>
|
||
<td>
|
||
<a title="编辑" target="dialog" href="{{ route('Admin.lottery.editgifts', $gift) }}" width="650" height="390" rel="dialog_{{ time() }}" >编辑</a>
|
||
<a title="请确认要删除吗?" target="ajaxDelete" href="{{ route('Admin.lottery.delgifts', $gift) }}">删除</a>
|
||
</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>
|