<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<script type="text/javaScript" defer="defer">
	if('${isEmpty}' == 'true'){
		location.href = '/';
	}
</script>

<div id="table">
	<table class="tbl_add" width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:50px;">
		<colgroup>
   			<col width="140"/>
   			<col width="">
   			<col width="140"/>
   			<col width="">
   			<col width="140"/>
   			<col width="">
	    </colgroup>	   		
		<tbody>
			<tr>
				<td rowspan="3" class="user_img"><img height=130 alt="<c:out value="${memberVO.name}"/>" src="<spring:message code="Member.imgStoreUrl" /><c:if test="${memberVO.userimg eq null}">noImage.png</c:if><c:out value="${memberVO.userimg}"/>"></td>
				<th><spring:message code="exmember.name" /></th>
				<td colspan="2">
					<c:out value="${memberVO.name}"/>
					<c:if test="${memberVO.chnname eq null or memberVO.chnname ne ' '}">(<c:out value="${memberVO.chnname}"/>)</c:if>
				</td>
				<th><spring:message code="exmember.userid" /></th>
				<td><c:out value="${memberVO.userid}"/></td>
			</tr>
			<tr>
				<th><spring:message code="exmember.address" /></th>
				<td colspan="4"><c:out value="${memberVO.address}"/></td>
			</tr>
			<tr>
				<th><spring:message code="exmember.email" /></th>
				<td colspan="4"><c:out value="${memberVO.email}"/></td>
			</tr>
			<tr>
				<th><spring:message code="exmember.family" /></th>
				<td><c:out value="${memberVO.family}"/></td>
				<th><spring:message code="exmember.charge" /></th>
				<td colspan="3"><c:out value="${memberVO.charge}"/></td>		
			</tr>
			<tr>	
				<th><spring:message code="exmember.nowPlace" /></th>
				<td><c:out value="${memberVO.nowPlaceStr}"/></td>
				<th><spring:message code="exmember.nowPosition" /></th>
				<td><c:out value="${memberVO.nowPositionStr}"/></td>
				<th><spring:message code="exmember.cdate" /></th>
				<td><fmt:formatDate value="${memberVO.cdateEx}" pattern="yyyy-MM-dd" /></td>
			</tr>
			<tr>	
				<th><spring:message code="exmember.ophone" /></th>
				<td><c:out value="${memberVO.ophone}"/></td>
				<th><spring:message code="exmember.hphone" /></th>
				<td><c:out value="${memberVO.hphone}"/></td>
				<th><spring:message code="exmember.cphone" /></th>
				<td><c:out value="${memberVO.cphone}"/></td>
			</tr>
			<tr>
				<th><spring:message code="exmember.sdate" /></th>
				<td><c:out value="${memberVO.sdate}"/></td>
				<th><spring:message code="exmember.pdate" /></th>
				<td><c:out value="${memberVO.pdate}"/></td>
				<th><spring:message code="exmember.adate" /></th>
				<td><c:out value="${memberVO.adate}"/></td>
			</tr>
			<tr>
				<th><spring:message code="exmember.place1" /></th>
				<td><c:out value="${memberVO.place1Str}"/></td>
				<th><spring:message code="exmember.place2" /></th>
				<td><c:out value="${memberVO.place2Str}"/></td>
				<th><spring:message code="exmember.place3" /></th>
				<td><c:out value="${memberVO.place3Str}"/></td>
			</tr>
			<tr>
				<th><spring:message code="exmember.duties" /></th>
				<td><c:out value="${memberVO.dutiesStr}"/></td>			
				<th><spring:message code="exmember.jobtype" /></th>
				<td><c:out value="${memberVO.jobtypeStr}"/></td>
				<th><spring:message code="exmember.inout" /></th>
				<td>
					<c:if test="${memberVO.inout == 'i'}">내근</c:if>
					<c:if test="${memberVO.inout == 'o'}">외근</c:if>
					<c:if test="${memberVO.inout == 'd'}">국제항만분실</c:if>
				</td>
			</tr>
			<tr>
				<th><spring:message code="exmember.position" /></th>
				<td><c:out value="${memberVO.positionStr}"/></td>
				<th><spring:message code="exmember.scholarship" /></th>
				<td><c:out value="${memberVO.scholarshipStr}"/></td>
				<th><spring:message code="exmember.explace" /></th>
				<td><c:out value="${memberVO.explace}"/></td>
			</tr>
			<tr>
				<th><spring:message code="exmember.career" /></th>
				<td><c:out value="${memberVO.getTotExcareerTermStr()}" /></td>				
				<th><spring:message code="exmember.excareer" /></th>
				<td><c:out value="${fn:split(memberVO.excareer, '-')[0]}"/>년 <c:out value="${fn:split(memberVO.excareer, '-')[1]}"/>개월</td>
				<th><spring:message code="exmember.excareer1" /></th>
				<td><c:out value="${fn:split(memberVO.excareer1, '-')[0]}"/>년 <c:out value="${fn:split(memberVO.excareer1, '-')[1]}"/>개월</td>
			</tr>
			<tr>
				<th><spring:message code="exmember.excareer2" /></th>
				<td><c:out value="${fn:split(memberVO.excareer2, '-')[0]}"/>년 <c:out value="${fn:split(memberVO.excareer2, '-')[1]}"/>개월</td>
				<th><spring:message code="exmember.excareer3" /></th>
				<td colspan="3"><c:out value="${fn:split(memberVO.excareer3, '-')[0]}"/>년 <c:out value="${fn:split(memberVO.excareer3, '-')[1]}"/>개월</td>
			</tr>
			<tr>
				<th><spring:message code="exmember.comment" /></th>
				<td colspan="7"><c:out value="${memberVO.comment_}"/></td>
			</tr>
		</tbody>
	</table>
</div>
<form name="menuForm" method="post">
	<input type="hidden" name="userid" value="${memberVO.userid}"/>
	<div class="boardviewinfo">
		<ul class="right btn-style">
 			<li>
 				<a href="javascript:fn_goPrint();"><spring:message code="button.print" /></a>
            </li>
 			<li>
 			 	<a href="<c:url value='/fa/exmemberList.do'/>"><spring:message code="button.list" /></a>
            </li>            
		</ul>	
	</div>
</form>
<script type="text/javaScript" defer="defer">
	<!--
    /* 화면 출력 function */
    function fn_goPrint() {
    	var printThis = document.getElementById("table").innerHTML;
    	printDiv(printThis);
    }
	//-->
</script>