100 lines
5.4 KiB
PHP
100 lines
5.4 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.lessons.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="140">所属地域</th>
|
|
<th width="140">分类</th>
|
|
<th width="80">章节数</th>
|
|
<th width="80">价格</th>
|
|
<th width="80">状态</th>
|
|
<th width="80">库存</th>
|
|
<th width="80">报名人数</th>
|
|
<th width="150">适合基础</th>
|
|
<th width="80">适合年龄</th>
|
|
<th width="80">上课人数</th>
|
|
<th width="80" orderField="start_at" @if (Request::input('orderField') == 'start_at') class="{{ Request::input('orderDirection') }}" @endif>开始时间</th>
|
|
<th width="150" orderField="end_at" @if (Request::input('orderField') == 'end_at') class="{{ Request::input('orderDirection') }}" @endif>结束时间</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 $lesson)
|
|
<tr target="sid" rel="{{ $lesson->id }}">
|
|
<td>{{ $lesson->id }}</td>
|
|
<td>{{ $lesson->title }}</td>
|
|
<td>{{ $lesson->organ->name }}</td>
|
|
<td>{{ $lesson->organ->Area->info??'' }}</td>
|
|
<td>{{ $lesson->category->title }}</td>
|
|
<td>{{ $lesson->chapter }}</td>
|
|
<td>{{ $lesson->price }}</td>
|
|
<td>{!! $lesson->status_text !!}</td>
|
|
<td>{{ $lesson->stock }}</td>
|
|
<td> <a href="{{ route('Admin.lessons.logs',$lesson) }}" mask="true" target="navTab" rel="navTab_{{ time() }}" ><span>{{ $lesson->logs()->where('status',1)->count() }}</span></a></td>
|
|
<td>{{ $lesson->crowd }}</td>
|
|
<td>{{ $lesson->crowd_age }}</td>
|
|
<td>{{ $lesson->maximum }}</td>
|
|
<td>{{ $lesson->start_at }}</td>
|
|
<td>{{ $lesson->end_at }}</td>
|
|
<td>{{ $lesson->created_at }}</td>
|
|
<td>
|
|
<a title="编辑课程" target="navTab" rel="listshow" href="{{ route('Admin.lessons.edit', $lesson) }}">编辑</a>
|
|
<a title="请确认要删除课程吗?" target="ajaxDelete" href="{{ route('Admin.lessons.delete', $lesson) }}">删除</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>
|