{% if data['page']['ajax'] == False %}
<!DOCTYPE html>
<html>
    <head>
        {%include '../inc/header.html'%}
    </head>
    <body>
        <div class="x-nav">
            <span class="layui-breadcrumb">
                {% block breadcrumb %}
                    <a><cite>首页</cite></a>
                    <a><cite><script>document.write(parent.config.parentTitle)</script></cite></a>
                    <a><cite><script>document.write(parent.config.subTitle)</script></cite></a>
                {% end %}
            </span>
            <span id="currentUrl"><script>var cur = parent.config.cur;</script></span>
            <a class="layui-btn layui-btn-small" style="margin-top:3px;float:right"  href="javascript:window.history.back();" title="返回"><i class="layui-icon">&#xe619;</i></a>
        </div>
        <div class="x-body">
            <form class="layui-form x-center" action="{{data['common']['path']}}" style="width:auto">
            <input type="hidden" name="id" id="id" value="{% if data['info'] and 'id' in data['info'] and data['info']['id'] > 0 %}{{data['info']['id']}}{% end %}" />
            <input type="hidden" name="method" id="method" value="{% if 'method' in data and data['method'] %}{{data['method']}}{% end %}" />
                <div class="layui-form-pane" style="margin-top: 15px;">
                  <div class="layui-form-item">
                   {% block search %}
                    <label class="layui-form-label">日期范围</label>
                    <div class="layui-input-inline">
                      <input class="layui-input" placeholder="开始时间" id="LAY_demorange_s" name="search_start">
                    </div>
                    <div class="layui-input-inline">
                      <input class="layui-input" placeholder="截止时间" id="LAY_demorange_e" name="search_end">
                    </div>
                    <div class="layui-input-inline">
                      <input type="text" name="search_name"  placeholder="标题" autocomplete="off" class="layui-input">
                    </div>
                    {% end %}
                    <div class="layui-input-inline" style="width:80px">
                        <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
                    </div>
                  </div>
                </div> 
            </form>
            <div id="main" style="width: 100%;height:400px;"></div>
        </div>
        {%include '../inc/footer.html'%}
        {%include '../inc/script.html'%}
    </body>
<script>
    layui.use(['laydate','element','laypage','layer', 'form'], function(){
$ = layui.jquery;//jquery
lement = layui.element();//面包导航
laypage = layui.laypage;//分页
layer = layui.layer;//弹出层

if ($('.load').length) {
    $('.load').each(function()
    {
        load($(this))
    })
}
if ($('.time').length) {
    laydate = layui.laydate;//日期插件
    var start = {
        //min: laydate.now()
        max: laydate.now()
        ,format: 'YYYY-MM-DD hh:mm:ss'
        ,istoday: true
        ,istime: true
        ,choose: function(datas){
          end.min = datas; //开始日选好后，重置结束日的最小日期
          end.start = datas //将结束日的初始值设定为开始日
        }
    };

    var end = {
        //min: laydate.now()
        max: laydate.now()
        ,format: 'YYYY-MM-DD hh:mm:ss'
        ,istoday: true
        ,istime: true
        ,choose: function(datas){
          start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    $('.time').each(function()
    {
        type = $(this).attr('id').indexOf('start')
        $(this).click(function()
        {
            if (type > -1) {
                start.elem = this;
                laydate(start);
            } else {
                end.elem = this
                laydate(end);
            }
        })
    })
}
});
</script>
    {% block script %}
    {% end %}
</html>
{% end %}