<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<%@taglib prefix="pm" uri="/WEB-INF/taglib/guardtag.tld"%>

<link rel="stylesheet" href="${path}/static/css/comm.css"/>

<link rel="stylesheet" href="${path}/static/bootstrap-3.3.7/bower_components/bootstrap/dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="${path}/static/bootstrap-3.3.7/bower_components/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="${path}/static/bootstrap-3.3.7/bower_components/Ionicons/css/ionicons.min.css"/>
<link rel="stylesheet" href="${path}/static/bootstrap-3.3.7/dist/css/AdminLTE.min.css"/>
<link rel="stylesheet" href="${path}/static/bootstrap-3.3.7/dist/css/skins/_all-skins.min.css"/>
<link rel="stylesheet" href="${path}/static/bootstrap-3.3.7/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css"/>
<link rel="stylesheet" href="${path}/static/bootstrap-3.3.7/bower_components/bootstrap-table/bootstrap-table.min.css">
<link rel="stylesheet" href="${path}/static/css/bootstrap-select.min.css">
<link rel="stylesheet" href="${path}/static/js/toastr.min.css" type="text/css">
<link rel="shortcut icon" href="favicon.ico">



<!-- 引入Jquery -->
<script type="text/javascript" src="${path}/static/js/jquery-3.3.1.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="${path}/static/js/jquery-ui.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="${path}/static/bootstrap-3.3.7/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- datepicker -->
<script src="${path}/static/bootstrap-3.3.7/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<!-- AdminLTE App -->
<script src="${path}/static/bootstrap-3.3.7/dist/js/adminlte.min.js"></script>
<script src="${path}/static/bootstrap-3.3.7/bower_components/bootstrap-table/bootstrap-table.js"></script>
<script src="${path}/static/bootstrap-3.3.7/bower_components/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="${path}/static/js/bootstrap-select.min.js"></script>
<script src="${path}/static/js/toastr.min.js"></script>
<script src="${path}/static/js/jquery.form.js"></script>
<script>
    toastr.options.positionClass = 'toast-top-right';
</script>


<script>
    var path = "${path}";
    //回跳表格页码
    function backToPage(){
        refresh();
        setTimeout(function(){
            var pageSize=$('#bootstrapTable').bootstrapTable('getOptions').pageSize;
            var rows=$('#bootstrapTable').bootstrapTable("getOptions").totalRows;
            if((pageSize*(pageNumber-1)) == rows && pageNumber != 1){
                pageNumber -= 1;
            }
            $('#bootstrapTable').bootstrapTable('selectPage', pageNumber);
        },100)
    }
    function toPage() {
        var pageNum = $("#pageNum").val();
        if (pageNum) {
            $('#bootstrapTable').bootstrapTable('selectPage', parseInt(pageNum));
        }
        setTimeout(function(){
            $("#pageNum").val(pageNum)
        },500)
    }
    //重设表格高度
    function reloadTableHeight(tableId) {
        $("#"+tableId+".fixed-table-container").css({ "padding-bottom": "0px", height: $("#"+tableId+".fixed-table-body table").height() + 20 });
        $('#'+tableId).bootstrapTable('resetView', { height: "auto" });
    }
</script>
<%@ include file="/WEB-INF/jspf/confirmJsp.jspf"%>
