<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<%@ include file="/WEB-INF/jspf/common.jspf" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>参数设置</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv=X-UA-Compatible IE=EmulateIE7>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="${path}/static/js/html5shiv.min.js"></script>
    <script type="text/javascript" src="${path}/static/js/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="${path}/static/js/respond.min.js"></script>
    <![endif]-->
    <script>
        var path = "${path}";
    </script>
    <style type="text/css">
        .mainDiv{
            height: 40%;
            background-color: #c1d7e3;
        }
        .searchInput{
            width:59%;
            margin-left: 5px;
        }
        .searchElement{
            text-align: right;
            width:40%;
        }
        .searchInputElement{
            width:50%;
        }
        .labelDiv{
            padding-top:2%;
            margin-left: 2%;
        }
        /**查询按钮组*/
        .btnsDiv{
            height:35px;
            text-align: right;
            margin-right: 25px;
        }
        .btns{
            margin-left: 2%;
        }
        form{
            padding:10px 0 0 0;
        }
    </style>
</head>
<body>
<div class="main">
    <div class="headDiv">
        <div class="headSpanDiv">
            <span class="headspan">
                参数设置
            </span>
        </div>
    </div>
    <div class="mainDiv">
        <form id="form">
            <input type="hidden" name="id" id="id" value="${comomSet.id}">
            <div class="searchInputElement left" style="margin-left: 10px;">
                <div class="searchElement left">
                    <label class="labelDiv">显示最近打印组数(组)：</label>
                </div>
                <div class="searchInput left">
                    <input type="number" min="1" max="5" class="form-control input-sm" value="${comomSet.times}"
                           name="times" id="times" oninput="if(value.length>1)value=value.slice(0,1)">
                </div>
            </div>
            <div class="searchInputElement left" style="margin-left: 10px; margin-top: 20px;">
                <div class="searchElement left">
                    <label class="labelDiv">申请日期默认可申请天数：</label>
                </div>
                <div class="searchInput left">
                    <input type="number" min="1" max="365" class="form-control input-sm" value="${comomSet.defaultDay}"
                           name="defaultDay" id="defaultDay" onblur="checkNum('defaultDay')">
                </div>
            </div>
            <div class="searchInputElement left" style="margin-left: 10px; margin-top: 20px;">
                <div class="searchElement left">
                    <label class="labelDiv">申请日期最大可申请天数：</label>
                </div>
                <div class="searchInput left">
                    <input type="number" min="1" max="365" class="form-control input-sm" value="${comomSet.maxDay}"
                           name="maxDay" id="maxDay" onblur="checkNum('maxDay')">
                </div>
            </div>
            <div class="searchInputElement left" style="margin-left: 10px; margin-top: 20px;">
                <div class="searchElement left">
                    <label class="labelDiv">新增图片存放根路径：</label>
                </div>
                <div class="searchInput left">
                    <input type="text" class="form-control input-sm" value="${comomSet.newPicRoot}" name="newPicRoot" id="newPicRoot">
                    <p style="color: red;">格式D:\新图像</p>
                </div>
            </div>
        </form>
    </div>
    <div class="btnsDiv">
        <shiro:hasPermission name="/commomSet/update">
            <button type="button" class="btn btn-sm btn-primary btns" onclick="save()">保存</button>
        </shiro:hasPermission>
    </div>
</div>
<script type="text/javascript" src="${path}/static/js/otherManage/commomSet.js?t=4"></script>
<script type="text/javascript" src="${path}/static/js/dateUtil.js"></script>
</body>
</html>
