271 lines
8.2 KiB
Plaintext
271 lines
8.2 KiB
Plaintext
<%--
|
|
Class Name : resveManageUpdt.jsp
|
|
Description : 대관관리 조회/수정 화면
|
|
Modification Information
|
|
|
|
수정일 수정자 수정내용
|
|
---------- -------- ---------------------------
|
|
2009.03.23 이삼섭 최초 생성
|
|
|
|
author : 공통서비스 개발팀 이삼섭
|
|
since : 2009.03.23
|
|
--%>
|
|
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
|
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
|
<%@ 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"%>
|
|
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%>
|
|
<%
|
|
pageContext.setAttribute("crlf", "\r\n");
|
|
%>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Language" content="ko">
|
|
<script type="text/javascript">
|
|
function fn_egov_select_list(pageNo) {
|
|
document.searchForm.action = "<c:url value='/cop/resve/selectResveManageList.do'/>";
|
|
document.searchForm.submit();
|
|
}
|
|
|
|
function fn_egov_delete() {
|
|
if (confirm('<spring:message code="common.delete.msg" />')) {
|
|
document.frm.action = "<c:url value='/cop/bbs/deleteBoardArticle.do'/>";
|
|
document.frm.submit();
|
|
}
|
|
}
|
|
|
|
function fn_egov_updt() {
|
|
document.frm.action = "<c:url value='/cop/resve/updateResveManageInf.do'/>";
|
|
document.frm.method = "get";
|
|
document.frm.submit();
|
|
}
|
|
|
|
// 신청자구분에 따른 항목 표시
|
|
function userTypeChange() {
|
|
var userType = $("input[name='userType']:checked").val();
|
|
|
|
if (userType == 'G') {
|
|
$("#trCompanyName").show();
|
|
$("#trCompanyNumber").show();
|
|
} else {
|
|
$("#trCompanyName").hide();
|
|
$("#trCompanyNumber").hide();
|
|
}
|
|
}
|
|
|
|
// 전시관에 따른 항목 표시
|
|
function exRoomsChange() {
|
|
var exRoom5 = "${result.exRoom5}";
|
|
var exHours = "${result.exHours}";
|
|
|
|
if (exRoom5 == 'r') {
|
|
$("#resEdate").hide();
|
|
|
|
if (exHours == "am") exHours = "오전";
|
|
else if (exHours == "pm") exHours = "오후";
|
|
} else {
|
|
$("#resEdate").show();
|
|
}
|
|
|
|
$("#exHours").text(exHours);
|
|
}
|
|
|
|
$(document).ready(function () {
|
|
var userType = document.frm.userType.value;
|
|
//var selectExRoom = document.frm.selectExRoom.value;
|
|
|
|
// 신청자 구분
|
|
userTypeChange();
|
|
|
|
// 전시관
|
|
exRoomsChange();
|
|
});
|
|
|
|
</script>
|
|
|
|
<title>대관관리 상세</title>
|
|
</head>
|
|
<body>
|
|
<div class="ad_content">
|
|
<div class="ad_con_head">
|
|
<div class="ad_head_text">
|
|
<p class="today_txt">
|
|
대관관리 상세
|
|
</p>
|
|
<div class="ad_head_ment">
|
|
<p class="today_last_txt"><span id="cnt_cate_list"></span></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="ad_subcon">
|
|
<form:form commandName="searchForm" name="searchForm" method="get" action="<c:url value='/cop/bbs/selectBoardList.do'/>">
|
|
<input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>" />
|
|
<input name="searchCnd" type="hidden" value="<c:out value='${searchVO.searchCnd}'/>" />
|
|
<input name="searchWrd" type="hidden" value="<c:out value='${searchVO.searchWrd}'/>" />
|
|
<input name="applyNum" type="hidden" value="<c:out value='${result.applyNum}'/>" />
|
|
</form:form>
|
|
|
|
<form name="frm" method="post" action="<c:url value='/cop/bbs/selectBoardList.do'/>">
|
|
<input type="hidden" name="pageIndex" value="<c:out value='${searchVO.pageIndex}'/>">
|
|
<input type="hidden" name="searchCnd" value="<c:out value='${searchVO.searchCnd}'/>" />
|
|
<input type="hidden" name="searchWrd" value="<c:out value='${searchVO.searchWrd}'/>" />
|
|
<input type="hidden" name="applyNum" value="<c:out value='${result.applyNum}'/>" />
|
|
|
|
<div class="main1_div2">
|
|
<table class="main1_table">
|
|
<tr>
|
|
<th colspan="2">신청자 정보</th>
|
|
</tr>
|
|
<tr>
|
|
<th>신청자 구분</th>
|
|
<td>
|
|
<c:forEach var="item" items="${ userTypeList }" varStatus="status">${item.codeNm}
|
|
<input type="radio" style="width:3%" name="userType" value="${item.code}" disabled="disabled"
|
|
<c:if test="${item.code == result.userType}">checked="checked"</c:if> />
|
|
</c:forEach>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>이름</th>
|
|
<td>
|
|
<c:out value="${result.userName}" />
|
|
</td>
|
|
</tr>
|
|
<tr id="trCompanyName">
|
|
<th>회사명(또는 단체명)</th>
|
|
<td>
|
|
<c:out value="${result.companyName}" />
|
|
</td>
|
|
</tr>
|
|
<tr id="trCompanyNumber">
|
|
<th>사업자등록번호</th>
|
|
<td>
|
|
<c:out value="${result.companyNumber}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>휴대폰번호</th>
|
|
<td>
|
|
<c:if test="${result.telMobile1+result.telMobile2+result.telMobile3 > 0}">
|
|
<c:out value="${result.telMobile1}" /> -
|
|
<c:out value="${result.telMobile2}" /> -
|
|
<c:out value="${result.telMobile3}" />
|
|
</c:if>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>전화번호</th>
|
|
<td>
|
|
<c:if test="${result.telHome1+result.telHome2+result.telHome3 > 0}">
|
|
<c:out value="${result.telHome1}" /> -
|
|
<c:out value="${result.telHome2}" /> -
|
|
<c:out value="${result.telHome3}" />
|
|
</c:if>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>이메일</th>
|
|
<td>
|
|
<c:out value="${result.email}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>상태변경</th>
|
|
<td>
|
|
<select name="resState" title="상태변경">
|
|
<c:forEach var="item" items="${ resStateList }" varStatus="status">${item.codeNm}
|
|
<option value="${item.code}" <c:if test="${item.code == result.resState}">selected="selected"</c:if> >${item.codeNm}</option>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th colspan="2">신청 정보</th>
|
|
</tr>
|
|
<tr>
|
|
<th>전시명</th>
|
|
<td>
|
|
<c:out value="${result.exName}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>작가명/단체명</th>
|
|
<td>
|
|
<c:out value="${result.authorName}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>사용희망 시설</th>
|
|
<td>
|
|
<c:out value="${result.exRooms}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>대관기간</th>
|
|
<td>
|
|
<c:out value="${result.resSdate}" /><span id="resEdate"> ~ <c:out value="${result.resEdate}" /></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>대관시간</th>
|
|
<td>
|
|
<span id="exHours"></span>
|
|
<%-- <c:out value="${result.exHours}" /> --%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>전시구성 및 안내내용</th>
|
|
<td>
|
|
<div id="bbs_cn">
|
|
<c:out value="${fn:replace(result.exExplain , crlf , '<br/>')}" escapeXml="false" />
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>썸네일이미지</th>
|
|
<td colspan="10">
|
|
<c:import url="/cmm/fms/selectBBSFileInfs.do" charEncoding="utf-8">
|
|
<c:param name="param_atchFileId" value="${result.thumbAtchFileId}" />
|
|
</c:import>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>대표이미지</th>
|
|
<td colspan="10">
|
|
<c:import url="/cmm/fms/selectBBSFileInfs.do" charEncoding="utf-8">
|
|
<c:param name="param_atchFileId" value="${result.imgAtchFileId}" />
|
|
</c:import>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>포트폴리오</th>
|
|
<td colspan="10">
|
|
<c:import url="/cmm/fms/selectBBSFileInfs.do" charEncoding="utf-8">
|
|
<c:param name="param_atchFileId" value="${result.portfolioAtchFileId}" />
|
|
</c:import>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- 버튼 시작(상세지정 style로 div에 지정) -->
|
|
<div class="main1_btn_div">
|
|
<button class="main1_btn" onclick="javascript:fn_egov_select_list(); return false;">목 록</button>
|
|
<button class="main1_btn main1_save_btn" id="main1_save_btn" onclick="javascript:fn_egov_updt(); return false;">수 정</button>
|
|
<!-- <button class="main1_btn main1_delete_btn" id="main1_delete_btn" onclick="javascript:fn_egov_delete(); return false;">삭 제</button> -->
|
|
</div>
|
|
<!-- 버튼 끝 -->
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- //content 끝 -->
|
|
</body>
|
|
</html>
|
|
|