59 lines
2.5 KiB
HTML
59 lines
2.5 KiB
HTML
|
{layout name="manager/layout" /}
|
||
|
|
||
|
<div class="layui-card layui-col-md12">
|
||
|
<div class="layui-card-body">
|
||
|
<div class="layui-col-xs12 between-center">
|
||
|
<div class="layui-inline">
|
||
|
<a id="add-article" class="layui-btn layui-btn-normal" data-href="{:url('manager.position/add',['category_id'=>$category['id']])}" title="添加职位" data-width="1000"><i class="layui-icon layui-icon-add-1"></i>添加职位</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="layui-clear"></div>
|
||
|
<hr style="margin: 20px 0;">
|
||
|
|
||
|
{empty name="items"}
|
||
|
无记录
|
||
|
{else /}
|
||
|
<table class="layui-table">
|
||
|
<colgroup>
|
||
|
<col >
|
||
|
<col width="75px">
|
||
|
<col width="410px">
|
||
|
</colgroup>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<td>职位标题</td>
|
||
|
<td>职位人数</td>
|
||
|
<td>状态</td>
|
||
|
<td>操作</td>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
{foreach $items as $item}
|
||
|
<tbody class="table-lv1" data-id="{$item.id}" data-url="{:url('manager.position/sort')}">
|
||
|
<tr>
|
||
|
<td>{$item.title}</td>
|
||
|
<td>{$item.num}</td>
|
||
|
<td>{:$item.visible == 0 ? '<span class="text-warning">隐藏</span>' : '<span class="text-green">正常</span>'}</td>
|
||
|
<td >
|
||
|
<a class="sort layui-btn layui-btn-primary layui-btn-xs" data-id="{$item.id}" data-sort="up" data-url="{:url('manager.position/sort')}" href="javascript:void(0);">
|
||
|
<i class=""></i>向上
|
||
|
</a>
|
||
|
<a class="sort layui-btn layui-btn-primary layui-btn-xs" data-id="{$item.id}" data-sort="down" data-url="{:url('manager.position/sort')}" href="javascript:void(0);">
|
||
|
<i class=""></i>向下
|
||
|
</a>
|
||
|
<a data-href="{:url('manager.position/edit',['id' => $item['id']])}" class="layui-btn layui-btn-warm layui-btn-xs" title="编辑">
|
||
|
<i class=""></i>编辑
|
||
|
</a>
|
||
|
<a class="del layui-btn layui-btn-danger layui-btn-xs" data-id="{$item.id}" data-url="{:url('manager.position/del')}" href="javascript:void(0);" >
|
||
|
<i class=""></i>删除
|
||
|
</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
{/foreach}
|
||
|
</table>
|
||
|
|
||
|
<div class="page top30">{$items->render()|raw}</div>
|
||
|
{/empty}
|
||
|
</div>
|
||
|
</div>
|