<%@ 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-8">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h4><i class="fa fa-desktop fa-fw"></i> IP 수정</h4>
			</div>
			<div class="panel-body">
				<div class="row">
				</div>
				<!-- row -->
	   			<div class="table-responsive">
	   				<form action="IdcIPModify.lin" method="POST">
						<input type="hidden" id="token" name="token">
						<table class="table table-bordered table-hover table-striped">
							<thead>
							</thead>
							<tbody>
								<tr>
									<td>회선명</td>
									<td><input type="text" name="line_name" class="form-control" readonly="readonly" value="${ipdb.line_name }"></td>
								</tr>
								<tr>
									<td>구분</td>
									<td><input type="text" name="ip_case2" class="form-control" readonly="readonly" value=${ipdb.ip_case2 }></td>
								</tr>
								<tr>
									<td>사용자</td>
									<td><input type="text" name="ip_user" class="form-control" readonly="readonly" value=${ipdb.ip_user }></td>
								</tr>
								<tr>
									<td>IP</td>
									<td><input type="text" name="ip_address" class="form-control" readonly="readonly" value=${ipdb.ip_address }></td>
								</tr>
								<tr>
									<td>가용여부</td>
									<td>
										<c:if test="${ipdb.ip_able==1}">
											<input type="radio" name="ip_able"  value="1" checked="checked">사용가능
											<input type="radio" name="ip_able"  value="0">사용불능
										</c:if>
										<c:if test="${ipdb.ip_able==0}">
											<input type="radio" name="ip_able"  value="1" >사용가능
											<input type="radio" name="ip_able"  value="0" checked="checked">사용불능
										</c:if>
									</td>
								</tr>
								<tr>
									<td>이전 사용자</td>
									<td><input type="text" name="ip_before_user" class="form-control" readonly="readonly" value=${ipdb.ip_before_user }></td>
								</tr>
								<tr>
									<td>해지사유</td>
									<td><input type="text" name="cancel_reason" class="form-control" readonly="readonly" value=${ipdb.cancel_reason }></td>
								</tr>
								<tr>
									<td>차단</td>
									<td>
										<c:if test="${ipdb.block=='o'}">
											<input type="radio" name="block"  value="x">정상
											<input type="radio" name="block"  value="o" checked="checked">차단
										</c:if>
										<c:if test="${ipdb.block=='x'}">
											<input type="radio" name="block"  value="x" checked="checked">정상
											<input type="radio" name="block"  value="o" >차단
										</c:if>
									</td>
								</tr>
								<tr>
									<td>차단 해제일</td>
									<td><input type="text" name="block_endday" class="form-control" readonly="readonly" value=${ipdb.block_endday }></td>
								</tr>
								<tr>
									<td>메모</td>
									<td><input type="text" name="ip_note" class="form-control" name="note" value=${ipdb.ip_note }></td>
								</tr>
							</tbody>
							<tfoot>
								<tr>
									<td colspan="2">
										<input class="btn btn-success btn-outline" type="submit" value="저장">
										<a href="IdcIPListForm.lin" class="btn btn-default btn-outline">취소</a>
									</td>
								</tr>
							</tfoot>
						</table>
	   				</form>
				</div>
				<!-- table-responsive -->
			</div>
			<!-- panel-body -->
		</div>
		<!-- panel panel-default -->
	</div>
	<!-- col-lg-12 -->
</div>
<!-- row -->
<!-- /#page-wrapper -->
