<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>

<script src="IDC/js/setToken.js"></script>
<!-- 여기가 본 페이지이다 -->
<div class="row">
	<div class="col-lg-6">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h4><i class="fa fa-desktop fa-fw"></i> 라인 수정</h4>
			</div>
			<div class="panel-body">
   				<form action="IdcLineModify.lin" method="POST">
		   			<input type="hidden" id="token" name="token">
		   			<div class="table-responsive">	
						<table class="table table-bordered table-hover table-striped">
							<thead>
							</thead>
							<tbody>
								<tr>
									<td>회선번호</td>
									<td><input type="text" name="line_code" value="${LineDB.line_code }" readonly="readonly"></td>
									<td><input type="hidden" name="line_num" value="${LineDB.line_num }"></td>
								</tr>
								<tr>
									<td>회선구분 / 회선명</td>
									<td><input type="text" name="line_case" value="${LineDB.line_case }"></td>
									<td><input type="text" name="line_name" value="${LineDB.line_name }"></td>
								</tr>
								<tr>
									<td>메인IP 주소</td>
									<td><input type="text" name="line_ip" value="${LineDB.line_IP }"></td>
									<td></td>
								</tr>
								<tr>
									<td>서브넷</td>
									<td><input type="text" name="line_subnet" value="${LineDB.line_subnet }"></td>
									<td></td>
								</tr>
								<tr>
									<td>게이트웨이</td>
									<td><input type="text" name="line_gateway" value="${LineDB.line_gateway }"></td>
									<td></td>
								</tr>
								<tr>
									<td>ID/Password</td>
									<td><input type="text" name="line_id" value="${LineDB.line_id }"></td>
									<td><input type="text" name="line_pass" value="${LineDB.line_pass }"></td>
								</tr>
								<tr>
									<td>연락처</td>
									<td><input type="text" name="line_phone" value="${LineDB.line_phone }"></td>
									<td></td>
								</tr>
								<tr>
									<td>가용여부</td>
									<td>
										<c:if test="${LineDB.line_able=='1'}">
											<input type="radio" name="line_able" value="1" checked="checked">사용가능
											<input type="radio" name="line_able" value="0">사용불능
										</c:if>
										<c:if test="${LineDB.line_able=='0'}">
											<input type="radio" name="line_able" value="1">사용가능
											<input type="radio" name="line_able" value="0" checked="checked">사용불능
										</c:if>
									</td>
									<td></td>
								</tr>
								<tr>
									<td>해지사유</td>
									<td><input type="text" name="line_reason"  value="${LineDB.line_reason }"></td>
									<td></td>
								</tr>
								<tr>
									<td>차단/차단종류?</td>
									<td>
										<c:if test="${LineDB.line_block=='x' }">
											<input type="radio" name="line_block" value="x" checked="checked">정상
											<input type="radio" name="line_block" value="o">차단
										</c:if>
										<c:if test="${LineDB.line_block=='o' }">
											<input type="radio" name="line_block" value="x">정상
											<input type="radio" name="line_block" value="o" checked="checked">차단
										</c:if>
									</td>
									<td><input type="text" name="line_block_note" value="${LineDB.line_block_note }"></td>
								</tr>
								<tr>
									<td>차단 해제일 입력</td>
									<td><input type="date" name="line_block_endday" value="${LineDB.line_block_endday }"></td>
									<td></td>
								</tr>
								<tr>
									<td>IP할당일/IP해제일</td>
									<td>
										<input type="date" name="line_user_allocatingday" value="${LineDB.line_user_allocatingday }">
									</td>
									<td>
										<input type="date" name="line_user_endday" value="${LineDB.line_user_endday }">
									</td>
								</tr>
								<tr>
									<td>고객명/비고</td>
									<td><input type="text" name="line_client_name" value="${LineDB.line_client_name }"></td>
									<td><input type="text" name="line_note" value="${LineDB.line_note }"></td>
								</tr>
								<tr>
									<td>메인IP/IP대역</td>
									<td><input type="text" name="line_mainip" value="${LineDB.line_mainip }"></td>
									<td><input type="text" name="line_haveip" value="${LineDB.line_haveip }"></td>
								</tr>
								<tr>
									<td>서브IP1</td>
									<td><input type="text" name="line_subip1" value="${LineDB.line_subip1 }"></td>
									<td></td>
								</tr>
								<tr>
									<td>서브IP2</td>
									<td><input type="text" name="line_subip2" value="${LineDB.line_subip2 }"></td>
									<td></td>
								</tr>
								<tr>
									<td>서브IP3</td>
									<td><input type="text" name="line_subip3" value="${LineDB.line_subip3 }"></td>
									<td></td>
								</tr>
								<tr>
									<td>현 사용자</td>
									<td><input type="text" value="${LineDB.line_client_name }" name="line_client_name"></td>
									<td><input type="date" value="${LineDB.line_user_allocatingday }" name="line_user_allocatingday" >/
											<input type="date" value="${LineDB.line_user_endday }" name="line_user_endday" ></td>
								</tr>
								<tr>
									<td>전 사용자</td>
									<td><input type="text" value="${LineDB.line_before_user }" name="line_before_user"></td>
									<td><input type="date" readonly="readonly" name="line_before_allocatingday" value="${LineDB.line_before_allocatingday }">/
											<input type="date" readonly="readonly" name="line_before_endday" value="${LineDB.line_before_endday }"></td>
								</tr>
							</tbody>
							<tfoot>
							</tfoot>
						</table>
					</div>
					<!-- table-responsive -->
					<div class="input-group-btn">
						<input class="btn btn-outline btn-primary" type="submit" value="수정">
						<a class="btn btn-outline btn-default" href="IdcLineListForm.lin">돌아가기</a>
						<a href="IdcLineDelete.lin?line_num=${LineDB.line_num }&token=${token}" class="btn btn-danger btn-outline">삭제</a>
					</div>
					<!-- input-group -->
				</form>
			</div>
			<!-- panel-body -->
		</div>
		<!-- panel panel-default -->
	</div>
	<!-- col-lg-12 -->
</div>
<!-- row -->
<!-- /#page-wrapper -->
