이호영 이호영 2025-02-24
메인비주얼 이미지 체크 추가
@6d373526846867eb03bb7e68711a7bcd789284df
src/main/java/itn/com/uss/ion/pwm/web/EgovPopupManageController.java
--- 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 @@
             HttpServletRequest request, Model model, HttpSession session)
             throws Exception  {
     	
+    	System.out.println("??????");
+    	
     	MainzoneVO mainzoneVO = new MainzoneVO();
     	if("Modify".equals((String)commandMap.get("pageType"))){  //수정
     		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
+++ src/main/webapp/WEB-INF/jsp/uss/ion/bnr/sub/subMainZoneModify.jsp
@@ -181,6 +181,14 @@
 		frm.content.focus();
 		return false;
 	}
+	
+	console.log('isTbodyEmpty("tbody_fiielist") : ', isTbodyEmpty("tbody_fiielist"));
+	if(isTbodyEmpty("tbody_fiielist")){
+		alert("이미지를 첨부해 주세요");
+		return false;
+	}
+	
+	
 	if(frm.sort.value=="") {
 		alert("노출순서를 입력해 주십시오");
 		frm.sort.focus();
@@ -193,6 +201,9 @@
 			return false;
 		}
 	}
+	
+	
+	
 	
 	var ntceBgndeYYYMMDD = document.getElementById('ntceBgndeYYYMMDD').value;
 	var ntceEnddeYYYMMDD = document.getElementById('ntceEnddeYYYMMDD').value;
@@ -242,6 +253,17 @@
 	window.open("<c:url value='/cmm/fms/FileDown.do?atchFileId="+atchFileId+"&fileSn="+fileSn+"'/>");
 }
 
+function isTbodyEmpty(tbodyId) {
+	const tbody = document.getElementById(tbodyId);
+	if (!tbody) {
+		console.error("해당 ID를 가진 tbody가 없습니다.");
+		return false;
+	}
+	// tbody 내부에 <tr> 태그가 있는지 확인
+	return tbody.querySelector("tr") === null;
+}
+
+
 /* ********************************************************
 * SELECT BOX VALUE FUNCTION
 ******************************************************** */
 
src/main/webapp/WEB-INF/jsp/uss/ion/pwm/MainZoneModify.jsp (added)
+++ src/main/webapp/WEB-INF/jsp/uss/ion/pwm/MainZoneModify.jsp
@@ -0,0 +1,559 @@
+<%--
+  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/EgovCalPopup.js' />"></script>
+<script type="text/javascript" src="<c:url value='/js/EgovMultiFile.js'/>"></script>
+<script type="text/javaScript" language="javascript">
+$( document ).ready(function(){
+	
+	makeDate('ntceBgndeYYYMMDD');
+	makeDate('ntceEnddeYYYMMDD');
+	
+	
+	document.getElementById("mlink").addEventListener("paste", function(event) {
+		// 클립보드 데이터를 가져옴
+		let pastedText = event.clipboardData.getData("text");
+
+		// 콘솔 출력 (붙여넣은 URL 확인)
+
+
+		console.log("붙여넣기 한 URL:", pastedText);
+
+		// 불필요한 파라미터 제거 후 새로운 URL 생성
+		let cleanedUrl = cleanUrlParameters(pastedText);
+
+		// input 필드에 깨끗한 URL 입력
+		setTimeout(() => {
+			this.value = cleanedUrl;
+			console.log("정리된 URL:", cleanedUrl);
+		}, 0);
+	});
+	
+});
+
+/**
+ * URL에서 빈 값의 파라미터를 제거하는 함수
+ * @param {string} url 원본 URL 문자열
+ * @returns {string} 불필요한 파라미터가 제거된 URL
+ */
+	function cleanUrlParameters(url) {
+		try {
+			// URL이 절대경로 (/web/... 형태)인지 확인
+			let hasFullDomain = url.startsWith("http://") || url.startsWith("https://");
+			let urlObj;
+
+			if (hasFullDomain) {
+				// 도메인이 포함된 URL 처리
+				urlObj = new URL(url);
+			} else {
+				// 절대경로 URL 처리 (가상의 도메인 추가 후 파싱)
+				urlObj = new URL("https://www.munjaon.co.kr" + url);
+			}
+
+			let params = new URLSearchParams(urlObj.search);
+
+			// ❗ 값이 비어있는 모든 파라미터 제거
+			for (let [key, value] of [...params.entries()]) {  // `params.entries()`를 배열로 변환하여 반복
+				if (!value.trim()) {  // 값이 비어있는 경우 제거
+					params.delete(key);
+				}
+			}
+
+			// 정리된 URL 반환
+			let cleanedPath = urlObj.pathname + (params.toString() ? "?" + params.toString() : "");
+			// 정리된 URL 반환 (도메인을 제거하고 절대경로만 반환)
+			return cleanedPath.replace(/^https:\/\/www\.munjaon\.co\.kr/, "");
+
+		} catch (e) {
+			console.warn("잘못된 URL 형식:", url);
+			return url; // URL 파싱 실패 시 원본 유지
+		}
+	}
+
+//게시기간이 없으면 초기 값 입력
+function makeDate(id){
+	if($("#"+id).val()== '--'){
+
+		let today = new Date();
+		let formattedDate = today.toISOString().split('T')[0]; // YYYY-MM-DD 형식
+		$("#"+id).val(formattedDate);	
+	}
+}
+
+
+/* pagination 페이지 링크 function */
+function goList(){
+   	document.searchForm.submit();
+}
+
+/* 등록시 값 확인 */
+function fn_checkForm() {
+	frm = document.writeForm;
+	if(frm.mazNm.value=="") {
+		alert("비주얼명을 입력해 주십시오");
+		frm.mazNm.focus();
+		return false;
+	}
+	if(frm.content.value=="") {
+		alert("대체텍스트를 입력해 주십시오");
+		frm.content.focus();
+		return false;
+	}
+	if(frm.sort.value=="") {
+		alert("노출순서를 입력해 주십시오");
+		frm.sort.focus();
+		return false;
+	}else{
+		var regexp = /^[0-9]*$/
+		if( !regexp.test(frm.sort.value) ) {
+			alert("노출순서에는 숫자만 입력하세요");
+			frm.sort.focus();
+			return false;
+		}
+	}
+	
+	return true;
+}
+
+/* 글 등록 function */
+function fn_mainzone_insert() {
+	frm = document.writeForm;
+	frm.action = "<c:url value='/uss/ion/pwm/mainzoneInsert.do'/>";
+	if(fn_checkForm())
+		frm.submit();
+}
+
+/* 배너 삭제 function */
+function fn_mainzone_delete() {
+	var msg;
+	msg = "해당 메인이미지를 삭제하시겠습니까?";
+	
+	if (confirm(msg)) {
+		frm = document.writeForm;
+		frm.del.value = frm.mazId.value ;
+		frm.action = "<c:url value='/uss/ion/pwm/mainzoneListDelete.do'/>";
+	    frm.submit();
+	}
+	
+}
+
+function validate(method_parm) {
+	frm = document.writeForm;
+	if(frm.mazNm.value=="") {
+		alert("비주얼명을 입력해 주십시오");
+		frm.mazNm.focus();
+		return false;
+	}
+	if(frm.content.value=="") {
+		alert("대체텍스트를 입력해 주십시오");
+		frm.content.focus();
+		return false;
+	}
+	
+	console.log('isTbodyEmpty("tbody_fiielist") : ', isTbodyEmpty("tbody_fiielist"));
+	if(isTbodyEmpty("tbody_fiielist")){
+		alert("이미지를 첨부해 주세요");
+		return false;
+	}
+	
+	
+	if(frm.sort.value=="") {
+		alert("노출순서를 입력해 주십시오");
+		frm.sort.focus();
+		return false;
+	}else{
+		var regexp = /^[0-9]*$/
+		if( !regexp.test(frm.sort.value) ) {
+			alert("노출순서에는 숫자만 입력하세요");
+			frm.sort.focus();
+			return false;
+		}
+	}
+	
+	
+	
+	
+	var ntceBgndeYYYMMDD = document.getElementById('ntceBgndeYYYMMDD').value;
+	var ntceEnddeYYYMMDD = document.getElementById('ntceEnddeYYYMMDD').value;
+
+	console.log("ntceBgndeYYYMMDD ::: "+ntceBgndeYYYMMDD);
+	console.log("ntceEnddeYYYMMDD ::: "+ntceEnddeYYYMMDD);
+	
+	if(ntceBgndeYYYMMDD ==""){
+		
+		alert("게시기간 시작일을 입력해 주세요.");
+		return false;
+		
+	}else if(ntceEnddeYYYMMDD == ""){
+		
+		alert("게시기간 종료일을 입력해 주세요.");
+		return false;
+		
+	}else{
+		
+		var iChkBeginDe = Number( ntceBgndeYYYMMDD.replaceAll("-","") );
+		var iChkEndDe = Number( ntceEnddeYYYMMDD.replaceAll("-","") );
+	
+		if(iChkBeginDe > iChkEndDe || iChkEndDe < iChkBeginDe ){
+			alert("게시시작일자는 게시종료일자 보다 클수 없고,\n게시종료일자는 게시시작일자 보다 작을수 없습니다. ");
+			return;
+		}
+	
+		frm.ntceBgnde.value = ntceBgndeYYYMMDD.replaceAll('-','') + fn_egov_SelectBoxValue('ntceBgndeHH') +  fn_egov_SelectBoxValue('ntceBgndeMM');
+		frm.ntceEndde.value = ntceEnddeYYYMMDD.replaceAll('-','') + fn_egov_SelectBoxValue('ntceEnddeHH') +  fn_egov_SelectBoxValue('ntceEnddeMM');
+		
+	}
+	
+	var msg = "메인 배너를 등록하시겠습니까?";
+	
+	if(method_parm == "mainzone_U"){
+		
+		msg ="메인 배너를 수정하시겠습니까?";
+		
+	}
+	
+	if(!confirm(msg)){
+		return false;
+	}	
+	goSave(method_parm);
+}
+function fn_egov_downFile(atchFileId, fileSn){
+	window.open("<c:url value='/cmm/fms/FileDown.do?atchFileId="+atchFileId+"&fileSn="+fileSn+"'/>");
+}
+
+function isTbodyEmpty(tbodyId) {
+	const tbody = document.getElementById(tbodyId);
+	if (!tbody) {
+		console.error("해당 ID를 가진 tbody가 없습니다.");
+		return false;
+	}
+	// tbody 내부에 <tr> 태그가 있는지 확인
+	return tbody.querySelector("tr") === null;
+}
+
+
+/* ********************************************************
+* 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;
+}
+
+</script>
+<style>
+.date_format{width:91px !important;}
+.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="mainzoneVO" name="writeForm" enctype="multipart/form-data" method="post">
+	<input type="hidden" name="deviceType" id="deviceType" value="P"/>
+	<input type="hidden" name="selectedId" />	
+	<form:input path="mazId" type="hidden"  />
+	<form:input path="del" type="hidden"  />
+	<form:input path="upfile" type="hidden"  />
+	<form:input path="mainzoneImageFile" type="hidden"  />
+	<form:hidden path="ntceBgnde" />
+	<form:hidden path="ntceEndde" />
+	
+	<input type="hidden" name="beSort" value="${mainzoneVO.beSort}" />
+	<!-- 드래그앤 드롭 파라미터 -->
+	<input type="hidden" name="menuName" value="mainzone" />
+	<input type="hidden" name="fmsId" value="${mainzoneVO.mazId}" />
+	<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">메인비주얼 등록/수정</h2>
+			<p class="tType6 c_999999">사이트별로 사용자 메인 상단에 적용되는 비주얼 이미지를 등록, 수정, 삭제할 수 있습니다.</p>
+		</div>
+		<div class="pageNav">
+			<img src="/pb/img/common/homeIcon.png" alt="홈이미지">&ensp;>&ensp;<p class="topDepth">비주얼관리</p>&ensp;>&ensp;<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>
+					<%-- 	<tr>
+							<th class="td_title1"><span class="star_t"></span>메인화면에 보이는 메인 이미지</th>
+							<td colspan="3" class="td_txt_exist">
+								<c:if test="${mainzoneVO.mazId == null}">
+										등록된 메인 이미지가 없습니다.
+								</c:if>
+								<c:if test="${mainzoneVO.mazId != null}">
+									<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" />
+								</c:if>
+							</td>
+						</tr> --%>
+						<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="${mainzoneVO.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="${mainzoneVO.mazId == ''}">
+									<div class="imgBox"></div>
+								</c:if>
+								<c:if test="${mainzoneVO.mazId != ''}">
+										<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;" />
+										<%-- <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;" /> --%>
+								</c:if>
+							</td>
+						</tr>
+		<!-- 				<tr> -->
+		<!-- 					<th class="td_title1"><span class="star_t">*</span>기기종류</th> -->
+		<!-- 					<td colspan="3"> -->
+		<!-- 						<input type="radio" name="deviceType" id="deviceType" value="P" style="margin-left: 13px; margin-right: 5px;"  -->
+		<!-- 							checked="checked" -->
+		<%-- 							${mainzoneVO.deviceType eq 'P' or mainzoneVO.deviceType eq '' ? 'checked="checked"' : ''} --%>
+		<!-- 						>PC -->
+		<!-- 						<input type="radio" name="deviceType" id="deviceType" value="M" style="margin-left: 13px; margin-right: 5px;"  -->
+		<%-- 						${mainzoneVO.deviceType eq 'M' ? 'checked="checked"' : ''} --%>
+		<!-- 						>모바일 -->
+		<!-- 					</td> -->
+		<!-- 				</tr> -->
+						<tr>
+							<th><span class="reqArea">비주얼명</span></th>
+							<td>
+								<form:input path="mazNm" maxlength="30" />
+							</td>
+						</tr>
+						<tr>
+							<th><span class="reqArea">대체텍스트</span></th>
+							<td>
+								<form:input path="content" maxlength="500" />
+							</td>
+						</tr>
+						<tr>
+							<th><span class="reqArea">사용여부</span></th>
+							<td>
+								<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>
+								<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>
+							</td>
+						</tr>
+						
+						<tr>
+							<th><span class="reqArea">노출순서</span></th>
+							<td colspan="3">
+								<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>
+								<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(mainzoneVO.ntceBgnde, 0, 4)}"/>-<c:out value="${fn:substring(mainzoneVO.ntceBgnde, 4, 6)}"/>-<c:out value="${fn:substring(mainzoneVO.ntceBgnde, 6, 8)}"/>" readonly>
+							    
+							    <a href="#" onClick="javascript:fn_egov_NormalCalendar(document.forms.mainzoneVO, document.forms.mainzoneVO.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>분
+							    &nbsp&nbsp~&nbsp&nbsp
+							    <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>
+							    <a href="#" onClick="javascript:fn_egov_NormalCalendar(document.forms.mainzoneVO, document.forms.mainzoneVO.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>링크주소</span></th>
+							<td colspan="3">
+								<form:input path="mlink" maxlength="200" />
+							</td>
+						</tr>
+						<tr>
+							<th><span class="reqArea">파일 첨부</span></th>
+							<td class="upload_area">
+								<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" id="file_temp" name="file_temp" class="uploadFile">
+									<!-- <span class="uploadTtype4">메인비주얼 이미지 크기는 </span><span class="uploadTtype4" style="color: red;">1920 X 843 </span>입니다.</p> -->
+								</div>
+							</td>
+						</tr>
+						
+						<%-- <tr>
+							<th class="td_title1"><span class="star_t">*</span>첨부 파일</th>
+							<td colspan="3" class="td_txt_exist">
+								<c:import url="/cmm/fms/selectFileInfsForUpdate.do" charEncoding="utf-8">
+						        	<c:param name="param_atchFileId" value="${mainzoneVO.mainzoneImageFile }" />
+						        	<c:param name="img_view" value="N" />
+						        	<c:param name="img_view_w" value="200" />
+						        	<c:param name="img_view_h" value="200" />
+						        	<c:param name="updateFlag" value="N" />
+									<c:param name="img_change_view" value="Y" />
+						        </c:import>
+							</td>
+						</tr> --%>
+						<c:if test="${!empty mainzoneVO.mazId}">
+							<tr>
+								<th><span class="reqArea">최종수정일</span></th>
+								<td>
+									${mainzoneVO.moddt} 
+								</td>
+							</tr>
+							
+							<tr>
+								<th><span class="reqArea">작성자</span></th>
+								<td>
+									${mainzoneVO.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 mainzoneVO.mazId }">
+					<input type="button" class="btnType1 bg_ed4545" value="삭 제" onclick="fn_mainzone_delete(); return false;" >
+					<input type="button" class="btnType1" value="수 정" onclick="validate('mainzone_U'); return false;">
+				</c:if>
+				<c:if test="${empty mainzoneVO.mazId }">
+					<input type="button" class="btnType1" value="저 장" onclick="validate('mainzone_I'); return false;">
+				</c:if>
+			</div>					
+	 	</div>
+	</div>
+</form:form>
+<form name="searchForm" id="searchForm" method="get" action="<c:url value='/uss/ion/pwm/mainzoneList.do'/>" ></form>
+</body>
+</html>
src/main/webapp/WEB-INF/jsp/uss/ion/pwm/MainzoneList.jsp
--- 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 @@
 
 /* 메인창 수정 화면*/
 function fn_mainzone_view(id, pageType){
+	console.log(id, pageType);
 	document.modiForm.selectedId.value = id;
 	document.modiForm.pageType.value = "Modify";
    	document.modiForm.action = "<c:url value='/uss/ion/pwm/mainzoneModify.do'/>";
Add a comment
List