<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div id="divPrintArea">
	<div id ="divPrintTitle" style="display: none;margin: 10px 0 10px 0;">외사취약지</div>
	<div id="table">
	   	<table class="tb">
		<colgroup>
			<col width="150"/>
			<col width="?"/>
		</colgroup>
		<tr>
			<td class="tbtd_caption"><c:out value="${fieldNameMap.place1str}" /></td>
			<td class="tbtd_content"><c:out value="${corpVO.place1str}" /></td>
		</tr>
		<tr>
			<td class="tbtd_caption"><c:out value="${fieldNameMap.name}" /></td>
			<td class="tbtd_content"><c:out value="${corpVO.name}" /></td>
		</tr>
		<tr>
			<td class="tbtd_caption"><c:out value="${fieldNameMap.location}" /></td>
			<td class="tbtd_content"><c:out value="${corpVO.location}" /></td>
		</tr>
		<c:if test="${corpVO.grpNo eq '03'}">
		<tr>
			<td class="tbtd_caption"><c:out value="${fieldNameMap.shipCnt}" /></td>
			<td class="tbtd_content"><c:out value="${corpVO.shipCnt}" /></td>
		</tr>
		</c:if>
		<c:if test="${corpVO.grpNo ne '01'}">
		<tr>
			<td class="tbtd_caption"><c:out value="${fieldNameMap.ceo}" /></td>
			<td class="tbtd_content"><c:out value="${corpVO.ceo}" /></td>
		</tr>
		</c:if>
		<c:if test="${corpVO.grpNo eq '04' or corpVO.grpNo eq '05'}">
		<tr>
			<td class="tbtd_caption"><c:out value="${fieldNameMap.jobType}" /></td>
			<td class="tbtd_content"><c:out value="${corpVO.jobType}" /></td>
		</tr>
		</c:if>
		<c:if test="${corpVO.grpNo eq '03'}">
		<tr>
			<td class="tbtd_caption"><c:out value="${fieldNameMap.memberCnt}" /></td>
			<td class="tbtd_content"><c:out value="${corpVO.memberCnt}" /></td>
		</tr>
		</c:if>
		<c:if test="${corpVO.grpNo eq '05'}">
		<tr>
			<td class="tbtd_caption"><c:out value="${fieldNameMap.partner}" /></td>
			<td class="tbtd_content"><c:out value="${corpVO.partner}" /></td>
		</tr>
		</c:if>
		<c:if test="${corpVO.grpNo eq '03'}">
		<tr>
			<td class="tbtd_caption"><c:out value="${fieldNameMap.basicYear}" /></td>
			<td class="tbtd_content"><c:out value="${corpVO.basicYear}" /></td>
		</tr>
		<tr>
			<td class="tbtd_caption"><c:out value="${fieldNameMap.fund}" /></td>
			<td class="tbtd_content"><c:out value="${corpVO.fund}" /></td>
		</tr>
		</c:if>
		<tr>
			<td class="tbtd_caption"><c:out value="${fieldNameMap.tel}" /></td>
			<td class="tbtd_content"><c:out value="${corpVO.tel}" /></td>
		</tr>
		<tr>
			<td class="tbtd_caption"><c:out value="${fieldNameMap.fax}" /></td>
			<td class="tbtd_content"><c:out value="${corpVO.fax}" /></td>
		</tr>
		<tr>
			<td class="tbtd_caption"><c:out value="${fieldNameMap.comments}" /></td>
			<td class="tbtd_content"><c:out value="${corpVO.comments}" /></td>
		</tr>
		</table>
	</div>
</div>
<form:form commandName="corpVO" name="menuForm" method="post">
	<form:hidden path="place1" />
	<form:hidden path="orgId" />
	<form:hidden path="orgNo" />
	<div id="sysbtn">
		<ul>
			<c:if test="${loginUserVO.isAdmin || loginUserVO.place1 eq corpVO.place1}">
	  			<li>
	           	<span class="btn_blue_l">
	               	<a href="javascript:fn_modify();"><spring:message code="button.goModify" /></a>
	                   <img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code='button.goModify' />"/>
	              	</span>
	           </li>
	  			<li>
	           	<span class="btn_blue_l">
	               	<a href="javascript:fn_delete();"><spring:message code="button.goDelete" /></a>
	                   <img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left:6px;" alt="<spring:message code='button.goDelete' />"/>
	              	</span>
	           </li>
			</c:if>
			<li>
				<span class="btn_blue_l">
					<a href="<c:url value="/target/corp/list.do">
								<c:param name="place1" value="${corpVO.place1}" />
								<c:param name="orgId" value="${corpVO.orgId}" />
								<c:param name="grpNo" value="${corpVO.grpNo}" />
							 </c:url>"><spring:message code="button.goList" /></a>
					<img src="<c:url value='/images/rte/btn_bg_r.gif'/>" style="margin-left: 6px;" alt="<spring:message code='button.goList' />" />
				</span>
			</li>			
		</ul>
	</div>
</form:form>


<script type="text/javascript" defer="defer">
<!--
	/* 수정 화면 function */	
	function fn_modify() {
		document.menuForm.method = "get";
	   	document.menuForm.action = "<c:url value='/target/corp/update.do'/>";
	   	document.menuForm.submit();
	}
	
	/* 삭제 화면 function */
	function fn_delete() {
		if (confirm("<spring:message code="confirm.msg.askDel" />")){
			document.menuForm.method = "post";
    		document.menuForm.action = "<c:url value='/target/corp/delete.do'/>";
    	   	document.menuForm.submit();	
    	}
	}
	-->
</script>