62 lines
3.1 KiB
PHP
62 lines
3.1 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.agencies.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="100">标题</th>
|
|
<th width="100">状态</th>
|
|
<th width="100">管理人</th>
|
|
<th width="100">业务员</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 $agency)
|
|
<tr>
|
|
<td>{{ $agency->id }}</td>
|
|
<td>{{ $agency->name }}</td>
|
|
<td>{!! $agency->status_text !!}</td>
|
|
<td>{{ $agency->user->info->nickname }}</td>
|
|
<td>{{ $agency->salesman->info->nickname }}</td>
|
|
<td>{{ $agency->created_at }}</td>
|
|
<td>
|
|
<a title="编辑" target="dialog" href="{{ route('Admin.agencies.edit', $agency) }}" width="650" height="390" rel="dialog_{{ time() }}" >编辑</a>
|
|
<a title="绑定管理人" target="dialog" href="{{ route('Admin.agencies.user', $agency) }}" width="800" height="600" rel="dialog_{{ 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>
|