264 lines
9.3 KiB
Plaintext
264 lines
9.3 KiB
Plaintext
<%--
|
|
Class Name : FmsFileModify.jsp
|
|
Description : 첨부파일 수정 페이지
|
|
Modification Information
|
|
|
|
수정일 수정자 수정내용
|
|
------- -------- ---------------------------
|
|
2009.09.16 장동한 최초 생성
|
|
|
|
author : 공통서비스 개발팀 장동한
|
|
since : 2009.09.16
|
|
|
|
Copyright (C) 2009 by MOPAS All right reserved.
|
|
--%>
|
|
<%@ page contentType="text/html; charset=utf-8"%>
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@ taglib prefix="ckeditor" uri="http://ckeditor.com" %>
|
|
<%
|
|
response.setHeader("Cache-Control","no-store");
|
|
response.setHeader("Pragma","no-cache");
|
|
response.setDateHeader("Expires",0);
|
|
if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache");
|
|
%>
|
|
<c:set var="ImgUrl" value="${pageContext.request.contextPath}/images/egovframework/com/cmm/" />
|
|
<c:set var="CssUrl" value="${pageContext.request.contextPath}/css/egovframework/com/" />
|
|
<c:set var="JsUrl" value="${pageContext.request.contextPath}/js/egovframework/com/uss/ion/pwm/"/>
|
|
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<title>팝업창관리 관리</title>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script>
|
|
<script type="text/javaScript" language="javascript">
|
|
/* pagination 페이지 링크 function */
|
|
function fn_link_page(){
|
|
document.searchForm.submit();
|
|
}
|
|
|
|
/* 등록시 값 확인 */
|
|
function fn_checkForm(flag) {
|
|
frm = document.writeForm;
|
|
if(frm.fmsNm.value=="") {
|
|
alert("제목을 입력해 주십시오");
|
|
frm.fmsNm.focus();
|
|
return false;
|
|
}
|
|
if(frm.content.value=="") {
|
|
alert("내용을 입력해 주십시오");
|
|
frm.content.focus();
|
|
return false;
|
|
}
|
|
if(frm.menuNm.value=="") {
|
|
alert("사용메뉴를 입력해 주십시오");
|
|
frm.menuNm.focus();
|
|
return false;
|
|
}
|
|
|
|
if(flag==1){
|
|
if($('.input2').length == 0){
|
|
alert("첨부파일을 추가해 주십시오");
|
|
return false;
|
|
}
|
|
|
|
}
|
|
return true;
|
|
}
|
|
|
|
/* 파일등록 function */
|
|
function fn_terms_insert(logParam) {
|
|
if(!confirm("약관 관리를 등록하시겠습니까?")) {
|
|
return false;
|
|
}
|
|
frm = document.writeForm;
|
|
CKEDITOR.instances.termsCn.updateElement();
|
|
frm.action = "<c:url value='/sym/site/termsMngInsert.do'/>?logParam="+logParam;
|
|
frm.submit();
|
|
}
|
|
|
|
function fn_terms_update(logParam) {
|
|
if(!confirm("약관 관리를 수정하시겠습니까?")) {
|
|
return false;
|
|
}
|
|
frm = document.writeForm;
|
|
CKEDITOR.instances.termsCn.updateElement();
|
|
frm.action = "<c:url value='/sym/site/termsMngUpdate.do'/>?logParam="+logParam;
|
|
frm.submit();
|
|
}
|
|
|
|
|
|
/* 배너 삭제 function */
|
|
function fn_tabTitle_delete() {
|
|
var msg;
|
|
msg = "약관을 삭제하시겠습니까?";
|
|
if (confirm(msg)) {
|
|
frm = document.writeForm;
|
|
frm.action = "<c:url value='/sym/site/termsMngDelete.do'/>";
|
|
frm.submit();
|
|
}
|
|
}
|
|
|
|
function fn_egov_save_CntManage(cmd){
|
|
var varFrom = document.cntManageVO;
|
|
|
|
/* 에디터값 체크 */
|
|
/* if(CKEDITOR.instances.nttCn.getData()==""){
|
|
alert("내용은 필수입력값입니다.");
|
|
return;
|
|
} */
|
|
|
|
CKEDITOR.instances.cntCn.updateElement();
|
|
|
|
if(confirm("<spring:message code="common.save.msg" />")){
|
|
varFrom.action = "<c:url value='/uss/ion/cnt/egovCntManageRegist.do' />";
|
|
if(!validateCntManageVO(varFrom)){
|
|
return;
|
|
}else{
|
|
varFrom.cmd.value= cmd;
|
|
varFrom.submit();
|
|
}
|
|
}
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="writeForm" method="post">
|
|
<input type="hidden" name="termsId" value="${termsVO.termsId}">
|
|
<input type="hidden" name="del" value="${termsVO.termsId}">
|
|
|
|
<input type="hidden" name="pageUnit" value="<c:out value='${searchVO.pageUnit}'/>"/>
|
|
<input type="hidden" name="PageIndex" value="<c:out value='${searchVO.pageIndex}' default='1' /> "/>
|
|
|
|
<div class="contWrap">
|
|
<div class="pageTitle">
|
|
<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
|
|
<h2 class="titType1 c_222222 fwBold">약관 관리</h2>
|
|
<p class="tType6 c_999999">약관을 등록/수정 할 수 있습니다.</p>
|
|
</div>
|
|
<div class="pageCont">
|
|
<div class="listTop resisterList">
|
|
<p class="right block fwMd"><span class="tType4 c_e40000 fwBold">*</span>는 필수입력 항목입니다.</p>
|
|
</div>
|
|
<table class="tbType2">
|
|
<colgroup>
|
|
<col style="width: 20%">
|
|
<col style="width: 80%">
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<th><span class="reqArea">제목</span></th>
|
|
<td colspan="3">
|
|
<input type="text" name="termsSj" value="${termsVO.termsSj }" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th><span class="reqArea">내용</span></th>
|
|
<td colspan="3">
|
|
<textarea id="termsCn" name="termsCn" rows="20" cols="300"><c:out value="${termsVO.termsCn}"/></textarea>
|
|
<ckeditor:replace replace="termsCn" basePath="${pageContext.request.contextPath}/html/egovframework/com/cmm/utl/ckeditor/" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th><span class="reqArea">사용메뉴</span></th>
|
|
<td>
|
|
<select id="menuNm" name="menuNm">
|
|
<option value="">없음</option>
|
|
<c:forEach var="result" items="${codeResult}" varStatus="status">
|
|
<option value="${result.code}" <c:if test="${termsVO.menuNm eq result.code}">selected='selected'</c:if>><c:out value="${result.codeNm}"/></option>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th><span class="reqArea">사용 여부</span></th>
|
|
<td>
|
|
<select id="useYn" name="useYn">
|
|
<option value="Y" <c:if test="${termsVO.useYn eq 'Y'}"> selected='selected' </c:if>>사용</option>
|
|
<option value="N" <c:if test="${termsVO.useYn eq 'N'}"> selected='selected' </c:if>>미사용</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th><span class="reqArea">필수 여부</span></th>
|
|
<td>
|
|
<select id="necYn" name="necYn">
|
|
<option value="Y" <c:if test="${termsVO.necYn eq 'Y'}"> selected='selected' </c:if>>필수</option>
|
|
<option value="N" <c:if test="${termsVO.necYn eq 'N'}"> selected='selected' </c:if>>선택</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th><span class="reqArea">순서</span></th>
|
|
<td>
|
|
<select id="menuOrder" name="menuOrder">
|
|
<option value="" <c:if test="${termsVO.menuOrder eq ''}"> selected='selected' </c:if>>선택</option>
|
|
<option value="01" <c:if test="${termsVO.menuOrder eq '01'}"> selected='selected' </c:if>>01</option>
|
|
<option value="02" <c:if test="${termsVO.menuOrder eq '02'}"> selected='selected' </c:if>>02</option>
|
|
<option value="03" <c:if test="${termsVO.menuOrder eq '03'}"> selected='selected' </c:if>>03</option>
|
|
<option value="04" <c:if test="${termsVO.menuOrder eq '04'}"> selected='selected' </c:if>>04</option>
|
|
<option value="05" <c:if test="${termsVO.menuOrder eq '05'}"> selected='selected' </c:if>>05</option>
|
|
<option value="06" <c:if test="${termsVO.menuOrder eq '06'}"> selected='selected' </c:if>>06</option>
|
|
<option value="07" <c:if test="${termsVO.menuOrder eq '07'}"> selected='selected' </c:if>>07</option>
|
|
<option value="08" <c:if test="${termsVO.menuOrder eq '08'}"> selected='selected' </c:if>>08</option>
|
|
<option value="09" <c:if test="${termsVO.menuOrder eq '09'}"> selected='selected' </c:if>>09</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<c:if test="${!empty termsVO.frstRegisterId}">
|
|
<tr>
|
|
<th>등록 ID</th>
|
|
<td>
|
|
<c:out value="${termsVO.frstRegisterId}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>등록일</th>
|
|
<td>
|
|
<c:out value="${termsVO.frstRegistPnttm}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>최종수정 ID</th>
|
|
<td>
|
|
<c:out value="${termsVO.lasUpdusrId}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>최종 수정일</th>
|
|
<td>
|
|
<c:out value="${termsVO.lastUpdtPnttm}" />
|
|
</td>
|
|
</tr>
|
|
</c:if>
|
|
|
|
</tbody>
|
|
</table>
|
|
<div class="btnWrap">
|
|
<input type="button" class="btnType1 bg_888888" value="목 록" onclick="fn_link_page(); return false;">
|
|
<c:if test="${!empty termsVO.termsCn || !empty termsVO.termsSj}">
|
|
<input type="button" class="btnType1" value="수 정" onclick="fn_terms_update('U'); return false;">
|
|
<input type="button" class="btnType1 bg_ed4545" value="삭 제" onclick="fn_tabTitle_delete(); return false;">
|
|
</c:if>
|
|
<c:if test="${empty termsVO.termsCn && empty termsVO.termsSj}">
|
|
<input type="button" class="btnType1" value="저 장" onclick="fn_terms_insert('I'); return false;">
|
|
</c:if>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<form name="searchForm" id="searchForm" method="get" action="<c:url value='/sym/site/termsMngList.do'/>" >
|
|
|
|
<input type="hidden" name="pageUnit" value="<c:out value='${searchVO.pageUnit}'/>"/>
|
|
<input type="hidden" name="PageIndex" value="<c:out value='${searchVO.pageIndex}' default='1' /> "/>
|
|
|
|
</form>
|
|
</body>
|
|
</html>
|