<%@ 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}"/>
<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 src="${path}/static/js/jquery-1.11.3.min.js"></script>
    <script src="${path}/static/js/html5shiv.js"></script>
    <script src="${path}/static/js/respond.min.js"></script>
    <![endif]-->
    <%@ include file="/WEB-INF/jspf/common.jspf" %>
    <script>
        var path = "${path}";
    </script>
    <style type="text/css">
        body {
            margin-right: -15px;
            margin-bottom: -15px;
        }
        .mainDiv{
            background-color: #fff;
            height:100%;
        }
        .tableDiv{
            width: 100%;
            height: 90%;
            background-color: #fff;
            margin-left: 1%;
            padding-top:5px;
        }
        .table-hover > tbody > tr:hover > td,
        .table-hover > tbody > tr:hover > th {
            cursor: pointer;
        }

    </style>
</head>
<body>
<input type="hidden" id="inpatientNo" value="${inpatientNo}">
<input type="hidden" id="userName" value="${userName}">
<input type="hidden" id="deptName" value="${deptName}">
<div class="main">
    <div class="headDiv">
        <div class="headSpanDiv">
            <span class="headspan">
                预览列表
            </span>
        </div>
    </div>
    <div class="mainDiv">
        <!--数据表格-->
        <div id="tableDiv" class="tableDiv table-responsive table-hover">
            <table id="mytab" class="table text-nowrap table-bordered">
            </table>
        </div>
    </div>
</div>
<!-- 模态框1（Modal）借阅申请 -->
    <div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
    <div class="modal-content">
    <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
    <font size="30">&times;</font>
    </button>
    <h4 class="modal-title" style="font-weight: bold">
    申请信息
    </h4>
    </div>
    <div class="modal-body">
    <form class="form-horizontal" role="form">
    <input type="hidden" name="formToken" id="formToken" value="${formToken}">
    <input type="hidden" id="check">
    <input type="hidden" id="approveId">
    <!--隐藏申请过的集合input Id-->
    <input type="hidden" id="typeId">
    <div class="row">
    <div class="form-group">
    <label class="col-sm-4 control-label">有效时间：</label>
    <div class="col-sm-7">
    <input type="text" class="form-control input-sm input" id="effeTime" name="effeTime"
    maxlength="10" autocomplete="off">
    </div>
    <div class="col-sm-1"></div>
    </div>
    </div>
    <div class="row">
    <div class="form-group">
    <label class="col-sm-4 control-label">申请天数：</label>
    <div class="col-sm-7">
    <input type="number" class="form-control input-sm input" id="effeDays"
    name="effeDays" oninput="if(value.length>3)value=value.slice(0,3)" readonly>
    </div>
    <div class="col-sm-1"></div>
    </div>
    </div>
    <div class="row">
    <div class="form-group">
    <label class="col-sm-4 control-label">申请类型：</label>
    <div class="col-sm-7">
    <input class="form-control input-sm  input" name="applyType"
    id="applyType" value="接口借阅申请" readonly>
    </div>
    <div class="col-sm-1"></div>
    </div>
    </div>
    <div class="row">
    <div class="form-group">
    <label class="col-sm-4 control-label">申请理由：</label>
    <div class="col-sm-7">
    <textarea class="form-control input-sm  input" id="applyReason" name="applyReason"
    maxlength="250"></textarea>
    </div>
    <div class="col-sm-1"></div>
    </div>
    </div>
    </form>
    </div>
    <div class="modal-footer">
    <button type="button" class="btn btn-sm btn-default" data-dismiss="modal">关闭
    </button>
    <button type="button" class="btn btn-sm btn-primary" onclick="addApprove()">
    确认提交
    </button>
    </div>
    </div>
    </div>
    </div>
<script type="text/javascript" src="${path}/static/js/font/recordListSouth.js"></script>
<script type="text/javascript" src="${path}/static/js/dateUtil.js"></script>
<script type="text/javascript" src="${path}/static/js/recordManage/templateSearch/searchCommomMethodqf.js"></script>
<script type="text/javascript" src="${path}/static/js/approveManage/approveList/approveDateCommmomMethod.js"></script>
</body>
</html>
