qingjian/view/manager/desk/index.html

73 lines
3.4 KiB
HTML

{php}
use app\service\Image as CImage;
{/php}
{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">
当前大厅:---- {$hall['title']} ----
<a id="add-article" class="layui-btn layui-btn-normal" data-href="{:url('manager.desk/add',['hall_id'=>$hall_id])}" title="添加" data-width="1300"><i class="layui-icon layui-icon-add-1"></i>添加内容</a>
</div>
<form class="layui-form search-form" action="{:url('manager.desk/index')}" method="get">
<input type="hidden" name="__token__" value="{$_token}" />
<div class="layui-row">
<div class="layui-inline">
<div class="layui-inline" >
<div class="layui-input-inline">
<input type="text" name="keyword" value="{$keyword??''}" class="layui-input search-input" placeholder="请输入关键字"/>
</div>
</div>
<div class="layui-inline" >
<div class="layui-input-inline" style="width:auto">
<input type="submit" class="layui-btn layui-btn-normal" value="搜索" />
</div>
</div>
</div>
</div>
</form>
</div>
<div class="layui-clear"></div>
<hr style="margin: 20px 0;">
<table class="layui-table layui-form layui-table-nobrder" id="check_box">
<colgroup>
<col width="15px" >
<col width="150px">
<col >
<col width="145px">
<col width="370px">
</colgroup>
<thead>
<td><input type="checkbox" lay-skin="primary" lay-filter="parents-table" title=""/></td>
<td>桌号</td>
<td>乘坐人数</td>
<td>状态</td>
<td>操作</td>
</thead>
{foreach name="list" item="item"}
<tr class="select_box ">
<td><input type="checkbox" name="checkbox" value="{$item.id}" lay-skin="primary" lay-filter="childrens-table"/></td>
<td>{$item.number}</td>
<td>{$item.type}</td>
<td>
{$item.show=='yes' ? '<span class="text-green">正常</span>':'<span class="text-warning">隐藏</span>'}
</td>
<td>
<div style="width: 340px;">
<a class="layui-btn layui-btn-warm layui-btn-xs" data-state="edit" data-href="{:url('manager.desk/edit',['id' => $item['id']])}" title="编辑" data-width="1300">
<i class=""></i>编辑
</a>
<a class="del layui-btn layui-btn-danger layui-btn-xs" data-url="{:url('manager.desk/del')}" data-id="{$item['id']}" href="javascript:void(0);">
<i class=""></i>删除
</a>
</div>
</td>
</tr>
{/foreach}
</table>
<div class="page top30">{$list->render()|raw}</div>
</div>
</div>