76 lines
3.9 KiB
PHP
76 lines
3.9 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>
|
|
自提点名称:
|
|
<input type="text" name="name" size="30" value="{{ Request::input('name') }}"/>
|
|
</td>
|
|
<td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索结果</button></div></div></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="pageContent">
|
|
<div class="panelBar">
|
|
<ul class="toolBar">
|
|
<li><a class="add" href="{{ route('Admin.stations.create') }}" mask="true" rel="dialog_{{ time() }}" target="dialog" width="600" height="460" title="添加自提点"><span>添加自提点</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<table class="table" width="100%" layoutH="112">
|
|
<thead>
|
|
<tr>
|
|
<th width="50" orderField="id" @if (Request::input('orderField') == 'id') class="{{ Request::input('orderDirection') }}" @endif>编号</th>
|
|
<th width="200">商户</th>
|
|
<th width="200">自提点名称</th>
|
|
<th width="200">自提点电话</th>
|
|
<th width="200">自提点地址</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>
|
|
<th width="200">操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($stations as $station)
|
|
<tr>
|
|
<td>{{ $station->id }}</td>
|
|
<td>{{ $station->seller->name ?? '' }}</td>
|
|
<td>{{ $station->name }}</td>
|
|
<td>{{ $station->mobile }}</td>
|
|
<td>{{ $station->address }}</td>
|
|
<td>{{ $station->created_at }}</td>
|
|
<td>{{ $station->updated_at }}</td>
|
|
<td>
|
|
<a title="编辑自提点" target="dialog" href="{{ route('Admin.stations.edit', $station) }}" rel="dialog{{ time() }}" mask="true" width="600" height="460">编辑</a>
|
|
<a title="请确认要删除自提点吗?" target="ajaxDelete" href="{{ route('Admin.stations.destroy', $station) }}" style="color: blue">删除</a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="panelBar">
|
|
<form id="pagerForm" method="post" action="#rel#">
|
|
<input type="hidden" name="page" value="{{ $stations->currentPage() }}" />
|
|
<input type="hidden" name="numPerPage" value="{{ $stations->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 ($stations->perPage() == 30) selected @endif value="30">30</option>
|
|
<option @if ($stations->perPage() == 100) selected @endif value="100">100</option>
|
|
<option @if ($stations->perPage() == 200) selected @endif value="200">200</option>
|
|
</select>
|
|
<span>条,共 {{ $stations->total() }} 条</span>
|
|
</div>
|
|
<div class="pagination" targetType="navTab" totalCount="{{ $stations->total() }}" numPerPage="{{ $stations->perPage() }}" pageNumShown="10" currentPage="{{ $stations->currentPage() }}"></div>
|
|
</div>
|
|
</div>
|