<%--
  Class Name : IpReceive.jsp
  Description : IP신청목록
  Modification Information

      수정일         수정자                   수정내용
    -------    --------    ---------------------------
     2009.09.16    장동한          최초 생성

    author   : 공통서비스 개발팀 장동한
    since    : 2009.09.16

    Copyright (C) 2009 by MOPAS  All right reserved.
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%   
	response.setHeader("Cache-Control","no-store");   
	response.setHeader("Pragma","no-cache");   
	response.setDateHeader("Expires",0);   
	if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache"); 
%> 
<!DOCTYPE html>
<html lang="en">

<head>
<meta http-equiv="X-UA-Compatible" content="IE=9;chrome=1" />
<meta charset="UTF-8">
<title>IP사용현황</title>
<link rel="stylesheet" href="/direct/css/font.css">
<link rel="stylesheet" href="/direct/css/reset.css">
<link rel="stylesheet" href="/direct/css/enroll_popup.css">
<link rel="stylesheet" href="/direct/css/nice-select.css">
<script src="/direct/js/jquery-1.11.3.min.js"></script>
<script src="/direct/js/jquery-ui.min.js"></script>
<script src="/direct/js/popup_open_2.js"></script>
<!--[if IE]>
   <link rel="stylesheet" type="text/css" href="css/ie_popup.css" />
   <![endif]-->
<script src="/direct/js/jquery.nice-select.js"></script>
<!-- <script src="js/script.js"></script> -->
<script>
$(document).ready(function() {
	$('#recipEqui').niceSelect();
	$('#recipNetCode').niceSelect();
	setNumberOnly(); //숫자만 입력
});

function setNumberOnly(){ //숫자만 입력
	$("input:text[numberOnly]").on("keyup", function(){
	    $(this).val($(this).val().replace(/[^0-9]/g,""));
	});
}		
</script>
</head>
<body>
	<div class="enroll_popup enrollIpPopup">
		<div class="enroll_popup_title">
			<img src="/direct/img/enroll_popup_title_bg.png" alt=""> IP 신청
		</div>
		<div class="enroll_wrap">
			<div class="enrollIpWrap">
				<div class="ipTitle">
					<img src="" alt=""> 신청정보
				</div>
				<div class="ipLeftInput enroll_left_input">
					<ul>
						<li>
							<div class="enroll_input_title required_area">제목</div>
							<input type="text">
						</li>
						
						<li>
							<div class="enroll_input_title required_area">소속</div>
								${ipRecResultVO.recipDeptTxt}
								<input type="hidden" name="recipDept" value="${ipRecResultVO.recipDept}">
						</li>
						<li>
							<div class="enroll_input_title required_area">신청자</div>
							${ipRecResultVO.frstRegisterIdText}
							<input type="hidden" name="frstRegisterId" value="${ipRecResultVO.frstRegisterId}"> 
						</li>
						<li>
							<div class="enroll_input_title required_area">대상장비</div>
							<select name="recipEqui" id="recipEqui" class="use_state" style="width: 100px;">
			             		<c:forEach var="ipHwCodeList" items="${ipHwCodeList}" varStatus="status">
			                 		<option value="${ipHwCodeList.id}" <c:if test="${ipRecResultVO.recipDept eq ipHwCodeList.id}"> selected="selected"</c:if> >${ipHwCodeList.text}</option>
			                 	</c:forEach>
		                 	</select>
						</li>
						<li>
							<div class="enroll_input_title required_area">회선</div>
							<div class="ipNw">
		             		<select name="recipNetCode" id="recipNetCode" class="use_state" style="width: 100px;">
			             		<c:forEach var="ipNetCodeList" items="${ipNetCodeList}" varStatus="status">
			                 		<option value="${ipNetCodeList.id}" <c:if test="${ipRecResultVO.recipDept eq ipNetCodeList.id}"> selected="selected"</c:if> >${ipNetCodeList.text}</option>
			                 	</c:forEach>
		                 	</select>
							<input type="text" class="ipNwNb" numberOnly maxlength="3" > 회선
							</div>
						</li>
						<li>
							<div class="enroll_input_title required_area">IP사용기간</div>
							<input type="text" class="first_date">&emsp;~&emsp;<input type="text" class="last_date">
						</li>
						<li>
							<div class="enroll_input_title required_area">신청내용</div>
							<textarea name="" id="" cols="30" rows="5" class="askIpObject"></textarea>
						</li>
					</ul>
				</div>
				<div class="ipSignList">
					<c:if test="${isAdmin}">
					<table>
						<thead>
							<tr>
								<th>단계</th>
								<th>결재 권한</th>
								<th>결재자명</th>
								<th>그룹</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>1</td>
								<td>결재자</td>
								<td>홍길동</td>
								<td>혁신문화팀 <input type="button" class="ipSignSelect" value="결재자 선택"></td>
							</tr>
							<tr>
								<td>1</td>
								<td>결재자</td>
								<td>홍길동</td>
								<td>혁신문화팀 <input type="button" class="ipSignSelect" value="결재자 선택"></td>
							</tr>
							<tr>
								<td>1</td>
								<td>결재자</td>
								<td>홍길동</td>
								<td>혁신문화팀 <input type="button" class="ipSignSelect" value="결재자 선택"></td>
							</tr>
							<tr>
								<td>1</td>
								<td>결재자</td>
								<td>홍길동</td>
								<td>혁신문화팀 <input type="button" class="ipSignSelect" value="결재자 선택"></td>
							</tr>
						</tbody>
					</table>
					</c:if>
				</div>
			</div>
			<div class="ipAskBtnWrap">
				<input type="button" class="ipAskBtn" value="신청">
			</div>
		</div>
	</div>
</body>
</html>

