File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<%--
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;
frm = document.writeForm;
CKEDITOR.instances.termsCn.updateElement();
frm.action = "<c:url value='/sym/site/termsSubMngInsert.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/termsSubMngUpdate.do'/>?logParam="+logParam;
frm.submit();
}
/* 배너 삭제 function */
function fn_terms_delete(termsSubNo) {
var msg;
msg = "약관을 삭제하시겠습니까?";
if (confirm(msg)) {
frm = document.writeForm;
frm.checkDel.value = termsSubNo;
frm.action = "<c:url value='/sym/site/termsSubMngDelete.do'/>";
frm.submit();
}
}
</script>
</head>
<body>
<form name="writeForm" method="post">
<input type="text" name="termsMastNo" value="${searchVO.termsMastNo}">
<input type="text" name="termsSubNo" value="${searchVO.termsSubNo}">
<input type="text" name="checkDel" value="">
<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="${termsSubVO.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="${termsSubVO.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="useYn" name="useYn">
<option value="Y" <c:if test="${termsSubVO.useYn eq 'Y'}"> selected='selected' </c:if>>사용</option>
<option value="N" <c:if test="${termsSubVO.useYn eq 'N'}"> selected='selected' </c:if>>미사용</option>
</select>
</td>
</tr>
<tr>
<th>순서</th>
<td>
<input type="text" name="sort" value="${termsSubVO.sort}" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxLength="2"/>
</td>
</tr>
<c:if test="${!empty termsSubVO.frstRegisterId}">
<tr>
<th>등록 ID</th>
<td>
<c:out value="${termsSubVO.frstRegisterId}" />
</td>
</tr>
<tr>
<th>등록일</th>
<td>
<c:out value="${termsSubVO.frstRegistPnttm}" />
</td>
</tr>
<tr>
<th>최종수정 ID</th>
<td>
<c:out value="${termsSubVO.lasUpdusrId}" />
</td>
</tr>
<tr>
<th>최종 수정일</th>
<td>
<c:out value="${termsSubVO.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 termsSubVO.termsCn || !empty termsSubVO.termsSj}">
<input type="button" class="btnType1" value="수 정" onclick="fn_terms_update('U'); return false;">
<input type="button" class="btnType1 bg_ed4545" value="삭 제" onclick="fn_terms_delete('${termsSubVO.termsSubNo}'); return false;">
</c:if>
<c:if test="${empty termsSubVO.termsCn && empty termsSubVO.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/termsSubMngList.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' /> "/>
<input type="hidden" name="termsMastNo" value="<c:out value='${searchVO.termsMastNo}'/> "/>
</form>
</body>
</html>