115 lines
5.8 KiB
PHP
115 lines
5.8 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>
|
|
<select class="combox" name="psn">
|
|
<option value="">全部</option>
|
|
@foreach($list as $area)
|
|
<option value="{{ $area['sn'] }}" @if (Request::input('psn') == $area['sn']) selected @endif>{{ $area['title_show'] }}</option>
|
|
@endforeach
|
|
</select>
|
|
</td>
|
|
<td>
|
|
地区名称:
|
|
<input type="text" name="info" value="{{ Request::input('info') }}"/>
|
|
</td>
|
|
<td>
|
|
<select class="combox" name="type">
|
|
<option value="">类型</option>
|
|
<option @if (Request::input('type') == '省级') selected @endif value="省级">省级</option>
|
|
<option @if (Request::input('type') == '地级') selected @endif value="地级">地级</option>
|
|
<option @if (Request::input('type') == '县级') selected @endif value="县级">县级</option>
|
|
</select>
|
|
</td>
|
|
<td>
|
|
<select class="combox" name="status">
|
|
<option value="">状态</option>
|
|
<option @if (Request::input('status') == 1) selected @endif value="1">已开通</option>
|
|
<option @if (Request::input('status') === 0) selected @endif value="0">未开通</option>
|
|
</select>
|
|
</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.areas.create') }}" mask="true" rel="dialog_{{ time() }}" target="dialog" width="800" height="600" title="添加"><span>添加</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<table class="table" width="100%" layoutH="112">
|
|
<thead>
|
|
<tr>
|
|
<th width="22"><input type="checkbox" group="ids[]" class="checkboxCtrl"></th>
|
|
<th width="120">省份名称</th>
|
|
<th width="120">市名称</th>
|
|
<th width="120">区名称</th>
|
|
<th width="60">类型</th>
|
|
<th width="80">状态</th>
|
|
<th width="80">热门</th>
|
|
<th width="120">更新时间</th>
|
|
<th width=""></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($areas as $area)
|
|
<tr>
|
|
<td><input name="ids[]" value="{{ $area->id }}" type="checkbox"></td>
|
|
<td>{{ $area->province }}</td>
|
|
<td> {{ $area->city }} </td>
|
|
<td>{{ $area->area }}</td>
|
|
<td>{{ $area->type }}</td>
|
|
<td>{{ $area->status_text }}</td>
|
|
<td>{!! $area->hot_text !!}</td>
|
|
<td>{{ $area->updated_at }}</td>
|
|
<td>
|
|
@if($area->status!=1)
|
|
<a title="开通区域" target="ajaxDelete" href="{{ route('Admin.areas.open', ['area'=>$area,'status'=>1]) }}" style="color: blue">开通</a>
|
|
@else
|
|
<a title="取消开通区域" target="ajaxDelete" href="{{ route('Admin.areas.open', ['area'=>$area,'status'=>0]) }}" style="color: grey" >关闭区域</a>
|
|
@endif
|
|
|
|
@if($area->depth==2)
|
|
@if($area->hot==1)
|
|
<a title="取消热门" target="ajaxTodo" href="{{ route('Admin.areas.hot', ['area'=>$area,'hot'=>0]) }}" style="color: blue">取消热门</a>
|
|
@else
|
|
<a title="设置热门" target="ajaxTodo" href="{{ route('Admin.areas.hot', ['area'=>$area,'hot'=>1]) }}" style="color: blue">开通热门</a>
|
|
@endif
|
|
@endif
|
|
|
|
@if($area->depth>2)
|
|
<a title="编辑" target="dialog" href="{{ route('Admin.areas.edit', $area) }}" rel="dialog{{ time() }}" mask="true" width="800" height="600">编辑</a>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="panelBar">
|
|
<form id="pagerForm" method="post" action="#rel#">
|
|
<input type="hidden" name="page" value="{{ $areas->currentPage() }}" />
|
|
<input type="hidden" name="numPerPage" value="{{ $areas->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 ($areas->perPage() == 30) selected @endif value="30">30</option>
|
|
<option @if ($areas->perPage() == 100) selected @endif value="100">100</option>
|
|
<option @if ($areas->perPage() == 200) selected @endif value="200">200</option>
|
|
</select>
|
|
<span>条,共 {{ $areas->total() }} 条</span>
|
|
</div>
|
|
<div class="pagination" targetType="navTab" totalCount="{{ $areas->total() }}" numPerPage="{{ $areas->perPage() }}" pageNumShown="10" currentPage="{{ $areas->currentPage() }}"></div>
|
|
</div>
|
|
</div>
|