24/12/18 팝업관리 리스트 수정

This commit is contained in:
subsub 2024-12-18 12:55:30 +09:00
parent b71643bc71
commit 79b567ccfc

View File

@ -1,15 +1,30 @@
<%--
Class Name : EgovPopupList.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"%> <%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> <%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <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> <!DOCTYPE html>
<html lang="ko"> <html lang="ko">
<head> <head>
<title>팝업창관리</title> <title>팝업창관리 관리</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javaScript" language="javascript"> <script type="text/javaScript" language="javascript">
/* ******************************************************** /* ********************************************************
@ -23,14 +38,12 @@ function linkPage(pageNo){
} }
listForm.submit(); listForm.submit();
} }
/* ******************************************************** /* ********************************************************
* 등록 처리 함수 * 등록 처리 함수
******************************************************** */ ******************************************************** */
function fn_egov_regist_PopupManage(){ function fn_egov_regist_PopupManage(){
location.href = "<c:url value='/uss/ion/pwm/registPopup.do' />"; location.href = "<c:url value='/uss/ion/pwm/registPopup.do' />";
} }
/* ******************************************************** /* ********************************************************
* 상세회면 처리 함수 * 상세회면 처리 함수
******************************************************** */ ******************************************************** */
@ -46,47 +59,94 @@ function fn_egov_detail_PopupManage(popupId){
* 검색 함수 * 검색 함수
******************************************************** */ ******************************************************** */
function fn_egov_search_PopupManage(){ function fn_egov_search_PopupManage(){
<%--<c:if test="${!empty loginId}">
if(""!= document.listForm.searchKeyword.value){
updateRecentSearch();//최근검색어 등록
}
</c:if>--%>
linkPage(1); linkPage(1);
} }
/* ******************************************************** /* ********************************************************
* 체크 박스 선택 함수 * 체크 박스 선택 함수
******************************************************** */ ******************************************************** */
function fn_egov_checkAll_PopupManage(){ function fn_egov_checkAll_PopupManage(){
var FLength = document.getElementsByName("checkList").length; var FLength = document.getElementsByName("checkList").length;
var checkAllValue = document.getElementById('checkAll').checked; var checkAllValue = document.getElementById('checkAll').checked;
//undefined
if( FLength == 1){ if( FLength == 1){
document.getElementById("checkList").checked = checkAllValue; document.getElementById("checkList").checked = checkAllValue;
} else { }{
for(var i=0; i < FLength; i++) { for(var i=0; i < FLength; i++)
{
document.getElementsByName("checkList")[i].checked = checkAllValue; document.getElementsByName("checkList")[i].checked = checkAllValue;
} }
} }
}
}
/* ******************************************************** /* ********************************************************
* 팝업창 미리보기 * 팝업창 미리보기
******************************************************** */ ******************************************************** */
function fn_egov_view_PopupManage(){ function fn_egov_view_PopupManage(){
if($("input:checkbox[name='checkList']").is(":checked")==false) { if($("input:checkbox[name='checkList']").is(":checked")==false)
{
alert("선택된 항목이 없습니다."); alert("선택된 항목이 없습니다.");
return false; return false;
} }
var FLength = document.getElementsByName("checkList").length; var FLength = document.getElementsByName("checkList").length;
if( FLength == 1){ if( FLength == 1){
if(document.getElementById("checkList").checked == true){ if(document.getElementById("checkList").checked == true){
fn_egov_ajaxPopupInfo_PopupManage( document.getElementById("checkList").value ); fn_egov_ajaxPopupInfo_PopupManage( document.getElementById("checkList").value );
} }
} else { }{
for(var i=0; i < FLength; i++) { for(var i=0; i < FLength; i++)
{
if(document.getElementsByName("checkList")[i].checked == true){ if(document.getElementsByName("checkList")[i].checked == true){
fn_egov_ajaxPopupInfo_PopupManage( document.getElementsByName("checkList")[i].value ); fn_egov_ajaxPopupInfo_PopupManage( document.getElementsByName("checkList")[i].value );
} }
} }
} }
return;
} }
/* ********************************************************
* 팝업창 정보 Ajax통신으로 정보 획득
******************************************************** */
function fn_egov_ajaxPopupInfo_PopupManage_back(popupIds){
var url = "<c:url value='/uss/ion/pwm/ajaxPopupManageInfo.do' />";
var param = {
popupId: popupIds
};
new Ajax.Request(url,
{
asynchronous:true,
method:"post",
parameters: param ,
evalJSON: false,
evalJS: false,
onLoading : function() {/*로딩중*/ },
onSuccess : function(returnValue)
{
var returnValueArr = returnValue.responseText.split("||");
fn_egov_popupOpen_PopupManage(popupIds,
returnValueArr[0],
returnValueArr[1],
returnValueArr[2],
returnValueArr[3],
returnValueArr[4],
returnValueArr[5],
returnValueArr[6]
);
},
onFailure: function() {/*불러오기 실패*/},
onComplete : function() {/*모든 것을 완료*/}
});
}
function fn_egov_ajaxPopupInfo_PopupManage(popupIds){ function fn_egov_ajaxPopupInfo_PopupManage(popupIds){
$.ajax({ $.ajax({
@ -105,6 +165,28 @@ function fn_egov_ajaxPopupInfo_PopupManage(popupIds){
}); });
} }
/* ********************************************************
* 팝업창 오픈
******************************************************** */
function fn_egov_popupOpen_PopupManage1(popupId,fileUrl,width,height,top,left,stopVewAt,popupType){
var url = "<c:url value='/uss/ion/pwm/openPopupManage.do' />?";
//url = url + "fileUrl=" + fileUrl;
fileUrl = " /uss/ion/pwm/sample/EgovPopupSample"; //샘플파일
url = url + "fileUrl=" + fileUrl;
url = url + "&stopVewAt=" + stopVewAt;
url = url + "&popupId=" + popupId;
var name = popupId;
if(popupType == "W"){ //윈도우
var openWindows = window.open(url,name,"width="+width+",height="+height+",top="+top+",left="+left+",toolbar=no,status=no,location=no,scrollbars=yes,menubar=no,resizable=yes");
if (window.focus) {openWindows.focus()}
}else if(popupType == "L"){ //레이어
$("#layer_pop").fadeIn();
}
}
function fn_egov_popupOpen_PopupManage(popupVo){ function fn_egov_popupOpen_PopupManage(popupVo){
if(popupVo.popupType == "W"){ //윈도우 if(popupVo.popupType == "W"){ //윈도우
var url = "<c:url value='/uss/ion/pwm/openPopupManage.do' />?"; var url = "<c:url value='/uss/ion/pwm/openPopupManage.do' />?";
@ -117,6 +199,7 @@ function fn_egov_popupOpen_PopupManage(popupVo){
if(scrollbars == 'A' || scrollbars == 'Y') scrollbars= "yes"; if(scrollbars == 'A' || scrollbars == 'Y') scrollbars= "yes";
else scrollbars = "no"; else scrollbars = "no";
var openWindows = window.open(url,name,"width="+popupVo.popupWSize+",height="+popupVo.popupHSize+",top="+popupVo.popupHlc+",left="+popupVo.popupWlc+",toolbar=no,status=no,location=no,scrollbars="+scrollbars+",menubar=no,resizable=yes"); var openWindows = window.open(url,name,"width="+popupVo.popupWSize+",height="+popupVo.popupHSize+",top="+popupVo.popupHlc+",left="+popupVo.popupWlc+",toolbar=no,status=no,location=no,scrollbars="+scrollbars+",menubar=no,resizable=yes");
//if (window.focus) {openWindows.focus()}
}else if(popupVo.popupType == "L"){ //레이어 }else if(popupVo.popupType == "L"){ //레이어
var layer_clone = $("#layer_pop").clone().prop('id', 'layer_pop_'+popupVo.popupId); var layer_clone = $("#layer_pop").clone().prop('id', 'layer_pop_'+popupVo.popupId);
layer_clone.css("position" , "absolute") ; layer_clone.css("position" , "absolute") ;
@ -130,11 +213,26 @@ function fn_egov_popupOpen_PopupManage(popupVo){
} }
} }
/* ********************************************************
* 팝업창 오픈 쿠키 정보 OPEN
******************************************************** */
function fnGetCookie(name) {
var prefix = name + "=";
var cookieStartIndex = document.cookie.indexOf(prefix);
if (cookieStartIndex == -1) return null;
var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length);
if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length;
return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex));
}
function fn_layerClose(obj){ function fn_layerClose(obj){
var tempLayer = obj.parentElement.parentElement.parentElement.parentElement; var tempLayer = obj.parentElement.parentElement.parentElement.parentElement;
if(tempLayer != null){ if(tempLayer != null){
tempLayer.remove(); tempLayer.remove();
} }
} }
function fncPopupListDelete() { function fncPopupListDelete() {
@ -151,6 +249,7 @@ function fncPopupListDelete() {
</script> </script>
<style type="text/css"> <style type="text/css">
.pop-layer .pop-container { .pop-layer .pop-container {
/* padding: 20px 25px; */
} }
.pop-layer p.ctxt { .pop-layer p.ctxt {
color: #666; color: #666;
@ -158,6 +257,8 @@ function fncPopupListDelete() {
} }
.pop-layer .btn-r { .pop-layer .btn-r {
width: 100%; width: 100%;
/* margin: 10px 0 20px; */
/* padding-top: 10px; */
border-top: 1px solid #DDD; border-top: 1px solid #DDD;
text-align: center; text-align: center;
} }
@ -165,28 +266,30 @@ function fncPopupListDelete() {
display: none; display: none;
position: absolute; position: absolute;
background-color: #fff; background-color: #fff;
/* border: 5px solid #3571B5; */
z-index: 10; z-index: 10;
} }
</style> </style>
</head> </head>
<body> <body>
<form:form id="listForm" name="listForm" action="<c:url value='/uss/ion/pwm/listPopup.do'/>" method="post"> <form name="listForm" action="<c:url value='/uss/ion/pwm/listPopup.do'/>" method="post">
<input type="hidden" name="popupId"/> <input name="pageIndex" type="hidden" value="<c:out value='${popupManageVO.pageIndex}'/>"/>
<input type="hidden" name="pageIndex" value="<c:out value='${popupManageVO.pageIndex}' default='1' />"/>
<input type="hidden" name="searchSortCnd" value="<c:out value="${popupManageVO.searchSortCnd}" />" /> <input type="hidden" name="searchSortCnd" value="<c:out value="${popupManageVO.searchSortCnd}" />" />
<input type="hidden" name="searchSortOrd" value="<c:out value="${popupManageVO.searchSortOrd}" />" /> <input type="hidden" name="searchSortOrd" value="<c:out value="${popupManageVO.searchSortOrd}" />" />
<!-- cont -->
<div class="cont_wrap"> <div class="cont_wrap">
<div class="box"> <div class="box">
<div class="cont_tit"> <div class="cont_tit">
<h2>팝업관리</h2> <h2>팝업관리</h2>
<!-- <ul class="cont_nav">
<li class="home"><a href="/"><i></i></a></li>
<li><span class="cur_nav">관리자 관리</span></li>
</ul> -->
</div> </div>
<!-- cont --> <!-- cont -->
<div class="cont"> <div class="cont">
<!-- list_top --> <!-- list_top -->
<div class="list_top table_top"> <div class="list_top table_top">
<p class="table_total_text">총 건수 : <span class="color_blue fw_bold"><c:out value="${paginationInfo.totalRecordCount}" /></span>건</p> <p>총 건수 : <span class="color_blue fw_bold"><c:out value="${paginationInfo.totalRecordCount}" /></span>건</p>
<div class="list_util search_wrap"> <div class="list_util search_wrap">
<select class="sel2 searchSel" id="searchCondition" name="searchCondition" title="조회조건"> <select class="sel2 searchSel" id="searchCondition" name="searchCondition" title="조회조건">
<option value="" >전체</option> <option value="" >전체</option>
@ -194,8 +297,8 @@ function fncPopupListDelete() {
<option value="FILE_URL" <c:if test="${searchCondition == 'FILE_URL'}">selected="selected"</c:if> >링크URL</option> <option value="FILE_URL" <c:if test="${searchCondition == 'FILE_URL'}">selected="selected"</c:if> >링크URL</option>
</select> </select>
<input type="text" id="searchKeyword" name="searchKeyword" value="<c:out value='${popupManageVO.searchKeyword}'/>" class="search_input" placeholder="검색어를 입력하세요"> <input type="text" id="searchKeyword" name="searchKeyword" value="<c:out value='${popupManageVO.searchKeyword}'/>" class="search_input" placeholder="검색어를 입력하세요" maxlength="255">
<button class="btn btn_text blue_border" onclick="fn_egov_search_PopupManage(); return false;">검색</button> <button class="btn_search btn btn_text blue_border" onclick="fn_egov_search_PopupManage(); return false;">검색</button>
<select class="sel2" name="pageUnit" id="pageUnit" onchange="linkPage(1);" title="줄 선택" style="width: 140px"> <select class="sel2" name="pageUnit" id="pageUnit" onchange="linkPage(1);" title="줄 선택" style="width: 140px">
<option value='10' <c:if test="${popupManageVO.pageUnit == '10' or popupManageVO.pageUnit == ''}">selected</c:if>>10줄</option> <option value='10' <c:if test="${popupManageVO.pageUnit == '10' or popupManageVO.pageUnit == ''}">selected</c:if>>10줄</option>
@ -225,10 +328,12 @@ function fncPopupListDelete() {
<th scope="col">번호<button class="sort sortBtn" id="sort_POPUP_ID">▲</button></th> <th scope="col">번호<button class="sort sortBtn" id="sort_POPUP_ID">▲</button></th>
<th scope="col">제목<button class="sort sortBtn" id="sort_POPUP_TITLE_NM">▲</button></th> <th scope="col">제목<button class="sort sortBtn" id="sort_POPUP_TITLE_NM">▲</button></th>
<th scope="col">시작일/종료일<button class="sort sortBtn" id="sort_NTCE_BGNDE">▲</button></th> <th scope="col">시작일/종료일<button class="sort sortBtn" id="sort_NTCE_BGNDE">▲</button></th>
<!-- <th scope="col">링크URL<button class="sort sortBtn" id="sort_FILE_URL">▲</button></th> -->
<th scope="col">팝업 위치<button class="sort sortBtn" id="sort_FILE_URL">▲</button></th> <th scope="col">팝업 위치<button class="sort sortBtn" id="sort_FILE_URL">▲</button></th>
<th scope="col">이미지크기<button class="sort sortBtn" id="sort_FRST_REGIST_PNTTM">▲</button></th> <th scope="col">이미지크기<button class="sort sortBtn" id="sort_FRST_REGIST_PNTTM">▲</button></th>
<th scope="col">링크사용여부<button class="sort sortBtn" id="sort_NTCE_AT">▲</button></th> <th scope="col">링크사용여부<button class="sort sortBtn" id="sort_NTCE_AT">▲</button></th>
<th scope="col">등록일<button class="sort sortBtn" id="sort_FRST_REGIST_PNTTM">▲</button></th> <th scope="col">등록일<button class="sort sortBtn" id="sort_FRST_REGIST_PNTTM">▲</button></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -256,6 +361,7 @@ function fncPopupListDelete() {
<fmt:formatDate value="${ntceBgnde}" pattern="yyyy-MM-dd HH:mm"/><br/> ~ <fmt:formatDate value="${ntceEndde}" pattern="yyyy-MM-dd HH:mm"/> <fmt:formatDate value="${ntceBgnde}" pattern="yyyy-MM-dd HH:mm"/><br/> ~ <fmt:formatDate value="${ntceEndde}" pattern="yyyy-MM-dd HH:mm"/>
</td> </td>
<td> <td>
<%-- <c:out value="${result.fileUrl}"/> --%>
화면 상단으로 부터 : <c:out value="${result.popupVrticlLc}"/> 화면 상단으로 부터 : <c:out value="${result.popupVrticlLc}"/>
</br> </br>
화면 좌측으로 부터 : <c:out value="${result.popupWidthLc}"/> 화면 좌측으로 부터 : <c:out value="${result.popupWidthLc}"/>
@ -276,7 +382,7 @@ function fncPopupListDelete() {
</tr> </tr>
</c:forEach> </c:forEach>
<c:if test="${empty resultList}"> <c:if test="${empty resultList}">
<tr><td colspan="8"><spring:message code="common.nodata.msg" /></td></tr> <tr><td colspan="7"><spring:message code="common.nodata.msg" /></td></tr>
</c:if> </c:if>
</tbody> </tbody>
</table> </table>
@ -284,13 +390,17 @@ function fncPopupListDelete() {
<!-- //list --> <!-- //list -->
<!-- btn_wrap --> <!-- btn_wrap -->
<div class="btn_wrap"> <div class="btn_wrap btn_layout01">
<button type="button" class="btn btn_text btn_46 red_border" onclick="fncPopupListDelete(); return false;">삭제</button> <div class="area_left">
<button type="button" class="btn btn_text btn_46 blue_fill" onclick="location.href='/uss/ion/pwm/egovPopupRegist.do'; return false;">등록</button> <button type="button" class="btnType03 btn btn_text btn_46 red_border" onclick="fncPopupListDelete(); return false;">삭제</button>
</div>
<div class="area_right">
<button type="button" class="btnType02 btn btn_text btn_46 blue_fill" onclick="location.href='/uss/ion/pwm/egovPopupRegist.do'; return false;">등록</button>
</div>
</div> </div>
<!-- //btn_wrap --> <!-- //btn_wrap -->
<!-- 페이지 네비게이션 시작 --> <!-- page -->
<c:if test="${!empty resultList}"> <c:if test="${!empty resultList}">
<div class="page"> <div class="page">
<ul class="inline"> <ul class="inline">
@ -298,19 +408,28 @@ function fncPopupListDelete() {
</ul> </ul>
</div> </div>
</c:if> </c:if>
<!-- //페이지 네비게이션 끝 -->
</div> </div>
<!-- //cont --> <!-- //cont -->
</div> </div>
</div> </div>
<!-- //cont --> </form>
</form:form>
<form name="subForm" method="get" action="<c:url value='/uss/ion/pwm/detailPopup.do'/>"> <form name="subForm" method="get" action="<c:url value='/uss/ion/pwm/detailPopup.do'/>">
<input name="popupId" type="hidden" value="" /> <input name="popupId" type="hidden" value="" />
<input name="pageIndex" type="hidden" value="<c:out value='${popupManageVO.pageIndex}'/>"/> <input name="pageIndex" type="hidden" value="<c:out value='${popupManageVO.pageIndex}'/>"/>
<input name="cmd" type="hidden" value="<c:out value=''/>"/> <input name="cmd" type="hidden" value="<c:out value=''/>"/>
</form> </form>
<form name="modiForm" method="get" action="<c:url value='/sym/ccm/cde/EgovCcmCmmnDetailCodeModify.do'/>" >
<input name="codeId" type="hidden" />
<input name="cmd" type="hidden" />
<input name="code" type="hidden" />
</form>
<form name="searchForm" method="get" action="<c:url value='/uss/ion/pwm/listPopup.do'/>">
<input name="pageIndex" type="hidden" value="1" />
<input name="searchCondition" type="hidden" />
<input name="searchKeyword" type="hidden" />
<input name="delSttus" type="hidden" />
<input name="searchConditionSite" type="hidden" />
</form>
<div id="layer_pop" class="pop-layer"> <div id="layer_pop" class="pop-layer">
<div class="pop-container"> <div class="pop-container">
@ -318,9 +437,11 @@ function fncPopupListDelete() {
<div class="btn-r"> <div class="btn-r">
<a href="#" onclick="fn_layerClose(this); return false;" class="btn-layerClose">Close</a><br/> <a href="#" onclick="fn_layerClose(this); return false;" class="btn-layerClose">Close</a><br/>
</div> </div>
<!--// content-->
</div> </div>
</div> </div>
</div> </div>
</body> </body>
</html> </html>