<%@ 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"%>
<script type="text/javaScript" language="javascript" defer="defer">
	<!-- -->
	/* 화면 출력 function */
    function fn_goPrint() {
    	var printThis = document.getElementById("table").innerHTML;
    	printDiv(printThis);
    }
	
	/* 중국어선 나포정보 상세화면 이동 function */
	function fnEquipList(equipId){		
		document.equipListForm.type.value = equipId;
		document.equipListForm.action = "<c:url value='/equip/equipList.do'/>";
	   	document.equipListForm.submit();
	}
	
	//-->
</script>

<div class="pageinfo">
	<ul class="right btn-style">
		<li><a class="btn_print" href="javascript:fn_goPrint();"></a></li>
		<li><a class="btn_excel" href="/equip/statusExcel.do"></a></li>
	</ul>	
</div>	
<form id="equipListForm" name="equipListForm" method="post" action="">
	<input type="hidden" id="type" name="type" path="type" value=""/>
</form>
<!-- List -->
<div id="table">	
	<table class="tbl_listview" width="100%" border="1" cellpadding="0" cellspacing="0">
		<thead>
			<tr>
				<th align="center"><spring:message code="equip.name" /></th>
				<th align="center"><spring:message code="equip.total" /></th>
				<th align="center"><spring:message code="equip.ps00" /></th>
				<th align="center"><spring:message code="equip.ps01" /></th>
				<th align="center"><spring:message code="equip.ps02" /></th>
				<th align="center"><spring:message code="equip.ps03" /></th>
				<th align="center"><spring:message code="equip.ps04" /></th>
				<th align="center"><spring:message code="equip.ps05" /></th>
				<th align="center"><spring:message code="equip.ps06" /></th>
				<th align="center"><spring:message code="equip.ps07" /></th>
				<th align="center"><spring:message code="equip.ps08" /></th>
				<th align="center"><spring:message code="equip.ps09" /></th>
				<th align="center"><spring:message code="equip.ps10" /></th>
				<th align="center"><spring:message code="equip.ps11" /></th>
				<th align="center"><spring:message code="equip.ps12" /></th>
				<th align="center"><spring:message code="equip.ps13" /></th>
				<th align="center"><spring:message code="equip.ps14" /></th>
				<th align="center"><spring:message code="equip.ps15" /></th>
				<th align="center"><spring:message code="equip.ps16" /></th>
				<th align="center"><spring:message code="equip.ps17" /></th>
				<th align="center"><spring:message code="equip.ps18" /></th>
				<th align="center"><spring:message code="equip.ps19" /></th>
				<th align="center"><spring:message code="equip.ps50" /></th>
				<th align="center"><spring:message code="equip.ps90" /></th>
				<th align="center"><spring:message code="equip.ps91" /></th>
				<th align="center"><spring:message code="equip.ps92" /></th>
				<th align="center"><spring:message code="equip.ps93" /></th>
				<th align="center"><spring:message code="equip.ps94" /></th>
			</tr>
		</thead>
		<c:forEach var="equipstatus" items="${equipStatusList}" varStatus="status">
			<tr>
				<td align="center"><a href="javascript:fnEquipList('<c:out value="${equipstatus.equip }"/>')" style="color:#0000ff;"><c:out value="${equipstatus.equip_nm}" /></a></td>
				<td align="center"><c:out value="${equipstatus.total}" /></td>
				<td align="center"><c:out value="${equipstatus.ps00}" /></td>
				<td align="center"><c:out value="${equipstatus.ps01}" /></td>
				<td align="center"><c:out value="${equipstatus.ps02}" /></td>
				<td align="center"><c:out value="${equipstatus.ps03}" /></td>
				<td align="center"><c:out value="${equipstatus.ps04}" /></td>
				<td align="center"><c:out value="${equipstatus.ps05}" /></td>
				<td align="center"><c:out value="${equipstatus.ps06}" /></td>
				<td align="center"><c:out value="${equipstatus.ps07}" /></td>
				<td align="center"><c:out value="${equipstatus.ps08}" /></td>
				<td align="center"><c:out value="${equipstatus.ps09}" /></td>
				<td align="center"><c:out value="${equipstatus.ps10}" /></td>
				<td align="center"><c:out value="${equipstatus.ps11}" /></td>
				<td align="center"><c:out value="${equipstatus.ps12}" /></td>
				<td align="center"><c:out value="${equipstatus.ps13}" /></td>
				<td align="center"><c:out value="${equipstatus.ps14}" /></td>
				<td align="center"><c:out value="${equipstatus.ps15}" /></td>
				<td align="center"><c:out value="${equipstatus.ps16}" /></td>
				<td align="center"><c:out value="${equipstatus.ps17}" /></td>
				<td align="center"><c:out value="${equipstatus.ps18}" /></td>
				<td align="center"><c:out value="${equipstatus.ps19}" /></td>
				<td align="center"><c:out value="${equipstatus.ps50}" /></td>
				<td align="center"><c:out value="${equipstatus.ps90}" /></td>
				<td align="center"><c:out value="${equipstatus.ps91}" /></td>
				<td align="center"><c:out value="${equipstatus.ps92}" /></td>
				<td align="center"><c:out value="${equipstatus.ps93}" /></td>
				<td align="center"><c:out value="${equipstatus.ps94}" /></td>
			</tr>
		</c:forEach>
	</table>
</div>
