<?php
// $cates = app(MOD)->cids(0, 1);
?>

<div class="layuimini-container layuimini-page-anim">
  <div class="layuimini-main">
    <fieldset class="table-search-fieldset">
      <legend>搜索信息</legend>
      <div style="margin: 10px 10px 10px 10px">
        <form class="layui-form layui-form-pane" action="">
          <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">姓名</label>
              <div class="layui-input-inline">
                <input type="text" name="name" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">电话</label>
              <div class="layui-input-inline">
                <input type="text" name="tel" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">抵押物</label>
              <div class="layui-input-inline">
                <input type="text" name="goods" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">日期</label>
              <div class="layui-input-inline" style="width: 100px;">
                <input type="text" name="sdate" id="sdate" autocomplete="off" class="layui-input" value="<?= $_GET['sdate'] ?>">
              </div>
              <div class="layui-form-mid">-</div>
              <div class="layui-input-inline" style="width: 100px;">
                <input type="text" name="edate" id="edate" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-inline">
              <button type="submit" class="layui-btn" lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
            </div>
          </div>
        </form>
      </div>
    </fieldset>
    <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>
    <script type="text/html" id="toolbarDemo">
      <div class="layui-btn-container">
        <button class="layui-btn layui-btn-normal layui-btn-sm data-add-btn" lay-event="add"> 添加 </button>
        <button class="layui-btn layui-btn-danger layui-btn-sm data-add-btn" lay-event="delete"> 批量删除 </button>
      </div>
    </script>
    <script type="text/html" id="currentTableBar">
      <a class="layui-btn layui-btn-xs data-count-edit" lay-event="edit"><i class="layui-icon">&#xe642;</i></a>
      <a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete" lay-event="delete"><i class="layui-icon">&#xe640;</i></a>
    </script>
  </div>
</div>
<script>
  var cols = [
    [{
        type: "checkbox",
        width: 50
      },
      {
        field: 'name',
        title: '姓名',
        width: 150,
      },
      {
        field: 'tel',
        title: '电话',
        width: 150,
      },
      {
        field: 'money',
        title: '需求金额',
        width: 200,
      },
      {
        field: 'goods',
        title: '抵押物描述',
        minWidth: 200,
      },
      {
        field: 'remarks',
        title: '备注',
        minWidth: 200,
      },
      {
        field: 'addtime',
        title: '提交时间',
        minWidth: 200,
      },
      {
        field: 'sort',
        title: '排序',
        edit: true
      },
      {
        title: '操作',
        minWidth: 150,
        toolbar: '#currentTableBar',
        align: "center"
      }
    ]
  ]
</script>
<?
// $duoduo->get_table_desc("article");
$name = "幻灯片";
include(ADMINROOT . '/template/public/list.tpl.php'); //公共模板
?>