--- src/main/java/itn/com/uss/ion/pwm/web/EgovPopupManageController.java
+++ src/main/java/itn/com/uss/ion/pwm/web/EgovPopupManageController.java
... | ... | @@ -845,6 +845,8 @@ |
| 845 | 845 |
HttpServletRequest request, Model model, HttpSession session) |
| 846 | 846 |
throws Exception {
|
| 847 | 847 |
|
| 848 |
+ System.out.println("??????");
|
|
| 849 |
+ |
|
| 848 | 850 |
MainzoneVO mainzoneVO = new MainzoneVO(); |
| 849 | 851 |
if("Modify".equals((String)commandMap.get("pageType"))){ //수정
|
| 850 | 852 |
String mazId = (String)commandMap.get("selectedId");
|
--- src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneModify.jsp
+++ src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneModify.jsp
... | ... | @@ -181,6 +181,14 @@ |
| 181 | 181 |
frm.content.focus(); |
| 182 | 182 |
return false; |
| 183 | 183 |
} |
| 184 |
+ |
|
| 185 |
+ console.log('isTbodyEmpty("tbody_fiielist") : ', isTbodyEmpty("tbody_fiielist"));
|
|
| 186 |
+ if(isTbodyEmpty("tbody_fiielist")){
|
|
| 187 |
+ alert("이미지를 첨부해 주세요");
|
|
| 188 |
+ return false; |
|
| 189 |
+ } |
|
| 190 |
+ |
|
| 191 |
+ |
|
| 184 | 192 |
if(frm.sort.value=="") {
|
| 185 | 193 |
alert("노출순서를 입력해 주십시오");
|
| 186 | 194 |
frm.sort.focus(); |
... | ... | @@ -193,6 +201,9 @@ |
| 193 | 201 |
return false; |
| 194 | 202 |
} |
| 195 | 203 |
} |
| 204 |
+ |
|
| 205 |
+ |
|
| 206 |
+ |
|
| 196 | 207 |
|
| 197 | 208 |
var ntceBgndeYYYMMDD = document.getElementById('ntceBgndeYYYMMDD').value;
|
| 198 | 209 |
var ntceEnddeYYYMMDD = document.getElementById('ntceEnddeYYYMMDD').value;
|
... | ... | @@ -242,6 +253,17 @@ |
| 242 | 253 |
window.open("<c:url value='/cmm/fms/FileDown.do?atchFileId="+atchFileId+"&fileSn="+fileSn+"'/>");
|
| 243 | 254 |
} |
| 244 | 255 |
|
| 256 |
+function isTbodyEmpty(tbodyId) {
|
|
| 257 |
+ const tbody = document.getElementById(tbodyId); |
|
| 258 |
+ if (!tbody) {
|
|
| 259 |
+ console.error("해당 ID를 가진 tbody가 없습니다.");
|
|
| 260 |
+ return false; |
|
| 261 |
+ } |
|
| 262 |
+ // tbody 내부에 <tr> 태그가 있는지 확인 |
|
| 263 |
+ return tbody.querySelector("tr") === null;
|
|
| 264 |
+} |
|
| 265 |
+ |
|
| 266 |
+ |
|
| 245 | 267 |
/* ******************************************************** |
| 246 | 268 |
* SELECT BOX VALUE FUNCTION |
| 247 | 269 |
******************************************************** */ |
+++ src/main/webapp/WEB-INF/jsp/uss/ion/pwm/MainZoneModify.jsp
... | ... | @@ -0,0 +1,559 @@ |
| 1 | +<%-- | |
| 2 | + Class Name : EgovPopupList.jsp | |
| 3 | + Description : 팝업창관리 목록 페이지 | |
| 4 | + Modification Information | |
| 5 | + | |
| 6 | + 수정일 수정자 수정내용 | |
| 7 | + ------- -------- --------------------------- | |
| 8 | + 2009.09.16 장동한 최초 생성 | |
| 9 | + | |
| 10 | + author : 공통서비스 개발팀 장동한 | |
| 11 | + since : 2009.09.16 | |
| 12 | + | |
| 13 | + Copyright (C) 2009 by MOPAS All right reserved. | |
| 14 | +--%> | |
| 15 | +<%@ page contentType="text/html; charset=utf-8"%> | |
| 16 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 17 | +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 18 | +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> | |
| 19 | +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 20 | +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> | |
| 21 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 22 | +<% | |
| 23 | + response.setHeader("Cache-Control","no-store"); | |
| 24 | + response.setHeader("Pragma","no-cache"); | |
| 25 | + response.setDateHeader("Expires",0); | |
| 26 | + if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache"); | |
| 27 | +%> | |
| 28 | +<c:set var="ImgUrl" value="${pageContext.request.contextPath}/images/egovframework/com/cmm/" /> | |
| 29 | +<c:set var="CssUrl" value="${pageContext.request.contextPath}/css/egovframework/com/" /> | |
| 30 | +<c:set var="JsUrl" value="${pageContext.request.contextPath}/js/egovframework/com/uss/ion/pwm/"/> | |
| 31 | +<!DOCTYPE html> | |
| 32 | +<html lang="ko"> | |
| 33 | +<head> | |
| 34 | +<title>팝업창관리 관리</title> | |
| 35 | +<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| 36 | +<script type="text/javascript" src="<c:url value='/js/EgovCalPopup.js' />"></script> | |
| 37 | +<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script> | |
| 38 | +<script type="text/javaScript" language="javascript"> | |
| 39 | +$( document ).ready(function(){ | |
| 40 | + | |
| 41 | + makeDate('ntceBgndeYYYMMDD'); | |
| 42 | + makeDate('ntceEnddeYYYMMDD'); | |
| 43 | + | |
| 44 | + | |
| 45 | + document.getElementById("mlink").addEventListener("paste", function(event) { | |
| 46 | + // 클립보드 데이터를 가져옴 | |
| 47 | + let pastedText = event.clipboardData.getData("text"); | |
| 48 | + | |
| 49 | + // 콘솔 출력 (붙여넣은 URL 확인) | |
| 50 | + | |
| 51 | + | |
| 52 | + console.log("붙여넣기 한 URL:", pastedText); | |
| 53 | + | |
| 54 | + // 불필요한 파라미터 제거 후 새로운 URL 생성 | |
| 55 | + let cleanedUrl = cleanUrlParameters(pastedText); | |
| 56 | + | |
| 57 | + // input 필드에 깨끗한 URL 입력 | |
| 58 | + setTimeout(() => { | |
| 59 | + this.value = cleanedUrl; | |
| 60 | + console.log("정리된 URL:", cleanedUrl); | |
| 61 | + }, 0); | |
| 62 | + }); | |
| 63 | + | |
| 64 | +}); | |
| 65 | + | |
| 66 | +/** | |
| 67 | + * URL에서 빈 값의 파라미터를 제거하는 함수 | |
| 68 | + * @param {string} url 원본 URL 문자열 | |
| 69 | + * @returns {string} 불필요한 파라미터가 제거된 URL | |
| 70 | + */ | |
| 71 | + function cleanUrlParameters(url) { | |
| 72 | + try { | |
| 73 | + // URL이 절대경로 (/web/... 형태)인지 확인 | |
| 74 | + let hasFullDomain = url.startsWith("http://") || url.startsWith("https://"); | |
| 75 | + let urlObj; | |
| 76 | + | |
| 77 | + if (hasFullDomain) { | |
| 78 | + // 도메인이 포함된 URL 처리 | |
| 79 | + urlObj = new URL(url); | |
| 80 | + } else { | |
| 81 | + // 절대경로 URL 처리 (가상의 도메인 추가 후 파싱) | |
| 82 | + urlObj = new URL("https://www.munjaon.co.kr" + url); | |
| 83 | + } | |
| 84 | + | |
| 85 | + let params = new URLSearchParams(urlObj.search); | |
| 86 | + | |
| 87 | + // ❗ 값이 비어있는 모든 파라미터 제거 | |
| 88 | + for (let [key, value] of [...params.entries()]) { // `params.entries()`를 배열로 변환하여 반복 | |
| 89 | + if (!value.trim()) { // 값이 비어있는 경우 제거 | |
| 90 | + params.delete(key); | |
| 91 | + } | |
| 92 | + } | |
| 93 | + | |
| 94 | + // 정리된 URL 반환 | |
| 95 | + let cleanedPath = urlObj.pathname + (params.toString() ? "?" + params.toString() : ""); | |
| 96 | + // 정리된 URL 반환 (도메인을 제거하고 절대경로만 반환) | |
| 97 | + return cleanedPath.replace(/^https:\/\/www\.munjaon\.co\.kr/, ""); | |
| 98 | + | |
| 99 | + } catch (e) { | |
| 100 | + console.warn("잘못된 URL 형식:", url); | |
| 101 | + return url; // URL 파싱 실패 시 원본 유지 | |
| 102 | + } | |
| 103 | + } | |
| 104 | + | |
| 105 | +//게시기간이 없으면 초기 값 입력 | |
| 106 | +function makeDate(id){ | |
| 107 | + if($("#"+id).val()== '--'){ | |
| 108 | + | |
| 109 | + let today = new Date(); | |
| 110 | + let formattedDate = today.toISOString().split('T')[0]; // YYYY-MM-DD 형식 | |
| 111 | + $("#"+id).val(formattedDate); | |
| 112 | + } | |
| 113 | +} | |
| 114 | + | |
| 115 | + | |
| 116 | +/* pagination 페이지 링크 function */ | |
| 117 | +function goList(){ | |
| 118 | + document.searchForm.submit(); | |
| 119 | +} | |
| 120 | + | |
| 121 | +/* 등록시 값 확인 */ | |
| 122 | +function fn_checkForm() { | |
| 123 | + frm = document.writeForm; | |
| 124 | + if(frm.mazNm.value=="") { | |
| 125 | + alert("비주얼명을 입력해 주십시오"); | |
| 126 | + frm.mazNm.focus(); | |
| 127 | + return false; | |
| 128 | + } | |
| 129 | + if(frm.content.value=="") { | |
| 130 | + alert("대체텍스트를 입력해 주십시오"); | |
| 131 | + frm.content.focus(); | |
| 132 | + return false; | |
| 133 | + } | |
| 134 | + if(frm.sort.value=="") { | |
| 135 | + alert("노출순서를 입력해 주십시오"); | |
| 136 | + frm.sort.focus(); | |
| 137 | + return false; | |
| 138 | + }else{ | |
| 139 | + var regexp = /^[0-9]*$/ | |
| 140 | + if( !regexp.test(frm.sort.value) ) { | |
| 141 | + alert("노출순서에는 숫자만 입력하세요"); | |
| 142 | + frm.sort.focus(); | |
| 143 | + return false; | |
| 144 | + } | |
| 145 | + } | |
| 146 | + | |
| 147 | + return true; | |
| 148 | +} | |
| 149 | + | |
| 150 | +/* 글 등록 function */ | |
| 151 | +function fn_mainzone_insert() { | |
| 152 | + frm = document.writeForm; | |
| 153 | + frm.action = "<c:url value='/uss/ion/pwm/mainzoneInsert.do'/>"; | |
| 154 | + if(fn_checkForm()) | |
| 155 | + frm.submit(); | |
| 156 | +} | |
| 157 | + | |
| 158 | +/* 배너 삭제 function */ | |
| 159 | +function fn_mainzone_delete() { | |
| 160 | + var msg; | |
| 161 | + msg = "해당 메인이미지를 삭제하시겠습니까?"; | |
| 162 | + | |
| 163 | + if (confirm(msg)) { | |
| 164 | + frm = document.writeForm; | |
| 165 | + frm.del.value = frm.mazId.value ; | |
| 166 | + frm.action = "<c:url value='/uss/ion/pwm/mainzoneListDelete.do'/>"; | |
| 167 | + frm.submit(); | |
| 168 | + } | |
| 169 | + | |
| 170 | +} | |
| 171 | + | |
| 172 | +function validate(method_parm) { | |
| 173 | + frm = document.writeForm; | |
| 174 | + if(frm.mazNm.value=="") { | |
| 175 | + alert("비주얼명을 입력해 주십시오"); | |
| 176 | + frm.mazNm.focus(); | |
| 177 | + return false; | |
| 178 | + } | |
| 179 | + if(frm.content.value=="") { | |
| 180 | + alert("대체텍스트를 입력해 주십시오"); | |
| 181 | + frm.content.focus(); | |
| 182 | + return false; | |
| 183 | + } | |
| 184 | + | |
| 185 | + console.log('isTbodyEmpty("tbody_fiielist") : ', isTbodyEmpty("tbody_fiielist")); | |
| 186 | + if(isTbodyEmpty("tbody_fiielist")){ | |
| 187 | + alert("이미지를 첨부해 주세요"); | |
| 188 | + return false; | |
| 189 | + } | |
| 190 | + | |
| 191 | + | |
| 192 | + if(frm.sort.value=="") { | |
| 193 | + alert("노출순서를 입력해 주십시오"); | |
| 194 | + frm.sort.focus(); | |
| 195 | + return false; | |
| 196 | + }else{ | |
| 197 | + var regexp = /^[0-9]*$/ | |
| 198 | + if( !regexp.test(frm.sort.value) ) { | |
| 199 | + alert("노출순서에는 숫자만 입력하세요"); | |
| 200 | + frm.sort.focus(); | |
| 201 | + return false; | |
| 202 | + } | |
| 203 | + } | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + var ntceBgndeYYYMMDD = document.getElementById('ntceBgndeYYYMMDD').value; | |
| 209 | + var ntceEnddeYYYMMDD = document.getElementById('ntceEnddeYYYMMDD').value; | |
| 210 | + | |
| 211 | + console.log("ntceBgndeYYYMMDD ::: "+ntceBgndeYYYMMDD); | |
| 212 | + console.log("ntceEnddeYYYMMDD ::: "+ntceEnddeYYYMMDD); | |
| 213 | + | |
| 214 | + if(ntceBgndeYYYMMDD ==""){ | |
| 215 | + | |
| 216 | + alert("게시기간 시작일을 입력해 주세요."); | |
| 217 | + return false; | |
| 218 | + | |
| 219 | + }else if(ntceEnddeYYYMMDD == ""){ | |
| 220 | + | |
| 221 | + alert("게시기간 종료일을 입력해 주세요."); | |
| 222 | + return false; | |
| 223 | + | |
| 224 | + }else{ | |
| 225 | + | |
| 226 | + var iChkBeginDe = Number( ntceBgndeYYYMMDD.replaceAll("-","") ); | |
| 227 | + var iChkEndDe = Number( ntceEnddeYYYMMDD.replaceAll("-","") ); | |
| 228 | + | |
| 229 | + if(iChkBeginDe > iChkEndDe || iChkEndDe < iChkBeginDe ){ | |
| 230 | + alert("게시시작일자는 게시종료일자 보다 클수 없고,\n게시종료일자는 게시시작일자 보다 작을수 없습니다. "); | |
| 231 | + return; | |
| 232 | + } | |
| 233 | + | |
| 234 | + frm.ntceBgnde.value = ntceBgndeYYYMMDD.replaceAll('-','') + fn_egov_SelectBoxValue('ntceBgndeHH') + fn_egov_SelectBoxValue('ntceBgndeMM'); | |
| 235 | + frm.ntceEndde.value = ntceEnddeYYYMMDD.replaceAll('-','') + fn_egov_SelectBoxValue('ntceEnddeHH') + fn_egov_SelectBoxValue('ntceEnddeMM'); | |
| 236 | + | |
| 237 | + } | |
| 238 | + | |
| 239 | + var msg = "메인 배너를 등록하시겠습니까?"; | |
| 240 | + | |
| 241 | + if(method_parm == "mainzone_U"){ | |
| 242 | + | |
| 243 | + msg ="메인 배너를 수정하시겠습니까?"; | |
| 244 | + | |
| 245 | + } | |
| 246 | + | |
| 247 | + if(!confirm(msg)){ | |
| 248 | + return false; | |
| 249 | + } | |
| 250 | + goSave(method_parm); | |
| 251 | +} | |
| 252 | +function fn_egov_downFile(atchFileId, fileSn){ | |
| 253 | + window.open("<c:url value='/cmm/fms/FileDown.do?atchFileId="+atchFileId+"&fileSn="+fileSn+"'/>"); | |
| 254 | +} | |
| 255 | + | |
| 256 | +function isTbodyEmpty(tbodyId) { | |
| 257 | + const tbody = document.getElementById(tbodyId); | |
| 258 | + if (!tbody) { | |
| 259 | + console.error("해당 ID를 가진 tbody가 없습니다."); | |
| 260 | + return false; | |
| 261 | + } | |
| 262 | + // tbody 내부에 <tr> 태그가 있는지 확인 | |
| 263 | + return tbody.querySelector("tr") === null; | |
| 264 | +} | |
| 265 | + | |
| 266 | + | |
| 267 | +/* ******************************************************** | |
| 268 | +* SELECT BOX VALUE FUNCTION | |
| 269 | +******************************************************** */ | |
| 270 | +function fn_egov_SelectBoxValue(sbName) | |
| 271 | +{ | |
| 272 | + var FValue = ""; | |
| 273 | + for(var i=0; i < document.getElementById(sbName).length; i++) | |
| 274 | + { | |
| 275 | + if(document.getElementById(sbName).options[i].selected == true){ | |
| 276 | + | |
| 277 | + FValue=document.getElementById(sbName).options[i].value; | |
| 278 | + } | |
| 279 | + } | |
| 280 | + | |
| 281 | + return FValue; | |
| 282 | +} | |
| 283 | + | |
| 284 | +</script> | |
| 285 | +<style> | |
| 286 | +.date_format{width:91px !important;} | |
| 287 | +.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;} | |
| 288 | +.file_size{color: #0388d2;font-weight: bold;} | |
| 289 | +.uploaded_obj{width: 100%;} | |
| 290 | +</style> | |
| 291 | +</head> | |
| 292 | +<body> | |
| 293 | +<form:form commandName="mainzoneVO" name="writeForm" enctype="multipart/form-data" method="post"> | |
| 294 | + <input type="hidden" name="deviceType" id="deviceType" value="P"/> | |
| 295 | + <input type="hidden" name="selectedId" /> | |
| 296 | + <form:input path="mazId" type="hidden" /> | |
| 297 | + <form:input path="del" type="hidden" /> | |
| 298 | + <form:input path="upfile" type="hidden" /> | |
| 299 | + <form:input path="mainzoneImageFile" type="hidden" /> | |
| 300 | + <form:hidden path="ntceBgnde" /> | |
| 301 | + <form:hidden path="ntceEndde" /> | |
| 302 | + | |
| 303 | + <input type="hidden" name="beSort" value="${mainzoneVO.beSort}" /> | |
| 304 | + <!-- 드래그앤 드롭 파라미터 --> | |
| 305 | + <input type="hidden" name="menuName" value="mainzone" /> | |
| 306 | + <input type="hidden" name="fmsId" value="${mainzoneVO.mazId}" /> | |
| 307 | + <input type="hidden" name="limitcount" value="1" /><!-- 최대 업로드 파일갯수 --> | |
| 308 | + | |
| 309 | + <div class="contWrap"> | |
| 310 | + <div class="pageTitle"> | |
| 311 | + <div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div> | |
| 312 | + <h2 class="titType1 c_222222 fwBold">메인비주얼 등록/수정</h2> | |
| 313 | + <p class="tType6 c_999999">사이트별로 사용자 메인 상단에 적용되는 비주얼 이미지를 등록, 수정, 삭제할 수 있습니다.</p> | |
| 314 | + </div> | |
| 315 | + <div class="pageNav"> | |
| 316 | + <img src="/pb/img/common/homeIcon.png" alt="홈이미지"> > <p class="topDepth">비주얼관리</p> > <p class="subDepth">메인비주얼관리</p> | |
| 317 | + </div> | |
| 318 | + <div class="pageCont"> | |
| 319 | + <div class="tableWrap"> | |
| 320 | + <p class="right fwMd"><span class="tType4 c_e40000 fwBold">*</span>는 필수입력 항목입니다.</p> | |
| 321 | + <table class="tbType2"> | |
| 322 | + <colgroup> | |
| 323 | + <col style="width: 15%"> | |
| 324 | + <col style="width: 85%"> | |
| 325 | + </colgroup> | |
| 326 | + <tbody> | |
| 327 | + <%-- <tr> | |
| 328 | + <th class="td_title1"><span class="star_t"></span>메인화면에 보이는 메인 이미지</th> | |
| 329 | + <td colspan="3" class="td_txt_exist"> | |
| 330 | + <c:if test="${mainzoneVO.mazId == null}"> | |
| 331 | + 등록된 메인 이미지가 없습니다. | |
| 332 | + </c:if> | |
| 333 | + <c:if test="${mainzoneVO.mazId != null}"> | |
| 334 | + <img alt="${mainzoneVO.content}" onerror="this.src='/images/no_img.jpg'" src='<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${mainzoneVO.mainzoneImageFile}"/>' width="196" height="237" /> | |
| 335 | + </c:if> | |
| 336 | + </td> | |
| 337 | + </tr> --%> | |
| 338 | + <c:if test="${siteId eq 'super'}"> | |
| 339 | + <tr> | |
| 340 | + <th><span class="reqArea">사이트</span></th> | |
| 341 | + <td> | |
| 342 | + <select name="siteId" id="siteId" title="권한"> | |
| 343 | + <c:forEach var="resultList" items="${siteManageList}" varStatus="status"> | |
| 344 | + <option value="<c:out value="${resultList.siteId}"/>" | |
| 345 | + <c:if test="${mainzoneVO.siteId eq resultList.siteId}"> selected='selected' </c:if>> | |
| 346 | + <c:out value="${resultList.siteNm}"/> | |
| 347 | + </option> | |
| 348 | + </c:forEach> | |
| 349 | + </select> | |
| 350 | + </td> | |
| 351 | + </tr> | |
| 352 | + </c:if> | |
| 353 | + <tr> | |
| 354 | + <th><span>원본이미지</span></th> | |
| 355 | + <td> | |
| 356 | + <c:if test="${mainzoneVO.mazId == ''}"> | |
| 357 | + <div class="imgBox"></div> | |
| 358 | + </c:if> | |
| 359 | + <c:if test="${mainzoneVO.mazId != ''}"> | |
| 360 | + <img alt="${mainzoneVO.content}" onerror="this.src='/pb/img/noImg.png'" src='<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${mainzoneVO.mainzoneImageFile}"/>' style="max-width:300px;padding: 10px;" /> | |
| 361 | + <%-- <img alt="${mainzoneVO.content}" onerror="this.src='/images/no_img.jpg'" src='<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${mainzoneVO.mainzoneImageFile}"/>' style="max-width:600px;" /> --%> | |
| 362 | + </c:if> | |
| 363 | + </td> | |
| 364 | + </tr> | |
| 365 | + <!-- <tr> --> | |
| 366 | + <!-- <th class="td_title1"><span class="star_t">*</span>기기종류</th> --> | |
| 367 | + <!-- <td colspan="3"> --> | |
| 368 | + <!-- <input type="radio" name="deviceType" id="deviceType" value="P" style="margin-left: 13px; margin-right: 5px;" --> | |
| 369 | + <!-- checked="checked" --> | |
| 370 | + <%-- ${mainzoneVO.deviceType eq 'P' or mainzoneVO.deviceType eq '' ? 'checked="checked"' : ''} --%> | |
| 371 | + <!-- >PC --> | |
| 372 | + <!-- <input type="radio" name="deviceType" id="deviceType" value="M" style="margin-left: 13px; margin-right: 5px;" --> | |
| 373 | + <%-- ${mainzoneVO.deviceType eq 'M' ? 'checked="checked"' : ''} --%> | |
| 374 | + <!-- >모바일 --> | |
| 375 | + <!-- </td> --> | |
| 376 | + <!-- </tr> --> | |
| 377 | + <tr> | |
| 378 | + <th><span class="reqArea">비주얼명</span></th> | |
| 379 | + <td> | |
| 380 | + <form:input path="mazNm" maxlength="30" /> | |
| 381 | + </td> | |
| 382 | + </tr> | |
| 383 | + <tr> | |
| 384 | + <th><span class="reqArea">대체텍스트</span></th> | |
| 385 | + <td> | |
| 386 | + <form:input path="content" maxlength="500" /> | |
| 387 | + </td> | |
| 388 | + </tr> | |
| 389 | + <tr> | |
| 390 | + <th><span class="reqArea">사용여부</span></th> | |
| 391 | + <td> | |
| 392 | + <input type="radio" name="useYn" id="useY" value="Y" style="margin-left: 13px; margin-right: 5px;" ${mainzoneVO.useYn eq 'Y' or mainzoneVO.useYn eq '' ? 'checked="checked"' : ''} /><label for="">사용</label> | |
| 393 | + <input type="radio" name="useYn" id="useN" value="N" style="margin-left: 13px; margin-right: 5px;" ${mainzoneVO.useYn eq 'N' ? 'checked="checked"' : ''} /><label for="">미사용</label> | |
| 394 | + </td> | |
| 395 | + </tr> | |
| 396 | + | |
| 397 | + <tr> | |
| 398 | + <th><span class="reqArea">노출순서</span></th> | |
| 399 | + <td colspan="3"> | |
| 400 | + <form:input path="sort" maxlength="10" onkeyup="this.value=this.value.replace(/[^-\.0-9]/g,'')"/> | |
| 401 | + </td> | |
| 402 | + </tr> | |
| 403 | + <tr> | |
| 404 | + <th><span class="reqArea">게시기간</span></th> | |
| 405 | + <td> | |
| 406 | + <input type="hidden" name="cal_url" id="cal_url" value="<c:url value='/sym/cmm/EgovNormalCalPopup.do'/>" > | |
| 407 | + <input type="text" class="date_format" name="ntceBgndeYYYMMDD" id="ntceBgndeYYYMMDD" size="10" maxlength="10" class="readOnlyClass" value="<c:out value="${fn:substring(mainzoneVO.ntceBgnde, 0, 4)}"/>-<c:out value="${fn:substring(mainzoneVO.ntceBgnde, 4, 6)}"/>-<c:out value="${fn:substring(mainzoneVO.ntceBgnde, 6, 8)}"/>" readonly> | |
| 408 | + | |
| 409 | + <a href="#" onClick="javascript:fn_egov_NormalCalendar(document.forms.mainzoneVO, document.forms.mainzoneVO.ntceBgndeYYYMMDD);"> | |
| 410 | + <input type="button" class="calBtn"> | |
| 411 | + <%-- <img src="<c:url value='/images/egovframework/com/cmm/icon/bu_icon_carlendar.gif' />" align="middle" style="border:0px" alt="달력창팝업버튼이미지"> --%> | |
| 412 | + </a> | |
| 413 | + <form:select path="ntceBgndeHH" class="date_format"> | |
| 414 | + <form:options items="${ntceBgndeHH}" itemValue="code" itemLabel="codeNm"/> | |
| 415 | + </form:select>시 | |
| 416 | + <form:select path="ntceBgndeMM" class="date_format"> | |
| 417 | + <form:options items="${ntceBgndeMM}" itemValue="code" itemLabel="codeNm"/> | |
| 418 | + </form:select>분 | |
| 419 | +   ~   | |
| 420 | + <input type="text" class="date_format" name="ntceEnddeYYYMMDD" id="ntceEnddeYYYMMDD" size="10" maxlength="10" class="readOnlyClass" value="<c:out value="${fn:substring(mainzoneVO.ntceEndde, 0, 4)}"/>-<c:out value="${fn:substring(mainzoneVO.ntceEndde, 4, 6)}"/>-<c:out value="${fn:substring(mainzoneVO.ntceEndde, 6, 8)}"/>" readonly> | |
| 421 | + <a href="#" onClick="javascript:fn_egov_NormalCalendar(document.forms.mainzoneVO, document.forms.mainzoneVO.ntceEnddeYYYMMDD);"> | |
| 422 | + <input type="button" class="calBtn"> | |
| 423 | + <%-- <img src="<c:url value='/images/egovframework/com/cmm/icon/bu_icon_carlendar.gif' />" align="middle" style="border:0px" alt="달력창팝업버튼이미지"> --%> | |
| 424 | + </a> | |
| 425 | + <form:select path="ntceEnddeHH" class="date_format"> | |
| 426 | + <form:options items="${ntceEnddeHH}" itemValue="code" itemLabel="codeNm"/> | |
| 427 | + </form:select>시 | |
| 428 | + <form:select path="ntceEnddeMM" class="date_format"> | |
| 429 | + <form:options items="${ntceEnddeMM}" itemValue="code" itemLabel="codeNm"/> | |
| 430 | + </form:select>분 | |
| 431 | + </td> | |
| 432 | + </tr> | |
| 433 | + <tr> | |
| 434 | + <th><span>링크주소</span></th> | |
| 435 | + <td colspan="3"> | |
| 436 | + <form:input path="mlink" maxlength="200" /> | |
| 437 | + </td> | |
| 438 | + </tr> | |
| 439 | + <tr> | |
| 440 | + <th><span class="reqArea">파일 첨부</span></th> | |
| 441 | + <td class="upload_area"> | |
| 442 | + <div class="file_upload_box no_img_box fileWrap"> | |
| 443 | + <table> | |
| 444 | + <colgroup> | |
| 445 | + <col style="width: 60%"> | |
| 446 | + <col style="width: 10%"> | |
| 447 | + <col style="width: 20%"> | |
| 448 | + <col style="width: 10%"> | |
| 449 | + </colgroup> | |
| 450 | + <thead> | |
| 451 | + <tr> | |
| 452 | + <th>파일명</th> | |
| 453 | + <th>크기</th> | |
| 454 | + <th>등록일시</th> | |
| 455 | + <th>삭제</th> | |
| 456 | + </tr> | |
| 457 | + </thead> | |
| 458 | + </table> | |
| 459 | + </div> | |
| 460 | + <div class="fileWrap fileAfter file_list_div asset_no_use_pro_table" style="display:none"> | |
| 461 | + <table> | |
| 462 | + <colgroup> | |
| 463 | + <col style="width: 60%"> | |
| 464 | + <col style="width: 10%"> | |
| 465 | + <col style="width: 20%"> | |
| 466 | + <col style="width: 10%"> | |
| 467 | + </colgroup> | |
| 468 | + <thead> | |
| 469 | + <tr> | |
| 470 | + <th>파일명</th> | |
| 471 | + <th>크기</th> | |
| 472 | + <th>등록일시</th> | |
| 473 | + <th>삭제</th> | |
| 474 | + </tr> | |
| 475 | + </thead> | |
| 476 | + <tbody id="tbody_fiielist"> | |
| 477 | + <c:forEach var="fileList" items="${fileList}" varStatus="status"> | |
| 478 | + <tr class="item_${fileList.atchFileId}_${fileList.fileSn} uploaded_obj"> | |
| 479 | + <td class="file_name"> | |
| 480 | + <a href="javascript:fn_egov_downFile('${fileList.atchFileId}','${fileList.fileSn}')"> | |
| 481 | + <img src="/direct/img/upload_hwp_img.png" alt="" /> | |
| 482 | + <span class="file_name_text">${fileList.orignlFileNm}</span> | |
| 483 | + </a> | |
| 484 | + </td> | |
| 485 | + <td><span class="file_size_text" value="${fileList.fileMg}"></span></td> | |
| 486 | + <td>${fileList.creatDt}</td> | |
| 487 | + <td> | |
| 488 | + <input type="button" class="delBtn" onclick="delAtchFile('${fileList.atchFileId}', '${fileList.fileSn}'); return false;"> | |
| 489 | + </td> | |
| 490 | + <input type="hidden" name="fileSize" class="item_file_size" value="${fileList.fileMg}" > | |
| 491 | + </tr> | |
| 492 | + </c:forEach> | |
| 493 | + </tbody> | |
| 494 | + </table> | |
| 495 | + </div> | |
| 496 | + <div class="fileInfo file_list_div"> | |
| 497 | + <ul class="inline"> | |
| 498 | + <li> | |
| 499 | + <p><span class="c_456ded fwBold totalfileCount">0</span>개 | <span class="c_456ded fwBold totalfileSize">0MB</span></p> | |
| 500 | + </li> | |
| 501 | + <li> | |
| 502 | + <p>최대 <span class="c_e40000 fwBold limitcount_li"></span>개 | <span class="c_e40000 fwBold upload_number">50MB</span>제한</p> | |
| 503 | + </li> | |
| 504 | + </ul> | |
| 505 | + </div> | |
| 506 | + <div class="uploadBtm"> | |
| 507 | + <input type="file" id="file_temp" name="file_temp" class="uploadFile"> | |
| 508 | + <!-- <span class="uploadTtype4">메인비주얼 이미지 크기는 </span><span class="uploadTtype4" style="color: red;">1920 X 843 </span>입니다.</p> --> | |
| 509 | + </div> | |
| 510 | + </td> | |
| 511 | + </tr> | |
| 512 | + | |
| 513 | + <%-- <tr> | |
| 514 | + <th class="td_title1"><span class="star_t">*</span>첨부 파일</th> | |
| 515 | + <td colspan="3" class="td_txt_exist"> | |
| 516 | + <c:import url="/cmm/fms/selectFileInfsForUpdate.do" charEncoding="utf-8"> | |
| 517 | + <c:param name="param_atchFileId" value="${mainzoneVO.mainzoneImageFile }" /> | |
| 518 | + <c:param name="img_view" value="N" /> | |
| 519 | + <c:param name="img_view_w" value="200" /> | |
| 520 | + <c:param name="img_view_h" value="200" /> | |
| 521 | + <c:param name="updateFlag" value="N" /> | |
| 522 | + <c:param name="img_change_view" value="Y" /> | |
| 523 | + </c:import> | |
| 524 | + </td> | |
| 525 | + </tr> --%> | |
| 526 | + <c:if test="${!empty mainzoneVO.mazId}"> | |
| 527 | + <tr> | |
| 528 | + <th><span class="reqArea">최종수정일</span></th> | |
| 529 | + <td> | |
| 530 | + ${mainzoneVO.moddt} | |
| 531 | + </td> | |
| 532 | + </tr> | |
| 533 | + | |
| 534 | + <tr> | |
| 535 | + <th><span class="reqArea">작성자</span></th> | |
| 536 | + <td> | |
| 537 | + ${mainzoneVO.registerId} | |
| 538 | + </td> | |
| 539 | + </tr> | |
| 540 | + </c:if> | |
| 541 | + </tbody> | |
| 542 | + </table> | |
| 543 | + </div> | |
| 544 | + <div class="btnWrap right"> | |
| 545 | + <input type="button" class="btnType1 bg_888888" value="목 록" onclick="goList(); return false;" > | |
| 546 | + <c:if test="${!empty mainzoneVO.mazId }"> | |
| 547 | + <input type="button" class="btnType1 bg_ed4545" value="삭 제" onclick="fn_mainzone_delete(); return false;" > | |
| 548 | + <input type="button" class="btnType1" value="수 정" onclick="validate('mainzone_U'); return false;"> | |
| 549 | + </c:if> | |
| 550 | + <c:if test="${empty mainzoneVO.mazId }"> | |
| 551 | + <input type="button" class="btnType1" value="저 장" onclick="validate('mainzone_I'); return false;"> | |
| 552 | + </c:if> | |
| 553 | + </div> | |
| 554 | + </div> | |
| 555 | + </div> | |
| 556 | +</form:form> | |
| 557 | +<form name="searchForm" id="searchForm" method="get" action="<c:url value='/uss/ion/pwm/mainzoneList.do'/>" ></form> | |
| 558 | +</body> | |
| 559 | +</html> |
--- src/main/webapp/WEB-INF/jsp/uss/ion/pwm/MainzoneList.jsp
+++ src/main/webapp/WEB-INF/jsp/uss/ion/pwm/MainzoneList.jsp
... | ... | @@ -90,6 +90,7 @@ |
| 90 | 90 |
|
| 91 | 91 |
/* 메인창 수정 화면*/ |
| 92 | 92 |
function fn_mainzone_view(id, pageType){
|
| 93 |
+ console.log(id, pageType); |
|
| 93 | 94 |
document.modiForm.selectedId.value = id; |
| 94 | 95 |
document.modiForm.pageType.value = "Modify"; |
| 95 | 96 |
document.modiForm.action = "<c:url value='/uss/ion/pwm/mainzoneModify.do'/>"; |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?