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 : 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"%>
<%@ 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"%>
<%
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?ver=1'/>"></script>
<script type="text/javaScript" language="javascript">
/* 임시파일 삭제버튼 클릭시 */
function delete_item(obj, fileIdx){
if(!confirm("삭제하시겠습니까?")){
return false;
}
$(obj).closest("tr").remove();
_fileForm2.forEach(function(fobj, idx) {
if (fobj.name == ("file_" + fileIdx)) _fileForm2[idx] = "";
});
drawUploadArea();
$('.td_txt_exist > img').attr('src', '/images/no_img.jpg') ;
}
/* pagination 페이지 링크 function */
function goList(){
document.searchForm.submit();
}
/* 등록시 값 확인 */
function fn_checkForm(flag) {
frm = document.writeForm;
if(frm.pozNm.value=="") {
alert($("#codeName").val()+" 제목을 입력해 주십시오");
frm.pozNm.focus();
return false;
}
var regexp = /^[0-9]*$/
if( !regexp.test(frm.sort.value) ) {
alert("노출순서에는 숫자만 입력하세요");
frm.sort.focus();
return false;
}
if(flag==1)
if(frm.file_1.value==""){
alert("이미지를 추가해 주십시오");
return false;
}
return true;
}
/* 글 등록 function */
function fn_popupzone_insert() {
frm = document.writeForm;
frm.action = "<c:url value='/uss/ion/pwm/popupzoneInsert.do'/>";
if(fn_checkForm(1))
frm.submit();
}
/* 배너 삭제 function */
function fn_popupzone_delete() {
var msg;
msg = "해당 "+$("#codeName").val()+"이미지를 삭제하시겠습니까?";
if (confirm(msg)) {
var logParam = "01"==$('form[name=popupzoneVO] input[name=seCd]').val() ? "mainVisual_D" : "popupZoin_D";
frm = document.writeForm;
frm.del.value = frm.pozId.value ;
frm.action = "<c:url value='/uss/ion/pwm/popupzoneListDelete.do'/>?logParam="+logParam;
frm.submit();
}
}
function fn_egov_downFile(atchFileId, fileSn){
window.open("<c:url value='/cmm/fms/FileDown.do?atchFileId="+atchFileId+"&fileSn="+fileSn+"'/>");
}
</script>
<style>
.del_file_btn{border: none;background-color: transparent;background-image: url(/direct/img/upload_delect_img.png);background-repeat: no-repeat;background-position: center center;vertical-align: middle;margin-top: -4px;margin-right: 15px;}
.file_size{color: #0388d2;font-weight: bold;}
.uploaded_obj{width: 100%;}
</style>
</head>
<body>
<form:form commandName="popupzoneVO" name="writeForm" enctype="multipart/form-data" method="post" action="uss/ion/pwm/popupzoneModify.do">
<input type="hidden" name="selectedId" />
<form:input path="pozId" type="hidden" />
<form:input path="del" type="hidden" />
<form:input path="upfile" type="hidden" />
<input type="hidden" name="beSort" value="${popupzoneVO.beSort}" />
<input type="hidden" name="seCd" value="${popupzoneVO.seCd}" />
<form:input path="popupzoneImageFile" type="hidden" />
<!-- 드래그앤 드롭 파라미터 -->
<input type="hidden" name="menuName" value="popupzone" />
<input type="hidden" name="fmsId" value="${popupzoneVO.pozId}" />
<input type="hidden" name="limitcount" value="1" />
<div class="contWrap">
<div class="pageTitle">
<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
<h2 class="titType1 c_222222 fwBold">
<c:forEach items="${imgCodeList}" var="imgCodeList" varStatus="status">
<c:if test="${popupzoneVO.seCd eq imgCodeList.code}">
<input type="hidden" name="codeName" id="codeName" value="${imgCodeList.codeNm}" />
${imgCodeList.codeNm} 등록/수정
</c:if>
</c:forEach>
</h2>
<p class="tType6 c_999999">사이트별로 메뉴벌비주얼/팝업 이미지를 등록, 수정, 삭제할 수 있습니다.</p>
</div>
<div class="pageNav">
<img src="/pb/img/common/homeIcon.png" alt="홈이미지"> > <p class="topDepth">
<c:forEach items="${imgCodeList}" var="imgCodeList" varStatus="status">
<c:if test="${popupzoneVO.seCd eq imgCodeList.code}">
<input type="hidden" name="codeName" id="codeName" value="${imgCodeList.codeNm}" />
${imgCodeList.codeNm} 관리
</c:if>
</c:forEach>
</p> > <p class="subDepth">메인비주얼관리</p>
</div>
<div class="pageCont">
<div class="tableWrap">
<p class="right fwMd"><span class="tType4 c_e40000 fwBold">*</span>는 필수입력 항목입니다.</p>
<table class="tbType2">
<colgroup>
<col style="width: 15%">
<col style="width: 85%">
</colgroup>
<tbody>
<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="${popupzoneVO.siteId eq resultList.siteId}"> selected='selected' </c:if>>
<c:out value="${resultList.siteNm}"/>
</option>
</c:forEach>
</select>
</td>
</tr>
</c:if>
<tr>
<th><span>원본이미지</span></th>
<td>
<c:if test="${popupzoneVO.pozId == ''}">
<div class="imgBox"></div>
</c:if>
<c:if test="${popupzoneVO.pozId != ''}">
<img alt="${popupzoneVO.content}" onerror="this.src='/images/no_img.jpg'" src='<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${popupzoneVO.popupzoneImageFile}"/>' style="max-width:300px;padding: 10px;" />
</c:if>
</td>
</tr>
<tr>
<th>
<span class="reqArea">
<c:forEach items="${imgCodeList}" var="imgCodeList" varStatus="status">
<c:if test="${popupzoneVO.seCd eq imgCodeList.code}">
${imgCodeList.codeNm} 제목
</c:if>
</c:forEach>
</span>
</th>
<td>
<form:input path="pozNm" maxlength="30" />
</td>
</tr>
<tr>
<th>
<span class="reqArea">
이미지 타이틀
</span>
</th>
<td>
<textarea id="content" name="content" rows="10" cols="150">${popupzoneVO.content}</textarea>
</td>
</tr>
<c:if test="${popupzoneVO.seCd ne 01}">
<tr>
<th><span class="reqArea">링크</span></th>
<td>
<form:input path="mlink" maxlength="200" />
</td>
</tr>
</c:if>
<tr>
<th><span class="reqArea">사용여부</span></th>
<td>
<input type="radio" name="useYn" id="useY" value="Y" style="margin-left: 13px; margin-right: 5px;" ${popupzoneVO.useYn eq 'Y' or popupzoneVO.useYn eq '' ? 'checked="checked"' : ''} /><label for="">사용</label>
<input type="radio" name="useYn" id="useN" value="N" style="margin-left: 13px; margin-right: 5px;" ${popupzoneVO.useYn eq 'N' ? 'checked="checked"' : ''} /><label for="">미사용</label>
</td>
</tr>
<c:if test="${popupzoneVO.seCd ne 01}">
<tr>
<th><span class="reqArea">타겟</span></th>
<td>
<input type="radio" name="istarget" id="istargetC" value="C" style="margin-left: 13px; margin-right: 5px;" ${popupzoneVO.istarget eq 'C' or popupzoneVO.istarget eq '' ? 'checked="checked"' : ''} /><label for="">현재창</label>
<input type="radio" name="istarget" id="istargetN" value="N" style="margin-left: 13px; margin-right: 5px;" ${popupzoneVO.istarget eq 'N' ? 'checked="checked"' : ''} /><label for="">새창</label>
</td>
</tr>
</c:if>
<tr>
<th><span class="reqArea">노출순서</span></th>
<td>
<form:input path="sort" maxlength="10" onkeyup="this.value=this.value.replace(/[^-\.0-9]/g,'')"/>
</td>
</tr>
<tr>
<th><span class="reqArea">파일 첨부</span></th>
<td class="upload_area">
<!-- <div class="file_upload_box no_img_box">
<img class="upload_box_img" src="/direct/img/upload_img.png" alt="">
<div class="upload_box_text">
<span class="file_upload_text_1">첨부파일 올리기</span><br>
<span class="file_upload_text_2">(파일을 끌어다 놓으세요)</span>
</div>
</div> -->
<div class="file_upload_box no_img_box fileWrap">
<table>
<colgroup>
<col style="width: 60%">
<col style="width: 10%">
<col style="width: 20%">
<col style="width: 10%">
</colgroup>
<thead>
<tr>
<th>파일명</th>
<th>크기</th>
<th>등록일시</th>
<th>삭제</th>
</tr>
</thead>
</table>
</div>
<div class="fileWrap fileAfter file_list_div asset_no_use_pro_table" style="display:none">
<table>
<colgroup>
<col style="width: 60%">
<col style="width: 10%">
<col style="width: 20%">
<col style="width: 10%">
</colgroup>
<thead>
<tr>
<th>파일명</th>
<th>크기</th>
<th>등록일시</th>
<th>삭제</th>
</tr>
</thead>
<tbody id="tbody_fiielist">
<c:forEach var="fileList" items="${fileList}" varStatus="status">
<tr class="item_${fileList.atchFileId}_${fileList.fileSn} uploaded_obj">
<td class="file_name">
<a href="javascript:fn_egov_downFile('${fileList.atchFileId}','${fileList.fileSn}')">
<img src="/direct/img/upload_hwp_img.png" alt="" />
<span class="file_name_text">${fileList.orignlFileNm}</span>
</a>
</td>
<td><span class="file_size_text" value="${fileList.fileMg}"></span></td>
<td>${fileList.creatDt}</td>
<td>
<input type="button" class="delBtn" onclick="delAtchFile('${fileList.atchFileId}', '${fileList.fileSn}'); return false;">
</td>
<input type="hidden" name="fileSize" class="item_file_size" value="${fileList.fileMg}" >
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div class="fileInfo file_list_div">
<ul class="inline">
<li>
<p><span class="c_456ded fwBold totalfileCount">0</span>개 | <span class="c_456ded fwBold totalfileSize">0MB</span></p>
</li>
<li>
<p>최대 <span class="c_e40000 fwBold limitcount_li"></span>개 | <span class="c_e40000 fwBold upload_number">50MB</span>제한</p>
</li>
</ul>
</div>
<div class="uploadBtm">
<input type="file" name="file_temp" id="file_temp" class="uploadFile">
<span class="uploadTtype4">
<c:if test="${popupzoneVO.seCd eq 01}">
<!-- 메뉴별비주얼 -->메뉴별비주얼
</c:if>
<c:if test="${popupzoneVO.seCd eq 02}">
<!-- 팝업존 --> 우측팝업존
</c:if>
<c:if test="${popupzoneVO.seCd eq 03}">
상단팝업존
</c:if>
이미지 크기는
</span><span class="uploadTtype4" style="color: red;">
<c:if test="${popupzoneVO.seCd eq 01}">
1920 X 340
</c:if>
<c:if test="${popupzoneVO.seCd eq 02}">
390 X 500
</c:if>
<c:if test="${popupzoneVO.seCd eq 03}">
363 X 34
</c:if>
</span>입니다.</p>
</div>
</td>
</tr>
<c:if test="${!empty popupzoneVO.pozId}">
<tr>
<th><span class="reqArea">최종수정일</span></th>
<td>
${popupzoneVO.moddt }
</td>
</tr>
<tr>
<th><span class="reqArea">작성자</span></th>
<td>
${popupzoneVO.registerId }
</td>
</tr>
</c:if>
</tbody>
</table>
</div>
<div class="btnWrap right">
<input type="button" class="btnType1 bg_888888" value="목 록" onclick="goList(); return false;" >
<c:if test="${!empty popupzoneVO.pozId }">
<input type="button" class="btnType1 bg_ed4545" value="삭 제" onclick="fn_popupzone_delete(); return false;" >
<input type="button" class="btnType1" value="수 정" onclick="goSave('${popupzoneVO.seCd eq '01' ? 'mainVisual_U' : 'popupZoin_U'}'); return false;">
</c:if>
<c:if test="${empty popupzoneVO.pozId }">
<input type="button" class="btnType1" value="저 장" onclick="goSave('${popupzoneVO.seCd eq '01' ? 'mainVisual_I' : 'popupZoin_I'}'); return false;" >
</c:if>
</div>
</div>
</div>
</form:form>
<form name="searchForm" id="searchForm" method="get" action="<c:url value='/uss/ion/pwm/popupzoneList.do'/>" >
<input name="seCd" type="hidden" value="${popupzoneVO.seCd}"/>
</form>
</body>
</html>