<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!--[if lt IE 9]>
<script type="text/javascript" src="${basePath}/static/js/html5shiv.js"></script>
<script type="text/javascript" src="${basePath}/static/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="${basePath}/static/js/respond.min.js"></script>
<![endif]-->


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

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

<link rel="shortcut icon" href="${basePath}/static/js/favicon.ico">

<script type="text/javascript" src="${basePath}/static/js/jquery-3.3.1.js"></script>
<!-- jQuery UI 1.11.4 -->
<script type="text/javascript" src="${basePath}/static/js/jquery-ui.js"></script>
<!-- Bootstrap 3.3.7 -->
<script type="text/javascript" src="${basePath}/static/bootstrap-3.3.7/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${basePath}/static/bootstrap-3.3.7/bower_components/bootstrap-table/bootstrap-table.js" ></script>
<link rel="stylesheet"
      href="${basePath}/static/bootstrap-3.3.7/bower_components/bootstrap-table/bootstrap-table.min.css"
      type="text/css">
<script type="text/javascript" src="${basePath}/static/bootstrap-3.3.7/bower_components/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<!-- datepicker -->
<script type="text/javascript" src="${basePath}/static/bootstrap-3.3.7/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<!-- AdminLTE App -->
<script type="text/javascript" src="${basePath}/static/bootstrap-3.3.7/dist/js/adminlte.min.js"></script>
<script type="text/javascript" src="${basePath}/static/js/toastr.js"></script>
<script type="text/javascript" src="${basePath}/static/js/jquery.form.js"></script>
<script>
    var path = "${basePath}"
    toastr.options.positionClass = 'toast-top-right';
    function setFormToken(){
        $.ajax({
            type:'get',
            url:path+"/contant/getUuid",
            async:false,
            dataType:'json',
            success:function(data){
                if(data != null){
                    $("#formToken").val(data);
                    $("#formToken1").val(data);
                    $("#formToken2").val(data);
                    $("#formToken3").val(data);
                }
            }
        })
    }
    function toPage() {
        var pageNum = $("#pageNum").val();
        if (pageNum) {
            $('#mytab').bootstrapTable('selectPage', parseInt(pageNum));
        }
        setTimeout(function(){
            $("#pageNum").val(pageNum)
        },500)
    }
    //禁用打印快捷键
    $('body').bind('onkeydown', function(event) {
        if(event.keyCode==80 && event.ctrlKey){
            event.keyCode=0;
            event.returnValue=false;
        }
    })
    var pers ='<%=session.getAttribute("power_menus")%>';
    var persList = pers.replace('[','').replace(']','').split(',');
    //判断是否有权限
    function perFlag(name){
        if(null != persList && persList != ''){
            for (var i = 0; i < persList.length; i++) {
                if(name == $.trim(persList[i])){
                    return true;
                }
            }
        }
        return false;
    }

    //post函数
    function post(url, params) {
        // 创建form元素
        var temp_form = document.createElement("form");
        // 设置form属性
        temp_form .action = url;
        temp_form .target = "_self";
        temp_form .method = "post";
        temp_form .style.display = "none";
        // 处理需要传递的参数
        for (var x in params) {
            var opt = document.createElement("textarea");
            opt.name = x;
            opt.value = params[x];
            temp_form .appendChild(opt);
        }
        document.body.appendChild(temp_form);
        // 提交表单
        temp_form .submit();
    }
</script>
<%@ include file="/WEB-INF/jspf/confirmJsp.jspf"%>