0
0
Files
Babyclass/app/Admin/Views/organ/index.blade.php
2020-08-04 10:09:42 +08:00

82 lines
4.1 KiB
PHP

<div class="pageHeader">
<form id="searchForm_{{ uniqid() }}" rel="pagerForm" onsubmit="return navTabSearch(this);" action="{{ url()->current() }}" method="post">
<div class="searchBar">
<table class="searchContent">
<tr>
<td>
机构名称:
<input type="text" name="title" value="{{ Request::input('title') }}"/>
</td>
<td>
起:
<input type="text" name="start" value="{{ Request::get('start') }}" class="date textInput readonly valid" datefmt="yyyy-MM-dd HH:mm:ss" defaulttime="23:59:59" readonly="true">
</td>
<td>
止:
<input type="text" name="end" value="{{ Request::get('end') }}" class="date textInput readonly valid" datefmt="yyyy-MM-dd HH:mm:ss" defaulttime="23:59:59" readonly="true">
</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.organs.create') }}" mask="true" target="navTab" rel="navTab_{{ time() }}" title="添加机构"><span>添加机构</span></a></li>
</ul>
</div>
<table class="table" width="100%" layoutH="112">
<thead>
<tr>
<th width="50">机构编号</th>
<th width="140">机构名称</th>
<th width="140">分类</th>
<th width="80">电话</th>
<th width="80">微信</th>
<th width="150">地址</th>
<th width="100" 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 $org)
<tr target="sid" rel="{{ $org->id }}">
<td>{{ $org->id }}</td>
<td>{{ $org->title }}</td>
<td>{{ $org->category->title }}</td>
<td>{{ $org->mobile }}</td>
<td>{{ $org->wechat }}</td>
<td>{{ $org->all_address }}</td>
<td>{{ $org->created_at }}</td>
<td>
<a title="编辑机构" target="navTab" rel="listshow" href="{{ route('Admin.organs.edit', $org) }}">编辑</a>
<a title="请确认要删除机构吗?" target="ajaxDelete" href="{{ route('Admin.organs.delete', $org) }}">删除</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>