<%@ 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="spring" uri="http://www.springframework.org/tags"%>
<form name="searchForm" method="post">
	<div class="pageinfo">
		<ul class="right btn-style">
			<li><a class="btn_reset" href="javascript:location.reload();"></a></li>
			<li><a class="btn_print" href="javascript:fn_goPrint();"></a></li>
			<!-- <li><a class="btn_graph" href="javascript:fn_goChart();"></a></li> -->
			<li><a class="btn_excel" href="javascript:fn_goExcel();"></a></li>
		</ul>	
		
	</div>
</form>
<div class="memberAdd" id="table">
	<table class="tbl_list" cellspacing=0 cellpadding=0>
		<colgroup>
			<col width="80"/>
	   		<col width="200"/>
	   		<col width=""/>
	   		<col width=""/>
	   		<col width=""/>
	   		<col width=""/>
	   		<col width=""/>
	   		<col width="140"/>	   		
		</colgroup>
		<thead>
			<tr>
				<th><spring:message code="member.view.seq"/></th>
				<th><spring:message code="member.view.division"/></th>
				<th><spring:message code="member.view.total"/></th>
				<th><spring:message code="member.view.excareer_y"/></th>
				<th><spring:message code="member.view.excareer1_y"/></th>
				<th><spring:message code="member.view.excareer2_y"/></th>
				<th><spring:message code="member.view.excareer3_y"/></th>
				<th><spring:message code="member.view.etc"/></th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${resultList}" var="item" varStatus="status">
			<tr>
				<td align="center"><c:out value="${status.count}"/></td>
				<td align="left"><c:out value="${item.CODENM}"/></td>
				<td align="left"><c:out value="${item.TOT_CAREER}"/></td>
				<td align="left"><c:out value="${item.CAREER}"/></td>
				<td align="left"><c:out value="${item.CAREER1}"/></td>
				<td align="left"><c:out value="${item.CAREER2}"/></td>
				<td align="left"><c:out value="${item.CAREER3}"/></td>
				<td align="center">-</td>
			</tr>			
			</c:forEach>
		</tbody>
	</table>
</div>
<script type="text/javaScript" defer="defer">
	<!--
    /* 화면 출력 function */
    function fn_goPrint() {
    	var printThis = document.getElementById("table").innerHTML;
    	printDiv(printThis);
    }
    
    /* 엑셀 다운로드 function */
    function fn_goExcel() {
       	document.searchForm.method = "post";
       	document.searchForm.action = "<c:url value='/fa/getCapacityManagementExcel.do'/>";
       	document.searchForm.submit();
    }
    
    /* 엑셀 다운로드 function */
    function fn_goChart() {
       	document.searchForm.method = "post";
       	document.searchForm.action = "<c:url value='/fa/getCapacityManagementChart.do'/>";
       	document.searchForm.submit();
    }
	//-->
</script>