| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 | {extend name="common/common2" /}{block name="main"}<div class="ibox">    <div class="ibox-content">        <div class="row">            <div class="col-xs-12" style="text-align: right;">                <form class="form-inline" id="form-search" action="{:url('index')}">                    <div class="input-group">                        <input type="text" class="form-control" name="sn" placeholder="商品单号">                    </div>                    <div class="input-group">                        <input class="form-control" id="start" readonly placeholder="开始时间" name="start" >                    </div>                    <div class="input-group">                        <input class="form-control" id="end" readonly placeholder="结束时间" name="end" >                    </div>                    <div class="input-group">                        <span class="input-group-btn">                            <button class="btn-sm btn-primary" type="button" id ="search-btn" ><i class="fa fa-search"></i></button>                        </span>                        <span class="input-group-btn">                            <button class="btn-sm btn-primary " type="button" id="search-clear"><i class="fa fa-undo"></i></button>                        </span>                    </div>                </form>            </div>        </div>    </div>    <div class="ibox-content">        <div class="jqGrid_wrapper">            <table id="table" style="border-collapse: collapse"></table>            <div id="pager"></div>        </div>    </div></div>{/block}{block name="script"}<script src="/static/layDate-v5.0.9/laydate.js"></script><script>    $(function () {        laydate.render({            elem: '#start',            trigger: 'click' ,            theme: '#f99c34'        });        laydate.render({            elem: '#end',            trigger: 'click' ,            theme: '#f99c34'        });        $(window).bind("resize",function(){            var width=$(".jqGrid_wrapper").width();            $("#table").setGridWidth(width);        });        $.jgrid.defaults.styleUI="Bootstrap";        $("#table").jqGrid({            url:"{:url('index')}",            datatype: "json",            colModel:[                {label:'商品单号',name:'sn',index:'sn', width:70,sortable: false},                {label:'商品名称',name:'title',index:'title', width:70,sortable: false},                {label:'操作人',name:'userName',index:'userName', width:70,sortable: false},                {label:'调拨人姓名',name:'allotUserName',index:'allotUserName', width:70,sortable: false},                {label:'调拨人部门',name:'allotDepName',index:'allotDepName', width:70,sortable: false},                {label:'操作时间',name:'create_time',index:'create_time', width:70,sortable: false},            ],            rowNum:10,            rowList:[10,20,30,50,100],            pager: '#pager',            sortname: 'sort',            viewrecords: true,            autowidth:true,            mtype: 'post',            height: 'auto',            emptyrecords: "暂无数据",            sortorder: "asc",            caption:"调拨记录列表",            loadComplete: function (xhr) {                if(xhr.code==0){                    layer.msg(xhr.msg);                    return false;                }            },        });    });</script>{/block}
 |