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

70 lines
3.3 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="title" value="{{ Request::input('title') }}" placeholder=""/>
</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.teachers.create') }}" mask="true" target="dialog" rel="dialog_{{ time() }}" width="800" height="600" 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="100">教龄</th>
<th width="100">所属机构</th>
<th width="140" orderField="created_at" @if (Request::input('orderField') == 'created_at') class="{{ Request::input('orderDirection') }}" @endif>创建时间</th>
<th width="120"></th>
</tr>
</thead>
<tbody>
@foreach ($teachers as $teacher)
<tr>
<td>{{ $teacher->id }}</td>
<td>{{ $teacher->name }}</td>
<td>{{ $teacher->school_age }}</td>
<td>{{ $teacher->seller->name }}</td>
<td>{{ $teacher->created_at }}</td>
<td>
<a title="编辑教师" target="dialog" href="{{ route('Admin.teachers.edit', $teacher) }}" rel="dialog_{{ time() }}" width="800" height="600" >编辑</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="panelBar">
<form id="pagerForm" method="post" action="#rel#">
<input type="hidden" name="page" value="{{ $teachers->currentPage() }}" />
<input type="hidden" name="numPerPage" value="{{ $teachers->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 ($teachers->perPage() == 30) selected @endif value="30">30</option>
<option @if ($teachers->perPage() == 100) selected @endif value="100">100</option>
<option @if ($teachers->perPage() == 200) selected @endif value="200">200</option>
</select>
<span>条,共 {{ $teachers->total() }} </span>
</div>
<div class="pagination" targetType="navTab" totalCount="{{ $teachers->total() }}" numPerPage="{{ $teachers->perPage() }}" pageNumShown="10" currentPage="{{ $teachers->currentPage() }}"></div>
</div>
</div>