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
File name
Commit message
Commit date
<%--
Class Name : EgovPopupUpdt.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="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="ckeditor" uri="http://ckeditor.com" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="ImgUrl" value="${pageContext.request.contextPath}/images/egovframework/com/cmm/" />
<c:set var="CssUrl" value="${pageContext.request.contextPath}/css/egovframework/com/" />
<%pageContext.setAttribute("crlf", "\r\n"); %>
<!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="/validator.do"/>"></script>
<script type="text/javascript" src="<c:url value='/js/EgovCalPopup.js' />"></script>
<validator:javascript formName="popupManageVO" staticJavascript="false" xhtml="true" cdata="false"/>
<script type="text/javaScript" language="javascript">
/* ********************************************************
* 저장처리화면
******************************************************** */
function fn_egov_save_PopupManage(){
var varFrom = document.popupManageVO;
CKEDITOR.instances.nttCn.updateElement();
if(confirm("<spring:message code="common.save.msg" />")){
varFrom.action = "<c:url value='/uss/ion/pwm/updtPopup.do' />";
if(!validatePopupManageVO(varFrom)){
return;
}else{
var ntceBgndeYYYMMDD = document.getElementById('ntceBgndeYYYMMDD').value;
var ntceEnddeYYYMMDD = document.getElementById('ntceEnddeYYYMMDD').value;
var iChkBeginDe = Number( ntceBgndeYYYMMDD.replaceAll("-","") );
var iChkEndDe = Number( ntceEnddeYYYMMDD.replaceAll("-","") );
if(iChkBeginDe > iChkEndDe || iChkEndDe < iChkBeginDe ){
alert("게시시작일자는 게시종료일자 보다 클수 없고,\n게시종료일자는 게시시작일자 보다 작을수 없습니다. ");
return;
}
varFrom.ntceBgnde.value = ntceBgndeYYYMMDD.replaceAll('-','') + fn_egov_SelectBoxValue('ntceBgndeHH') + fn_egov_SelectBoxValue('ntceBgndeMM');
varFrom.ntceEndde.value = ntceEnddeYYYMMDD.replaceAll('-','') + fn_egov_SelectBoxValue('ntceEnddeHH') + fn_egov_SelectBoxValue('ntceEnddeMM');
varFrom.cmd.value = 'save';
varFrom.submit();
}
}
}
/* ********************************************************
* RADIO BOX VALUE FUNCTION
******************************************************** */
function fn_egov_RadioBoxValue(sbName)
{
var FLength = document.getElementsByName(sbName).length;
var FValue = "";
for(var i=0; i < FLength; i++)
{
if(document.getElementsByName(sbName)[i].checked == true){
FValue = document.getElementsByName(sbName)[i].value;
}
}
return FValue;
}
/* ********************************************************
* SELECT BOX VALUE FUNCTION
******************************************************** */
function fn_egov_SelectBoxValue(sbName)
{
var FValue = "";
for(var i=0; i < document.getElementById(sbName).length; i++)
{
if(document.getElementById(sbName).options[i].selected == true){
FValue=document.getElementById(sbName).options[i].value;
}
}
return FValue;
}
/* ********************************************************
* PROTOTYPE JS FUNCTION
******************************************************** */
String.prototype.trim = function(){
return this.replace(/^\s+|\s+$/g, "");
}
String.prototype.replaceAll = function(src, repl){
var str = this;
if(src == repl){return str;}
while(str.indexOf(src) != -1) {
str = str.replace(src, repl);
}
return str;
}
function fnList() {
document.searchForm.submit();
}
/* ********************************************************
* 삭제처리
******************************************************** */
function fn_egov_delete_PopupManage(){
var vFrom = document.popupManageVO;
if(confirm("삭제 하시겠습니까?")){
vFrom.cmd.value = 'del';
vFrom.action = "<c:url value='/uss/ion/pwm/detailPopup.do' />";
vFrom.submit();
}else{
vFrom.cmd.value = '';
}
}
</script>
<style>
.date_format{width:91px !important;}
.main1_table input{
width: unset;
}
</style>
</head>
<body>
<form:form commandName="popupManageVO" name="popupManageVO" action="${pageContext.request.contextPath}/uss/ion/pwm/updtPopup.do" method="post" >
<form:hidden path="ntceBgnde" />
<form:hidden path="ntceEndde" />
<input name="popupId" type="hidden" value="${popupManageVO.popupId}">
<input name="cmd" type="hidden" value=""/>
<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>
<c:if test="${siteId eq 'super'}">
<tr>
<th><span class="reqArea">사이트</span></th>
<td>
<select name="siteId" id="siteId" title="사이트아이디">
<c:forEach var="resultList" items="${siteManageList}" varStatus="status">
<option value="<c:out value="${resultList.siteId}"/>"
<c:if test="${popupManageVO.siteId eq resultList.siteId}"> selected='selected' </c:if>>
<c:out value="${resultList.siteNm}"/>
</option>
</c:forEach>
</select>
</td>
</tr>
</c:if>
<tr>
<th><span class="reqArea">팝업타입</span></th>
<td>
<ul class="inline">
<li>
<input type="radio" name="popupType" id="W" value="W" <c:if test="${popupManageVO.popupType eq 'W'}">checked</c:if>>
<label for="W">윈도우</label>
</li>
<li>
<input type="radio" name="popupType" id="L" value="L" <c:if test="${popupManageVO.popupType eq 'L'}">checked</c:if>>
<label for="L">레이어</label>
</li>
</ul>
</td>
</tr>
<tr>
<th><span class="reqArea">팝업명</span></th>
<td>
<form:input path="popupTitleNm" size="50" cssClass="txaIpt" maxlength="255"/>
<form:errors path="popupTitleNm" cssClass="error"/>
</td>
</tr>
<tr>
<th><span class="reqArea">게시기간</span></th>
<td colspan="3">
<input type="hidden" name="cal_url" id="cal_url" value="<c:url value='/sym/cmm/EgovNormalCalPopup.do'/>" >
<input type="text" class="date_format" name="ntceBgndeYYYMMDD" id="ntceBgndeYYYMMDD" size="10" maxlength="10" class="readOnlyClass" value="<c:out value="${fn:substring(popupManageVO.ntceBgnde, 0, 4)}"/>-<c:out value="${fn:substring(popupManageVO.ntceBgnde, 4, 6)}"/>-<c:out value="${fn:substring(popupManageVO.ntceBgnde, 6, 8)}"/>" readonly>
<a href="#" onClick="javascript:fn_egov_NormalCalendar(document.forms.popupManageVO, document.forms.popupManageVO.ntceBgndeYYYMMDD);">
<input type="button" class="calBtn">
<%-- <img src="<c:url value='/images/egovframework/com/cmm/icon/bu_icon_carlendar.gif' />" align="middle" style="border:0px" alt="달력창팝업버튼이미지"> --%>
</a>
<form:select path="ntceBgndeHH" class="date_format">
<form:options items="${ntceBgndeHH}" itemValue="code" itemLabel="codeNm"/>
</form:select>시
<form:select path="ntceBgndeMM" class="date_format">
<form:options items="${ntceBgndeMM}" itemValue="code" itemLabel="codeNm"/>
</form:select>분
~
<input type="text" class="date_format" name="ntceEnddeYYYMMDD" id="ntceEnddeYYYMMDD" size="10" maxlength="10" class="readOnlyClass" value="<c:out value="${fn:substring(popupManageVO.ntceEndde, 0, 4)}"/>-<c:out value="${fn:substring(popupManageVO.ntceEndde, 4, 6)}"/>-<c:out value="${fn:substring(popupManageVO.ntceEndde, 6, 8)}"/>" readonly>
<a href="#" onClick="javascript:fn_egov_NormalCalendar(document.forms.popupManageVO, document.forms.popupManageVO.ntceEnddeYYYMMDD);">
<input type="button" class="calBtn">
<%-- <img src="<c:url value='/images/egovframework/com/cmm/icon/bu_icon_carlendar.gif' />" align="middle" style="border:0px" alt="달력창팝업버튼이미지"> --%>
</a>
<form:select path="ntceEnddeHH" class="date_format">
<form:options items="${ntceEnddeHH}" itemValue="code" itemLabel="codeNm"/>
</form:select>시
<form:select path="ntceEnddeMM" class="date_format">
<form:options items="${ntceEnddeMM}" itemValue="code" itemLabel="codeNm"/>
</form:select>분
</td>
</tr>
<tr>
<th><span class="reqArea">링크 URL</span></th>
<td>
<form:input path="fileUrl" size="50" cssClass="txaIpt" maxlength="255"/>
<form:errors path="fileUrl" cssClass="error"/>
</td>
</tr>
<tr>
<th><span class="reqArea">팝업사이즈</span></th>
<td >
가로<form:input path="popupWSize" class="dateInput" maxlength="10"/>px 세로<form:input path="popupHSize" class="dateInput" maxlength="10"/>px
<form:errors path="popupWSize" cssClass="error"/>
<form:errors path="popupHSize" cssClass="error"/>
</td>
</tr>
<tr>
<th><span class="reqArea">위치</span></th>
<td>
왼쪽 <form:input path="popupWlc" class="dateInput" maxlength="10"/>px 상단<form:input path="popupHlc" class="dateInput" maxlength="10"/>px
<form:errors path="popupWlc" cssClass="error"/>
<form:errors path="popupHlc" cssClass="error"/>
</td>
</tr>
<tr>
<th><span class="reqArea">스크롤</span></th>
<td>
<ul class="inline">
<li>
<input type="radio" name="scrollType" id="A" value="A" <c:if test="${popupManageVO.scrollType eq 'A'}">checked</c:if>>
<label for="A">자동</label>
</li>
<li>
<input type="radio" name="scrollType" id="Y1" value="Y" <c:if test="${popupManageVO.scrollType eq 'Y'}">checked</c:if>>
<label for="Y1">예</label>
</li>
<li>
<input type="radio" name="scrollType" id="N1" value="N" <c:if test="${popupManageVO.scrollType eq 'N'}">checked</c:if>>
<label for="N1">아니오</label>
</li>
</ul>
</td>
</tr>
<tr>
<th><span class="reqArea">내용</span></th>
<td>
<form:textarea path="nttCn" title="${title} ${inputTxt}" cols="300" rows="20" />
<ckeditor:replace replace="nttCn" basePath="${pageContext.request.contextPath}/html/egovframework/com/cmm/utl/ckeditor/" />
</td>
</tr>
<tr>
<th><span class="reqArea">게시 상태</span></th>
<td>
<ul class="inline">
<li>
<input type="radio" name="ntceAt" id="Y2" value="Y" <c:if test="${popupManageVO.ntceAt eq 'Y'}">checked</c:if>>
<label for="Y2">Y</label>
</li>
<li>
<input type="radio" name="ntceAt" id="N2" value="N" <c:if test="${popupManageVO.ntceAt eq 'N'}">checked</c:if>>
<label for="N2">N</label>
</li>
</ul>
</td>
</tr>
<tr>
<th><span class="reqArea">그만보기 설정 여부</span></th>
<td>
<ul class="inline">
<li>
<input type="radio" name="stopVewAt" id="Y3" value="Y" <c:if test="${popupManageVO.stopVewAt eq 'Y'}">checked</c:if>>
<label for="Y3">Y</label>
</li>
<li>
<input type="radio" name="stopVewAt" id="N3" value="N" <c:if test="${popupManageVO.stopVewAt eq 'N'}">checked</c:if>>
<label for="N3">N</label>
</li>
</ul>
</td>
</tr>
</table>
<div class="btnWrap">
<input type="button" class="btnType1 bg_888888" value="목 록" onclick="fnList(); return false;">
<input type="button" class="btnType1 bg_ed4545" value="삭 제 " onclick="fn_egov_delete_PopupManage(); return false;">
<input type="button" class="btnType1" value="수 정" onclick="fn_egov_save_PopupManage(); return false;">
</div>
</div>
</div>
</form:form>
<form name="searchForm" id="searchForm" method="get" action="<c:url value='/uss/ion/pwm/listPopup.do'/>" ></form>
</body>
</html>