| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <include file="public@header"/>
- </head>
- <body>
- <div class="wrap js-check-wrap">
- <ul class="nav nav-tabs">
- <li class="active"><a href="javascript:;">茶室预约列表</a></li>
- </ul>
- <form class="well form-inline margin-top-20" method="post" action="{:url('AdminLockBook/index')}">
- 状态:
- <select class="form-control" name="is_use" style="width: 140px;">
- <option value=''>全部</option>
- <option value='1' <eq name="is_use" value="1">selected</eq>>到场</option>
- <option value='2' <eq name="is_use" value="2">selected</eq>>未到场</option>
- </select>
- 茶室名:
- <input type="text" class="form-control" name="lock_name" style="width: 200px;"
- value="{$lock_name|default=''}" placeholder="请输入茶室名...">
- 用户名:
- <input type="text" class="form-control" name="user_name" style="width: 200px;"
- value="{$user_name|default=''}" placeholder="请输入用户名...">
- <input type="submit" class="btn btn-primary" value="搜索"/>
- <a class="btn btn-danger" href="{:url('AdminLockBook/index')}">清空</a>
- </form>
- <form class="js-ajax-form" action="" method="post">
- <div class="table-actions">
- <button class="btn btn-primary btn-sm set_status">置为到场</button>
- </div>
- <table class="table table-hover table-bordered table-list">
- <thead>
- <tr>
- <th width="15">
- <label>
- <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
- </label>
- </th>
- <th width="50">ID</th>
- <th width="200">茶室名称</th>
- <th width="120">用户名</th>
- <th width="200">开始时间</th>
- <th width="200">结束时间</th>
- <th width="200">预约时间</th>
- <th width="120">状态</th>
- </tr>
- </thead>
- <foreach name="list" item="vo">
- <tr>
- <td>
- <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids"
- value="{$vo.id}" title="ID:{$vo.id}">
- </td>
- <td><b>{$vo.id}</b></td>
- <td>{$vo.lock_name}</td>
- <td>{$vo.user_name}</td>
- <td>{:date('Y-m-d H:i:s',$vo['start_time'])}</td>
- <td>{:date('Y-m-d H:i:s',$vo['end_time'])}</td>
- <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
- <td>{$vo.is_use_text}</td>
- </tr>
- </foreach>
- </table>
- <ul class="pagination">{$page|default=''}</ul>
- </form>
- </div>
- <script src="__STATIC__/js/admin.js"></script>
- <script>
- function reloadPage(win) {
- win.location.reload();
- }
- $('.set_status').click(function () {
- var arr = [];
- $('input[name="ids"]:checked').each(function(i){
- arr[i] = $(this).val();
- });
- Wind.css('layer');
- Wind.use("layer", function () {
- if (arr.length === 0) {
- layer.msg('请选择一条记录');
- return false;
- }
- $.post('{:url("setStatus")}',{ids:arr},function(data){
- reloadPage(window);
- },'json')
- });
- return false;
- });
- </script>
- </body>
- </html>
|