<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<script type="text/javascript" src="/js/lib/jquery-1.12.4.min.js"></script>

<style type="text/css">
	table td {
		font: 10pt 바탕;
		padding: 3px;
	}
	a {
		text-decoration: none;
	}
</style>

<div id="divPrintArea" style="margin: 0 auto; width: 660px">
	<table width="660px" border="0" cellspacing="0" cellpadding="0" style="border: 2px solid #000; border-bottom: 0px;">
		<tr>
			<td colspan="2" height="50px" align="center" style="font: bold 15pt 굴림; border-bottom: 1px solid #000; letter-spacing: 10px;"><spring:message code="report.title"/></td>
		</tr>
		<tr>
			<td style="height: 30px;">[<c:out value="${reportVO.inPlaceName}"/><spring:message code="member.type.fa"/>-<c:out value="${reportVO.inPlaceNum}"/>]</td>
			<td style="width: 100px; text-align: center;"><c:out value="${reportVO.inInfodate}"/></td>
		</tr>
	</table>
	<table width="660px" border="0" cellspacing="0" cellpadding="0"	style="border: 2px solid #000; border-bottom: 0px;">
		<tr>
			<td align="center" width="60"style="border-right: 2px solid #000; border-bottom: 1px solid #000;"><spring:message code="report.view.receive"/></td>
			<td style="border-right: 2px solid #000; border-bottom: 1px solid #000;"><c:out value="${reportVO.inPlace1}"/>장</td>
			<td align="center" width="40" rowspan="3" style="border-right: 2px solid #000;"><spring:message code="report.view.approval"/></td>
			<td align="center" width="90" style="border-right: 1px solid #000; border-bottom: 1px solid #000;"><spring:message code="member.view.rptPermission.section"/></td>
			<td align="center" width="90" style="border-right: 1px solid #000; border-bottom: 1px solid #000;"><spring:message code="member.view.rptPermission.head"/></td>
			<td align="center" width="90" style="border-bottom: 1px solid #000;"><spring:message code="report.view.director"/></td>
		</tr>
		<tr>
			<td align="center" style="border-right: 2px solid #000; border-bottom: 1px solid #000;"><spring:message code="report.view.ref"/></td>
			<td style="border-right: 2px solid #000; border-bottom: 1px solid #000;"><spring:message code="report.view.infoMng"/></td>
			<td rowspan="2" align="center" style="border-right: 1px solid #000;">
				<spring:message code="report.view.arbitrarily"/>
			</td>
			<td rowspan="2" align="center" style="border-right: 1px solid #000;">
				<c:choose>
					<c:when test="${fn:trim(judgeSectionCheif.sign) ne null and fn:trim(judgeSectionCheif.sign) ne ''}" >
						<a id="imgViewer" href="<c:url value="/member/download.do"><c:param name="filenm" value="${judgeSectionCheif.sign}" /></c:url>">
							<img src="<c:url value="/member/download.do"><c:param name="filenm" value="${judgeSectionCheif.sign}" /></c:url>" 
								alt="<spring:message code="report.title" /> 이미지" width="90" />
						</a>
					</c:when>
					<c:otherwise>
						<c:out value="${judgeSectionCheif.juName}"/>
					</c:otherwise>
				</c:choose>
			</td>
			<td rowspan="2" align="center" style="border-right: 1px solid #000;">
				<c:choose>
				<c:when test="${fn:trim(judgeHeadCheif.sign) ne null and fn:trim(judgeHeadCheif.sign) ne ''}" >
					<a id="imgViewer" href="<c:url value="/member/download.do"><c:param name="filenm" value="${judgeHeadCheif.sign}" /></c:url>">
						<img src="<c:url value="/member/download.do"><c:param name="filenm" value="${judgeHeadCheif.sign}" /></c:url>" 
							alt="<spring:message code="report.title" /> 이미지" width="90" />
					</a>
				</c:when>
				<c:otherwise>
					<c:out value="${judgeHeadCheif.juName}"/>
				</c:otherwise>
				</c:choose>
			</td>
		</tr>
		<tr>
			<td align="center" style="border-right: 2px solid #000;"><spring:message code="report.view.send"/></td>
			<td style="border-right: 2px solid #000;">&nbsp;</td>
		</tr>
	</table>
	<table width="660px" border="0" cellspacing="0" cellpadding="0"	style="border: 2px solid #000; border-bottom: 0px;">
		<tr>
			<td width="180px" colspan="3" align="center" style="font: 9pt 바탕; border-right: 2px solid #000; border-bottom: 2px solid #000;"><spring:message code="board.header.reporter"/></td>
			<td width="50px" align="center" style="font: 9pt 바탕; border-right: 1px solid #000; border-bottom: 2px solid #000;"><spring:message code="report.view.category1"/></td>
			<td width="50px" align="center" style="font: 9pt 바탕; border-right: 1px solid #000; border-bottom: 2px solid #000;"><spring:message code="report.view.category2"/></td>
			<td width="50px" align="center" style="font: 9pt 바탕; border-right: 1px solid #000; border-bottom: 2px solid #000;"><spring:message code="report.view.category3"/></td>
			<td align="center"	style="font: 9pt 바탕; border-right: 1px solid #000; border-bottom: 2px solid #000;"><spring:message code="report.view.division"/></td>
			<td width="22px" align="center"	style="font: 8pt 바탕; border-right: 2px solid #000; border-bottom: 2px solid #000;"><spring:message code="report.view.memo"/></td>
			<td align="center" colspan="7" style="font: 9pt 바탕; border-right: 2px solid #000; border-bottom: 2px solid #000;"><spring:message code="report.view.appraisal"/></td>
			<td align="center" style="font: 8pt 바탕; border-bottom: 2px solid #000;"><spring:message code="report.type.fullReport"/></td>
		</tr>
		<tr>
			<td align="center"	style="border-right: 1px solid #000; border-bottom: 1px solid #000;"><spring:message code="board.header.place1"/></td>
			<td align="center"	style="border-right: 1px solid #000; border-bottom: 1px solid #000;"><spring:message code="member.view.position"/></td>
			<td align="center"	style="border-right: 2px solid #000; border-bottom: 1px solid #000;"><spring:message code="member.view.name"/></td>
			<td align="center" rowspan="2" style="border-right: 1px solid #000;"><c:out value="${reportVO.inCategory1Str}"/></td>
			<td align="center" rowspan="2" style="border-right: 1px solid #000;"><c:out value="${reportVO.inCategory2Str}"/></td>
			<td align="center" rowspan="2" style="border-right: 1px solid #000;"><c:out value="${reportVO.inCategory3Str}"/></td>
			<td align="center" rowspan="2" style="border-right: 1px solid #000;"><c:out value="${reportVO.inCategory4Str}"/></td>
			<td align="center" rowspan="2" style="border-right: 2px solid #000;"><c:out value="${reportVO.inMemo}"/></td>
			<td align="center" width="22" style="font: 8pt 바탕; border-right: 1px solid #000; border-bottom: 1px solid #000;"><spring:message code="report.type.newsflash"/></td>
			<td align="center" width="22" style="font: 8pt 바탕; border-right: 1px solid #000; border-bottom: 1px solid #000;"><spring:message code="report.type.judge"/></td>
			<td align="center" width="22" style="font: 8pt 바탕; border-right: 1px solid #000; border-bottom: 1px solid #000;"><spring:message code="report.type.middle"/></td>
			<td align="center" width="22" style="font: 8pt 바탕; border-right: 1px solid #000; border-bottom: 1px solid #000;"><spring:message code="report.type.notice"/></td>
			<td align="center" width="22" style="font: 8pt 바탕; border-right: 1px solid #000; border-bottom: 1px solid #000;"><spring:message code="report.type.record"/></td>
			<td align="center" width="22" style="font: 8pt 바탕; border-right: 1px solid #000; border-bottom: 1px solid #000;"><spring:message code="report.type.survey"/></td>
			<td align="center" width="22" style="font: 8pt 바탕; border-right: 2px solid #000; border-bottom: 1px solid #000;"><spring:message code="report.type.reference"/></td>
			<td align="center" width="22" rowspan="2"><c:if test="${reportVO.inReport > 0}">○</c:if></td>
		</tr>
		<tr>
			<td align="center" style="border-right: 1px solid #000;"><spring:message code="member.type.fa"/></td>
			<td align="center" style="border-right: 1px solid #000;"><c:out value="${reportVO.inPosition}"/></td>
			<td align="center" style="border-right: 2px solid #000;"><c:out value="${reportVO.inName}"/></td>
			<td align="center" style="border-right: 1px solid #000;"><c:if test="${reportVO.inJudge eq '1'}">○</c:if></td>
			<td align="center" style="border-right: 1px solid #000;"><c:if test="${reportVO.inJudge eq '2'}">○</c:if></td>
			<td align="center" style="border-right: 1px solid #000;"><c:if test="${reportVO.inJudge eq '3'}">○</c:if></td>
			<td align="center" style="border-right: 1px solid #000;"><c:if test="${reportVO.inJudge eq '4'}">○</c:if></td>
			<td align="center" style="border-right: 1px solid #000;"><c:if test="${reportVO.inJudge eq '5'}">○</c:if></td>
			<td align="center" style="border-right: 1px solid #000;"><c:if test="${reportVO.inJudge eq '6'}">○</c:if></td>
			<td align="center" style="border-right: 2px solid #000;"><c:if test="${reportVO.inJudge eq '7'}">○</c:if></td>
		</tr>
	</table>
	<table width="660px" border="0" cellspacing="0" cellpadding="0" style="border: 2px solid #000; border-bottom: 0px;">
		<tr>
			<td width="70px" align="center"	style="border-right: 1px solid #000; border-bottom: 2px solid #000;"><spring:message code="report.view.opinion"/></td>
			<td style="border-bottom: 2px solid #000;">
				<c:out value="${judgeHeadCheif.juMessage}"/>
				<c:if test="${fn:trim(judgeHeadCheif.juMessage) ne null and fn:trim(judgeHeadCheif.juMessage) ne ''}"><br></c:if>
				<c:out value="${judgeSectionCheif.juMessage} "/>
			</td>
		</tr>
		<tr>
			<td align="center" style="border-right: 1px solid #000;"><spring:message code="board.header.title"/></td>
			<td>${reportVO.inSubject}</td>
		</tr>
	</table>
	<table width="660px" border="0" cellspacing="0" cellpadding="0" style="border: 2px solid #000; border-bottom: 0px;">
		<tr>
			<td id="cell_content" colspan="2" valign="top" style="min-height: 280px;"><c:out value="${reportVO.inContent}" escapeXml="false"/></td>
		</tr>
	</table>
	<table width="660px" border="0" cellspacing="0" cellpadding="0" style="border: 2px solid #000;">
		<tr>
			<td width="100px" align="center" style="border-right: 2px solid #000; border-bottom: 2px solid #000;"><spring:message code="board.view.attach"/>1</td>
			<td style="border-bottom: 2px solid #000;">
				<c:if test="${fn:trim(reportVO.inFile1) ne null}">
					<a href="/report/download.do?seq=<c:out value="${reportVO.inSeq}"/>&no=1" target="_blank">
			       		<c:out value="${reportVO.inFile1}"/>
			       	</a>
				</c:if>
			</td>
		</tr>
		<tr>
			<td align="center" style="border-right: 2px solid #000; border-bottom: 2px solid #000;"><spring:message code="board.view.attach"/>2</td>
			<td style="border-bottom: 2px solid #000;">
				<c:if test="${fn:trim(reportVO.inFile2) ne null}">
					<a href="/report/download.do?seq=<c:out value="${reportVO.inSeq}"/>&no=2" target="_blank">
			       		<c:out value="${reportVO.inFile2}"/>
			       	</a>
				</c:if>
			</td>
		</tr>
		<tr>
			<td align="center" style="border-right: 2px solid #000; border-bottom: 2px solid #000;"><spring:message code="board.view.attach"/>3</td>
			<td style="border-bottom: 2px solid #000;">
				<c:if test="${fn:trim(reportVO.inFile3) ne null}">
					<a href="/report/download.do?seq=<c:out value="${reportVO.inSeq}"/>&no=3" target="_blank">
			       		<c:out value="${reportVO.inFile3}"/>
			       	</a>
				</c:if>
			</td>
		</tr>
		<tr>
			<td align="center" style="border-right: 2px solid #000; border-bottom: 2px solid #000;"><spring:message code="board.view.attach"/>4</td>
			<td style="border-bottom: 2px solid #000;">
				<c:if test="${fn:trim(reportVO.inFile4) ne null}">
					<a href="/report/download.do?seq=<c:out value="${reportVO.inSeq}"/>&no=4" target="_blank">
			       		<c:out value="${reportVO.inFile4}"/>
			       	</a>
				</c:if>
			</td>
		</tr>
		<tr>
			<td align="center" style="border-right: 2px solid #000;"><spring:message code="board.view.attach"/>5</td>
			<td>
				<c:if test="${fn:trim(reportVO.inFile5) ne null}">
					<a href="/report/download.do?seq=<c:out value="${reportVO.inSeq}"/>&no=5" target="_blank">
			       		<c:out value="${reportVO.inFile5}"/>
			       	</a>
				</c:if>
			</td>
		</tr>
	</table>
</div>

<script type="text/javascript">
<!--
	$(document).ready(function() {
		window.print();
	});
-->
</script>
