<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%
 /**
  * @Class Name : egovCvplCnsltMyView.java
  * @Description : CvplCnsltMy view 화면
  * @Modification Information
  * @
  * @  수정일         수정자                   수정내용
  * @ -------    --------    ---------------------------
  * @ 2009.03.05    천종덕          최초 생성
  *
  *  @author 실행환경 개발팀 천종덕
  *  @since 2009.03.05
  *  @version 1.0
  *  @see
  *  
  *  Copyright (C) 2009 by MOPAS  All right reserved.
  */
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<c:url value='/css/egovframework/egovCvpl.css'/>"/>
<title><spring:message code="pageTitle.egovCvplCnsltMyView" /></title>
<script type="text/javaScript" language="javascript" defer="defer">
<!--
function fn_egov_list_cvplcnslt() {
   	document.detailForm.action = "<c:url value='/cvpl/egovCvplCnsltMyList.do'/>";
   	document.detailForm.submit();		
}

function fn_egov_saveview_cvplcnslt() {
   	document.detailForm.action = "<c:url value='/cvpl/updateCvplCnsltMyView.do'/>";
   	document.detailForm.submit();		
}

function fn_egov_delete_cvplcnslt() {
   	document.detailForm.action = "<c:url value='/cvpl/deleteCvplCnsltMy.do'/>";
   	document.detailForm.submit();		
}

function fn_egov_download_file(reqfile) {
	window.open(encodeURI("<c:url value='/cvpl/egovDownloadFile.do?'/>requestedFile=") + reqfile);
}
-->
</script>
</head>
<body>
<!-- Top -->
<jsp:include page="/cvpl/egovCvplTop.do"/>
<!-- //Top -->
<!-- Left -->
<jsp:include page="/cvpl/egovCvplLeft.do"/>
<!-- //Left -->
<!-- Center -->
<form:form commandName="cvplCnsltVO" name="detailForm" method="post">
<form:hidden path="cvplNo" />
<input name="selectedId" type="hidden" value="<c:out value='${cvplCnsltVO.cvplNo}'/>"/>
<div id="content">
	<!-- 타이틀 -->
	<div id="title">
		<ul>
			<li><img src="<c:url value='/images/egovframework/rte/title_dot.gif'/>"> <spring:message code='pageTitle.egovCvplCnsltMyView'/> </li>
		</ul>
	</div>
	<!-- // 타이틀 -->
	<div id="table">
		  <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#D3E2EC" bordercolordark="#FFFFFF" style="BORDER-TOP:#C2D0DB 2px solid; BORDER-LEFT:#ffffff 1px solid; BORDER-RIGHT:#ffffff 1px solid; BORDER-BOTTOM:#C2D0DB 1px solid; border-collapse: collapse;">
			  <colgroup>
				<col width="150">
				<col width="">
			  </colgroup>
			  <tr>
				<td class="tbtd_caption"><spring:message code='title.cvpl.user' /></td>
				<td class="tbtd_content"><c:out value='${cvplCnsltVO.userName}'/></td>
			  </tr>
			  <tr>
				<td class="tbtd_caption"><spring:message code='title.cvpl.receiptTime' /></td>
				<td class="tbtd_content"><c:out value='${cvplCnsltVO.receiptTime}'/></td>
				</tr>
			  <tr>
				<td class="tbtd_caption"><spring:message code='title.cvpl.cvplSj' /></td>
				<td class="tbtd_content"><c:out value='${cvplCnsltVO.cvplSj}'/></td>
			  </tr>
			  <tr>
				<td class="tbtd_caption"><spring:message code='title.cvpl.cvplOthbcCode' /></td>
				<td class="tbtd_content"><c:out value='${cvplCnsltVO.cvplOthbcCodeNm}'/></td>
				</tr>
			  <tr>
				<td class="tbtd_caption"><spring:message code='title.cvpl.cvplContents' /></td>
				<td class="tbtd_content"><form:textarea path="cvplContents" rows="5" cols="58" readonly="readonly" /></td>
				</tr>
			  <tr>
				<td class="tbtd_caption"><spring:message code='title.cvpl.cvplAtch1' /></td>
				<td class="tbtd_content">
					<c:if test="${cvplCnsltVO.cvplAtch1 != '' && cvplCnsltVO.cvplAtch1 != null}">
						<c:out value='${cvplCnsltVO.cvplAtch1}'/>
						<a href="javascript:fn_egov_download_file('<c:out value="${cvplCnsltVO.cvplAtch1}"/>')"><img src="<c:url value='/images/egovframework/rte/btn_form_down.gif'/>" border="0" class="top"></a>
					</c:if>
					<c:if test="${cvplCnsltVO.cvplAtch2 != '' && cvplCnsltVO.cvplAtch2 != null}">
						<br/><c:out value='${cvplCnsltVO.cvplAtch2}'/>
						<a href="javascript:fn_egov_download_file('<c:out value="${cvplCnsltVO.cvplAtch2}"/>')"><img src="<c:url value='/images/egovframework/rte/btn_form_down.gif'/>" border="0" class="top"></a>
					</c:if>
				</td>
			  </tr>
		  </table>
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td height="5"></td>
			  </tr>
		  </table>
		  <!-- 답변 start -->
		  <div id="divAnswer" <c:if test="${cvplCnsltVO.answerUserName == null}">style="display:none;"</c:if>>
			  <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#EAE8CE" bordercolordark="#FFFFFF" style="BORDER-TOP:#DFDDB7 2px solid; BORDER-LEFT:#ffffff 1px solid; BORDER-RIGHT:#ffffff 1px solid; BORDER-BOTTOM:#DFDDB7 1px solid; border-collapse: collapse;">		
				  <colgroup>
					  <col width="150">
					  <col width="">
				  </colgroup>
				  <tr>
					<td class="tbtd_caption_re"><spring:message code='title.cvpl.answerUser' /></td>
					<td class="tbtd_content_re"><c:out value='${cvplCnsltVO.answerUserName}'/></td>
				  </tr>
				  <tr>
					<td class="tbtd_caption_re"><spring:message code='title.cvpl.answerTime' /></td>
					<td class="tbtd_content_re"><c:out value='${cvplCnsltVO.answerTime}'/></td>
				  </tr>
				  <tr>
					<td class="tbtd_caption_re"><spring:message code='title.cvpl.answerContents' /></td>
					<td class="tbtd_content_re"><form:textarea path="answerContents" rows="5" cols="58" readonly="readonly" /></td>
				  </tr>
				  <tr>
					<td class="tbtd_caption_re"><spring:message code='title.cvpl.answerAtch1' /></td>
					<td class="tbtd_content_re">
						<c:if test="${cvplCnsltVO.answerAtch1 != '' && cvplCnsltVO.answerAtch1 != null}">
							<c:out value='${cvplCnsltVO.answerAtch1}'/>
							<a href="javascript:fn_egov_download_file('<c:out value="${cvplCnsltVO.answerAtch1}"/>')"><img src="<c:url value='/images/egovframework/rte/btn_form_down.gif'/>" border="0" class="top"></a>
						</c:if>
						<c:if test="${cvplCnsltVO.answerAtch2 != '' && cvplCnsltVO.answerAtch2 != null}">
							<br/><c:out value='${cvplCnsltVO.answerAtch2}'/>
							<a href="javascript:fn_egov_download_file('<c:out value="${cvplCnsltVO.answerAtch2}"/>')"><img src="<c:url value='/images/egovframework/rte/btn_form_down.gif'/>" border="0" class="top"></a>
						</c:if>
					</td>
				  </tr>
				  <tr>
					 <td colspan="2" height="5"></td>
				  </tr>
			  </table>
		  </div>
	</div>
	<div id="sysbtn">
		<ul>
		<li><span class="btn_blue_l"><a href="javascript:fn_egov_list_cvplcnslt();"><spring:message code='button.list' /></a><img src="<c:url value='/images/egovframework/rte/btn_bg_r.gif'/>" style="margin-left:6px;"></span></li>
		<li><span class="btn_blue_l"><a href="javascript:fn_egov_saveview_cvplcnslt();"><spring:message code='button.update' /></a><img src="<c:url value='/images/egovframework/rte/btn_bg_r.gif'/>" style="margin-left:6px;"></span></li>
		<li><span class="btn_blue_l"><a href="javascript:fn_egov_delete_cvplcnslt();"><spring:message code='button.delete' /></a><img src="<c:url value='/images/egovframework/rte/btn_bg_r.gif'/>" style="margin-left:6px;"></span></li></ul>
	</div>
	<!-- 검색조건 유지 -->
	<input type="hidden" name="searchCondition" value="<c:out value='${searchVO.searchCondition}'/>"/>
	<input type="hidden" name="searchKeyword" value="<c:out value='${searchVO.searchKeyword}'/>"/>
	<input type="hidden" name="searchSubKeyword" value="<c:out value='${searchVO.searchSubKeyword}'/>"/>
	<input type="hidden" name="pageIndex" value="<c:out value='${searchVO.pageIndex}'/>"/>
</div>
</form:form>
<!-- /Center -->
<!-- Bottom -->
<jsp:include page="/cvpl/EgovCvplBottom.do"/>
<!-- //Bottom -->
</body>
</html>