<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript" src="IDC/js/setToken.js"></script>
<script>
$(function(){	
	//방어존 숫자 붙여주기.
	var defence = "방어존"+$("#asdf").val();
	$("#defence_case").val(defence);	
});
</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> 방어존 수정</h4>
			</div>
			<div class="panel-body">
				<div class="row">
				</div>
				<!-- row -->
   				<form action="deffenceModifyHandle.sev" method="post">
   					<input type="hidden" id="token" name="token">
   					<input type="hidden" name="deffence_num" value="${deffence_num}"/>
   					<input type="hidden" name="curPage" value="${curPage}"/>			
		   			<div class="table-responsive">
						<table class="table table-bordered table-hover table-striped">
							<thead>
							</thead>
							<tbody>
								<tr>
									<td style="min-width:100px">구분</td>
									<td colspan="3">
										<input type="text" id="defence_case" value="" readonly="readonly">										
										<input type="hidden" id="asdf" name="deffence_case" value="${deffence_case}">
									</td>
								</tr>
								<tr>
									<td>방어존</td>
									<td colspan="3">
										<input type="text" name="deffence_zone" value="${deffence_zone}">
									</td>				
								</tr>
								<tr>
									<td>ACL</td>
									<td colspan="3">
										<input type="text" name="deffence_acl" value="${deffence_acl}">
									</td>
								</tr>
								<tr>
									<td>REAL</td>
									<td colspan="3">
										<input type="text" name="deffence_real" value="${deffence_real}">
									</td>
								</tr>								
								<tr>
									<td>포트</td>
									<td colspan="3">
										<textarea rows="8" cols="100" name="deffence_port" id="deffence_port">${deffence_port}</textarea>
									</td>
								</tr>								
								<tr>
									<td>업체명</td>
									<td colspan="3">
										<textarea rows="8" cols="100" name="client_name" id="client_name">${client_name}</textarea>
									</td>
								</tr>
								<tr>
									<td>VPC_장비명</td>
									<td colspan="3">
										<input type="text" name="vpc_code" value="${vpc_code}">
									</td>
								</tr>											
								<tr>
									<td>장비명</td>
									<td colspan="3">
										<input type="text" name="server_code" value="${server_code}">
									</td>
								</tr>								
								<tr>
									<td>service_ip</td>
									<td colspan="3">
										<input type="text" name="service_ip" value="${service_ip}">
									</td>
								</tr>								
								<tr>
									<td>도메인</td>
									<td colspan="3">
										<textarea rows="8" cols="100" name="deffence_domain" id="deffence_domain">${deffence_domain}</textarea>
									</td>
								</tr>
											
								<tr>
									<td>비고</td>
									<td colspan="3">					
										<textarea rows="8" cols="100" name="deffence_note" id="deffence_note">${deffence_note}</textarea>
									</td>
								</tr>
							</tbody>
							<tfoot>
								<tr>
									<td colspan="4" align="right">
										<button class="btn btn-outline btn-primary" type="submit" value="서비스 등록">서비스 등록</button>
										<a class="btn btn-outline btn-default" href="deffenceInfo.sev?">취소</a>
									</td>
								</tr>
							</tfoot>
						</table>
					</div>
					<!-- table-responsive -->
				</form>
			</div>
			<!-- panel-body -->
		</div>
		<!-- panel panel-default -->
	</div>
	<!-- col-lg-12 -->
</div>
<!-- row -->
<!-- /#page-wrapper -->
