|
|
@@ -0,0 +1,908 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="ko"
|
|
|
+ xmlns:th="http://www.thymeleaf.org">
|
|
|
+<!--
|
|
|
+ *******************************************************************************
|
|
|
+ * @source : PlanWebDetailForm.html
|
|
|
+ * @desc : 웹 수정 / 웹 등록 팝업 화면 Page
|
|
|
+ *============================================================================
|
|
|
+ * SISUN
|
|
|
+ * Copyright(C) 2020 TSIT, All rights reserved.
|
|
|
+ *============================================================================
|
|
|
+ * VER DATE AUTHOR DESCRIPTION
|
|
|
+ * === =========== ========== =============================================
|
|
|
+ * 1.0 2020.02.04 sowon 최초 작성
|
|
|
+ *******************************************************************************
|
|
|
+ -->
|
|
|
+<div class="modalPopup" data-width="1510" data-height="865">
|
|
|
+ <div class="panelStyle" >
|
|
|
+ <div class="panelTitle">
|
|
|
+ <h2 th:text="${'기획전 웹 ' + (mode == 'N' ? '등록' : '수정')}">기획전 웹 수정</h2>
|
|
|
+ <button type="button" class="close" onclick="uifnPopupClose('popupPlanWebDetail')"><i class="fa fa-times"></i></button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 기획전 웹 등록 -->
|
|
|
+ <div class="panelContent" th:if="${mode == 'N'}">
|
|
|
+ <form id="planWebRegisterForm" name="planWebRegisterForm" action="#" th:action="@{'/system/user/save'}" th:method="post">
|
|
|
+ <input type="hidden" name="mode" th:value="${mode}"/>
|
|
|
+ <div style="margin-bottom:10px;">
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col style="width: 150px;"/>
|
|
|
+ <col/>
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th>기존 기획전</th>
|
|
|
+ <td>
|
|
|
+ <select name="planSq" id="planSq">
|
|
|
+ <option value="">선택</option>
|
|
|
+ <option th:if="${planList}" th:each="oneData, status : ${planList}" th:value="${oneData.planSq}" th:text="|[${oneData.planSq}] ${oneData.planNm}|"></option>
|
|
|
+ </select>
|
|
|
+ <button type="button" class="btn btn-default btn-lg" onclick="fnPlanCopyPopup();">기획전복사</button>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="cardArea" style="height: 750px;margin: -5px;">
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col style="width:10%"/>
|
|
|
+ <col style="width:40%;"/>
|
|
|
+ <col style="width:10%;"/>
|
|
|
+ <col style="width:35%;"/>
|
|
|
+ <col/>
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">기획전구분<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="planGb" required="required" data-valid-name="기획전구분" onchange="fnChangePlanGb(this);">
|
|
|
+ <option value="">선택</option>
|
|
|
+ <option value="P">기획전</option>
|
|
|
+ <option value="E">이벤트</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">기획전탬플릿유형<i class="star"></i></th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <select name="templateType" required="required" data-valid-name="기획전탬플릿유형">
|
|
|
+ <option value="">선택</option>
|
|
|
+ <option value="H">HTML</option>
|
|
|
+ <option value="T">TEXT</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- <tr>
|
|
|
+ <th class="dashR">회원구분<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="custGb" required="required" data-valid-name="회원구분">
|
|
|
+ <option th:if="${custGbList}" th:each="oneData, status : ${custGbList}" th:value="${oneData.cd}" th:selected="${oneData.cd} == 'Y'" th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">회원등급<i class="star"></i></th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <select name="custGrade" required="required" data-valid-name="회원등급">
|
|
|
+ <option value="0">전체</option>
|
|
|
+ <option th:if="${custGradeList}" th:each="oneData, status : ${custGradeList}" th:value="${oneData.cd}" th:selected="${oneData.cd} == 'Y'" th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr> -->
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">프론트 구분<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="frontGb" id="frontGb" required="required" data-valid-name="프론트 구분">
|
|
|
+ <option value="">선택</option>
|
|
|
+ <option value="A">전체</option>
|
|
|
+ <option value="P">웹</option>
|
|
|
+ <option value="M">모바일</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">기획전명<i class="star"></i></th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <input type="text" name="planNm" id="planNm" maxlength="50" required="required" data-valid-name="기획전명"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">진행기간<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <input type="text" class="schDate w100" id="viewStartDtNew" name="startSearchDate" maxlength="10" required="required" data-valid-name="노출기간" />
|
|
|
+ <select name="startSearchHour" required="required" data-valid-name="진행기간 시작시간">
|
|
|
+ <th:block th:each="num, index : ${#numbers.sequence(0,23)}">
|
|
|
+ <option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}시|" >시간</option>
|
|
|
+ </th:block>
|
|
|
+ </select>
|
|
|
+ <select name="startSearchMin" required="required" data-valid-name="진행기간 시작시간">
|
|
|
+ <th:block th:each="num: ${#numbers.sequence(0,59)}">
|
|
|
+ <option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}분|" >분</option>
|
|
|
+ </th:block>
|
|
|
+ </select>
|
|
|
+ ~
|
|
|
+ <input type="text" class="schDate w100" id="viewEndDtNew" name="endSearchDate" maxlength="10" required="required" data-valid-name="노출기간"/>
|
|
|
+ <select name="endSearchHour" required="required" data-valid-name="진행기간 종료시간">
|
|
|
+ <th:block th:each="num, index : ${#numbers.sequence(0,23)}">
|
|
|
+ <option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}시|" th:selected="${#numbers.formatInteger(num,2)}==23 ? 'true'">시간</option>
|
|
|
+ </th:block>
|
|
|
+ </select>
|
|
|
+ <select name="endSearchMin" required="required" data-valid-name="진행기간 종료시간">
|
|
|
+ <th:block th:each="num: ${#numbers.sequence(0,59)}">
|
|
|
+ <option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}분|" th:selected="${#numbers.formatInteger(num,2)}==59 ? 'true'">분</option>
|
|
|
+ </th:block>
|
|
|
+ </select>
|
|
|
+ <input type="hidden" name="dispStdt" id="dispStdt"/>
|
|
|
+ <input type="hidden" name="dispEddt" id="dispEddt"/>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">서브제목</th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <input type="text" name="dtlTitle1" id="dtlTitle1"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">코너명노출 여부<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="cornerNmDispYn" required="required" data-valid-name="코너명노출 여부">
|
|
|
+ <option th:if="${useYnList}" th:each="oneData, status : ${useYnList}" th:value="${oneData.cd}" th:selected="${oneData.cd} == 'Y'" th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">오픈여부<i class="star"></i></th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <select name="openYn" required="required" data-valid-name="오픈여부">
|
|
|
+ <option th:if="${useYnList}" th:each="oneData, status : ${useYnList}" th:value="${oneData.cd}" th:selected="${oneData.cd} == 'Y'" th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">사이트<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="siteCd" required="required" data-valid-name="사이트">
|
|
|
+ <option value="">선택</option>
|
|
|
+ <option th:if="${siteList}" th:each="oneData, status : ${siteList}" th:value="${oneData.cd}" th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">전시순서</th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <input type="text" class="w100 aR" name="dispOrd"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- <tr>
|
|
|
+ <th class="dashR">뱃지 타이틀</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <input type="text" class="w500" name="badgeNm"/>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <th class="dashR">뱃지 배경색상</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <input type="text" class="w100" name="badgeBcolor"/>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <th class="dashR">뱃지 글자색상</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <input type="text" class="w100" name="badgeFcolor"/>
|
|
|
+ </td>
|
|
|
+ </tr> -->
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">PC 메인 이미지<i id="pMimgStar"></i></th>
|
|
|
+ <td class="dashR" colspan="5">
|
|
|
+ <div class="uFile w400">
|
|
|
+ <input id="registerMainPimg" name="registerMainPimg" type="file" accept="image/*" class="uFileInput w400"/>
|
|
|
+ <label for="registerMainPimg" class="uFileLabel w400">파일선택</label>
|
|
|
+ <input type="hidden" name="mainPimg" id="mainPimg" value=""/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">모바일 메인 이미지<i id="mMimgStar"></i></th>
|
|
|
+ <td class="dashR" colspan="5">
|
|
|
+ <div class="uFile w400">
|
|
|
+ <input id="registerMainMimg" name="registerMainMimg" type="file" accept="image/*" class="uFileInput w400"/>
|
|
|
+ <label for="registerMainMimg" class="uFileLabel w400">파일선택</label>
|
|
|
+ <input type="hidden" name="mainMimg" id="mainMimg" value=""/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- <tr>
|
|
|
+ <th class="dashR">PC 상세 이미지</th>
|
|
|
+ <td class="dashR" colspan="5">
|
|
|
+ <div class="uFile w400">
|
|
|
+ <input id="registerDtlPimg" name="registerDtlPimg" type="file" accept="image/*" class="uFileInput w400"/>
|
|
|
+ <label for="registerDtlPimg" class="uFileLabel w400">파일선택</label>
|
|
|
+ <input type="hidden" name="dtlPimg" value=""/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">모바일 상세 이미지</th>
|
|
|
+ <td class="dashR" colspan="5">
|
|
|
+ <div class="uFile w400">
|
|
|
+ <input id="registerDtlMimg" name="registerDtlMimg" type="file" accept="image/*" class="uFileInput w400"/>
|
|
|
+ <label for="registerDtlMimg" class="uFileLabel w400">파일선택</label>
|
|
|
+ <input type="hidden" name="dtlMimg" value=""/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr> -->
|
|
|
+ </tbody>
|
|
|
+ <!-- <tbody id="questionEventInsert">
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">개인정보 수집동의</th>
|
|
|
+ <td class="dashR" >
|
|
|
+ <div style="margin-top:5px;">
|
|
|
+ <textarea name="textareaR4" id="privacyPolicyRegister" style="width:720px;"></textarea>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">입력항목</th>
|
|
|
+ <td class="dashR" colspan="5">
|
|
|
+ <div>
|
|
|
+ <input type="text" class="w200" name="planQtitle"/>
|
|
|
+ <label><input type="checkbox" onclick="fnAttachYnClick(this);" />첨부파일</label>
|
|
|
+ <button type="button" class="btn btn-base btn-lg" onclick="fnAddRow(this);">추가</button>
|
|
|
+ <input type="hidden" name="attachYn" value="N"/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody> -->
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">댓글여부</th>
|
|
|
+ <td class="dashR" colspan="5">
|
|
|
+ <select name="replyYn">
|
|
|
+ <option th:if="${useYnList}" th:each="oneData, status : ${useYnList}" th:value="${oneData.cd}" th:selected="${oneData.cd} == 'N'" th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <!-- <th class="dashR">DEV URL</th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <input type="text" name="devUrl" id="devUrl"/>
|
|
|
+ </td> -->
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">웹용소스</th>
|
|
|
+ <td class="dashR" colspan="5">
|
|
|
+ <div style="margin-top:5px;">
|
|
|
+ <!-- <textarea name="fsrcPc" id="fsrcPcRegister" rows="15" cols="95" style="width:1280px;"></textarea> -->
|
|
|
+ <textarea class="textareaR4" id="fsrcPcDetail"></textarea>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">모바일용소스</th>
|
|
|
+ <td class="dashR" colspan="5">
|
|
|
+ <div style="margin-top:5px;">
|
|
|
+ <!-- <textarea name="fsrcMobile" id="fsrcMobileRegister" rows="15" cols="95" style="width:1280px;"></textarea> -->
|
|
|
+ <textarea class="textareaR4" id="fsrcMobileDetail"></textarea>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div style='margin: 13px;'>
|
|
|
+ <ul class="panelBar">
|
|
|
+ <li class="right" th:if="${mode == 'N'}">
|
|
|
+ <button type="button" class="btn btn-info btn-lg" onclick="fnPlanSave('#planWebRegisterForm');">저장</button>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
+ <!-- 기획전 웹 수정 -->
|
|
|
+ <li class="mdPopContent" th:if="${mode == 'U'}">
|
|
|
+ <form th:object="${planInfo}" id="planWebDetailForm" name="planWebDetailForm" action="#" th:action="@{'/system/user/save'}" th:method="post">
|
|
|
+ <input type="hidden" name="mode" th:value="${mode}"/>
|
|
|
+ <input type="hidden" name="planSq" th:value="*{planSq}"/>
|
|
|
+
|
|
|
+ <div class="cardArea" style="height: 700px;margin: -5px;">
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col style="width:10%"/>
|
|
|
+ <col style="width:40%;"/>
|
|
|
+ <col style="width:10%;"/>
|
|
|
+ <col style="width:35%;"/>
|
|
|
+ <col/>
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">기획전구분<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="planGb" id="planGb" th:field="*{planGb}" onchange="fnChangePlanGb(this);">
|
|
|
+ <option value="P">기획전</option>
|
|
|
+ <option value="E">이벤트</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">기획전탬플릿유형<i class="star"></i></th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <select name="templateType" th:field="*{templateType}">
|
|
|
+ <option value="">선택</option>
|
|
|
+ <option value="H">HTML</option>
|
|
|
+ <option value="T">TEXT</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">회원구분<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="custGb" required="required" data-valid-name="회원구분" th:field="*{custGb}">
|
|
|
+ <option th:if="${custGbList}" th:each="oneData, status : ${custGbList}" th:value="${oneData.cd}" th:selected="${oneData.cd} == 'Y'" th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">회원등급<i class="star"></i></th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <select name="custGrade" required="required" data-valid-name="회원등급" th:field="*{custGrade}">
|
|
|
+ <option value="0">전체</option>
|
|
|
+ <option th:if="${custGradeList}" th:each="oneData, status : ${custGradeList}" th:value="${oneData.cd}" th:selected="${oneData.cd} == 'Y'" th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">프론트 구분<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="frontGb" id="frontGb" th:field="*{frontGb}">
|
|
|
+ <option value="">선택</option>
|
|
|
+ <option value="A">전체</option>
|
|
|
+ <option value="P">웹</option>
|
|
|
+ <option value="M">모바일</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">기획전명<i class="star"></i></th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <input type="text" name="planNm" id="planNm" th:field="*{planNm}"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">진행기간<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <input type="text" class="schDate w100" name="startSearchDate" maxlength="10" required="required" data-valid-name="노출기간" th:field="*{startSearchDate}"/>
|
|
|
+ <select name="startSearchHour" required="required" data-valid-name="진행기간 시작시간">
|
|
|
+ <th:block th:each="num, index : ${#numbers.sequence(0,23)}">
|
|
|
+ <option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}시|" th:selected="*{#strings.substring(dispStdt, 11, 13)} == ${#strings.toString(num)} ? 'true'">시간</option>
|
|
|
+ </th:block>
|
|
|
+ </select>
|
|
|
+ <select name="startSearchMin" required="required" data-valid-name="진행기간 시작시간">
|
|
|
+ <th:block th:each="num: ${#numbers.sequence(0,59)}">
|
|
|
+ <option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}분|" th:selected="*{#strings.substring(dispStdt, 14, 16)} == ${#strings.toString(num)} ? 'true'">분</option>
|
|
|
+ </th:block>
|
|
|
+ </select>
|
|
|
+ ~
|
|
|
+ <input type="text" class="schDate w100" name="endSearchDate" maxlength="10" required="required" data-valid-name="노출기간" th:field="*{endSearchDate}"/>
|
|
|
+ <select name="endSearchHour" required="required" data-valid-name="진행기간 종료시간">
|
|
|
+ <th:block th:each="num, index : ${#numbers.sequence(0,23)}">
|
|
|
+ <option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}시|" th:selected="*{#strings.substring(dispEddt, 11, 13)} == ${#strings.toString(num)} ? 'true'">시간</option>
|
|
|
+ </th:block>
|
|
|
+ </select>
|
|
|
+ <select name="endSearchMin" required="required" data-valid-name="진행기간 종료시간">
|
|
|
+ <th:block th:each="num: ${#numbers.sequence(0,59)}">
|
|
|
+ <option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}분|" th:selected="*{#strings.substring(dispEddt, 14, 16)} == ${#strings.toString(num)} ? 'true'">분</option>
|
|
|
+ </th:block>
|
|
|
+ </select>
|
|
|
+ <input type="hidden" name="dispStdt" id="dispStdt"/>
|
|
|
+ <input type="hidden" name="dispEddt" id="dispEddt"/>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">서브제목</th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <input type="text" name="dtlTitle1" id="dtlTitle1" th:value="*{dtlTitle1}"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">코너명노출 여부<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="cornerNmDispYn" th:field="*{cornerNmDispYn}">
|
|
|
+ <option th:if="${useYnList}" th:each="oneData, status : ${useYnList}" th:value="${oneData.cd}" th:selected="${oneData.cd} == 'Y'" th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">오픈여부<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="openYn" th:field="*{openYn}">
|
|
|
+ <option th:if="${useYnList}" th:each="oneData, status : ${useYnList}" th:value="${oneData.cd}" th:selected="${oneData.cd} == 'Y'" th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">전시순서</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <input type="text" name="dispOrd" class="w100 aR" th:value="*{dispOrd}"/>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">삭제여부<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="delYn" th:field="*{delYn}" required="required" data-valid-name="삭제여부">
|
|
|
+ <option th:if="${useYnList}" th:each="oneData, status : ${useYnList}" th:value="${oneData.cd}" th:selected="${oneData.cd} == 'N'" th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">사이트<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="siteCd" th:field="*{siteCd}">
|
|
|
+ <option value="">선택</option>
|
|
|
+ <option th:if="${siteList}" th:each="oneData, status : ${siteList}" th:value="${oneData.cd}" th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">댓글여부</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select name="replyYn" th:field="*{replyYn}">
|
|
|
+ <option value="">선택</option>
|
|
|
+ <option th:if="${useYnList}" th:each="oneData, status : ${useYnList}" th:value="${oneData.cd}" th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- <tr>
|
|
|
+ <th class="dashR">뱃지 타이틀</th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <input type="text" name="badgeNm" th:value="*{badgeNm}"/>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">뱃지 배경색상</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <input type="text" name="badgeBcolor" th:value="*{badgeBcolor}"/>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">뱃지 글자색상</th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <input type="text" name="badgeFcolor" th:value="*{badgeFcolor}"/>
|
|
|
+ </td>
|
|
|
+ </tr> -->
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">PC 메인 이미지<i id="pMimgStar"></i><br/>[삭제여부<label><input type="checkbox" name="orgMainPimgDelYn" value="Y"/></label>]</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <div th:if=*{mainPimg} id="mainPimgView" style="float:left;">
|
|
|
+ <img id="PreMainPimgUrl" th:src="${@environment.getProperty('upload.image.view') + '/plan/'} + *{mainPimg}" style="max-width:720px;"/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="dashR" colspan="4">
|
|
|
+ <div class="uFile w400">
|
|
|
+ <input id="registerMainPimg" name="registerMainPimg" type="file" accept="image/*" class="uFileInput w400"/>
|
|
|
+ <label for="registerMainPimg" class="uFileLabel w400">파일선택</label>
|
|
|
+ <input type="hidden" name="orgMainPimg" id="orgMainPimg" th:value="*{mainPimg}"/>
|
|
|
+ <input type="hidden" name="mainPimg" id="mainPimg"/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">모바일 메인 이미지<i id="mMimgStar"></i><br/>[삭제여부<label><input type="checkbox" name="orgMainMimgDelYn" value="Y"/></label>]</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <div th:if=*{mainMimg} id="imgFileView" style="float:left;">
|
|
|
+ <img id="PreMainMimgUrl" th:src="${@environment.getProperty('upload.image.view') + '/plan/'} + *{mainMimg}" style="max-width:720px;"/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="dashR" colspan="4">
|
|
|
+ <div class="uFile w400">
|
|
|
+ <input id="registerMainMimg" name="registerMainMimg" type="file" accept="image/*" class="uFileInput w400"/>
|
|
|
+ <label for="registerMainMimg" class="uFileLabel w400">파일선택</label>
|
|
|
+ <input type="hidden" name="orgMainMimg" id="orgMainMimg" th:value="*{mainMimg}"/>
|
|
|
+ <input type="hidden" name="mainMimg" id="mainMimg"/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- <tr>
|
|
|
+ <th class="dashR">웹 상세 이미지<br/>[삭제여부<label><input type="checkbox" name="orgDtlPimgDelYn" value="Y"/></label>]</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <div th:if=*{dtlPimg} id="DtlPimgView" style="float:left;">
|
|
|
+ <img id="PreDtlPimgUrl" th:src="${@environment.getProperty('upload.image.view') + '/plan/'} + *{dtlPimg}" style="width:100%;"/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="dashR" colspan="4">
|
|
|
+ <div class="uFile w400">
|
|
|
+ <input id="registerDtlPimg" name="registerDtlPimg" type="file" accept="image/*" class="uFileInput w400"/>
|
|
|
+ <label for="registerDtlPimg" class="uFileLabel w400">파일선택</label>
|
|
|
+ <input type="hidden" name="orgDtlPimg" id="orgDtlPimg" th:value="*{dtlPimg}"/>
|
|
|
+ <input type="hidden" name="dtlPimg" id="dtlPimg"/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">모바일 상세 이미지<br/>[삭제여부<label><input type="checkbox" name="orgDtlMimgDelYn" value="Y"/></label>]</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <div th:if=*{dtlMimg} id="DtlMimgView" style="float:left;">
|
|
|
+ <img id="PredtlMimgUrl" th:src="${@environment.getProperty('upload.image.view') + '/plan/'} + *{dtlMimg}" style="width:100%;"/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="dashR" colspan="4">
|
|
|
+ <div class="uFile w400">
|
|
|
+ <input id="registerDtlMimg" name="registerDtlMimg" type="file" accept="image/*" class="uFileInput w400"/>
|
|
|
+ <label for="registerDtlMimg" class="uFileLabel w400">파일선택</label>
|
|
|
+ <input type="hidden" name="orgDtlMimg" id="orgDtlMimg" th:value="*{dtlMimg}"/>
|
|
|
+ <input type="hidden" name="dtlMimg" id="dtlMimg"/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr> -->
|
|
|
+ </tbody>
|
|
|
+ <tbody id="questionEventUpdate">
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">개인정보 수집동의</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <div style="margin-top:5px;">
|
|
|
+ <textarea name="privacyPolicy" id="privacyPolicyDetail" style="width:720px;">[[*{privacyPolicy}]]</textarea>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">입력항목<div><button type="button" class="btn btn-primary btn-lg" th:onclick="'cfnOpenPlanAnswerPopup('+*{planSq}+');'">참여자</button></div></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <th:bock th:if="${planQuestionList != null and !planQuestionList.empty}" th:each="oneData, status : ${planQuestionList}">
|
|
|
+ <div>
|
|
|
+ <input type="text" class="w200" name="planQtitle" th:value="${oneData.planQtitle}"/>
|
|
|
+ <label class="chkBox"><input type="checkbox" th:checked="${oneData.attachYn}=='Y'" onclick="fnAttachYnClick(this);" />첨부파일</label>
|
|
|
+ <th:block th:if="${status.first}">
|
|
|
+ <button type="button" class="btn btn-base btn-lg" onclick="fnAddRow(this);">추가</button>
|
|
|
+ </th:block>
|
|
|
+ <th:block th:unless="${status.first}">
|
|
|
+ <button type="button" class="btn icn" onclick="fnDeleteRow(this);"><i class="fa fa-times" aria-hidden="true"></i></button>
|
|
|
+ </th:block>
|
|
|
+ <input type="hidden" name="attachYn" th:value="${oneData.attachYn}"/>
|
|
|
+ </div>
|
|
|
+ </th:bock>
|
|
|
+ <th:block th:unless="${planQuestionList != null and !planQuestionList.empty}">
|
|
|
+ <div>
|
|
|
+ <input type="text" class="w200" name="planQtitle" />
|
|
|
+ <label><input type="checkbox" onclick="fnAttachYnClick(this);" />첨부파일</label>
|
|
|
+ <button type="button" class="btn btn-base btn-lg" onclick="fnAddRow(this);">추가</button>
|
|
|
+ <input type="hidden" name="attachYn" th:value="N"/>
|
|
|
+ </div>
|
|
|
+ </th:block>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ <tbody>
|
|
|
+ <!-- <tr>
|
|
|
+ <th class="dashR">댓글여부</th>
|
|
|
+ <td class="dashR" colspan="5">
|
|
|
+ <select name="replyYn" th:field="*{replyYn}">
|
|
|
+ <option value="">선택</option>
|
|
|
+ <option th:if="${useYnList}" th:each="oneData, status : ${useYnList}" th:value="${oneData.cd}" th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">DEV URL</th>
|
|
|
+ <td class="dashR" colspan="4">
|
|
|
+ <input type="text" name="devUrl" id="devUrl" th:value="*{devUrl}"/>
|
|
|
+ </td>
|
|
|
+ </tr> -->
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">웹용소스</th>
|
|
|
+ <td class="dashR" colspan="5">
|
|
|
+ <div style="margin-top:5px;">
|
|
|
+ <textarea name="fsrcPc" id="fsrcPcDetail" rows="15" cols="95" style="width:1280px;"></textarea>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">모바일용소스</th>
|
|
|
+ <td class="dashR" colspan="5">
|
|
|
+ <div style="margin-top:5px;">
|
|
|
+ <textarea name="fsrcMobile" id="fsrcMobileDetail" rows="15" cols="95" style="width:1280px;"></textarea>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </li>
|
|
|
+
|
|
|
+ <li class="mdPopBtnB aR" th:if="${mode == 'U'}">
|
|
|
+ <button type="button" class="btn btn-success btn-lg" onclick="fnPlanSave('#planWebDetailForm');">저장</button>
|
|
|
+ </li>
|
|
|
+
|
|
|
+</ul>
|
|
|
+
|
|
|
+<script type="text/javascript" src="/ux/plugins/summernote/summernote.js?v=2020103001"></script>
|
|
|
+<script type="text/javascript" src="/ux/plugins/gaga/gaga.summernote.js?v=2020103001"></script>
|
|
|
+<script th:inline="javascript">
|
|
|
+/*<![CDATA[*/
|
|
|
+
|
|
|
+ // 스마트에디터
|
|
|
+ //var seOptions = gagaSe.getEditorOptions();
|
|
|
+ var mode = [[${mode}]];
|
|
|
+ var planInfo = [[${planInfo}]];
|
|
|
+ var fsrcPc = [[${fsrcPc}]];
|
|
|
+ var fsrcMobile = [[${fsrcMobile}]];
|
|
|
+ var snOptions;
|
|
|
+
|
|
|
+ $(document).ready(function() {
|
|
|
+ snOptions = gagaSn.getToolbarOptions('media');
|
|
|
+ gagaSn.createSummernote(snOptions, '#fsrcPcDetail');
|
|
|
+ gagaSn.createSummernote(snOptions, '#fsrcMobileDetail');
|
|
|
+
|
|
|
+ if (mode =='U') {
|
|
|
+ /* $('#planWebDetailForm input[name=badgeFcolor]').spectrum({
|
|
|
+ preferredFormat: "hex",
|
|
|
+ showInput: true,
|
|
|
+ allowEmpty: true
|
|
|
+ });
|
|
|
+
|
|
|
+ $('#planWebDetailForm input[name=badgeBcolor]').spectrum({
|
|
|
+ preferredFormat: "hex",
|
|
|
+ showInput: true,
|
|
|
+ allowEmpty: true
|
|
|
+ }); */
|
|
|
+
|
|
|
+ if (planInfo.goodsLimitYn == 'N') {
|
|
|
+ $('#planWebDetailForm input[name=goodsLimitQty]').hide();
|
|
|
+ } else {
|
|
|
+ $('#planWebDetailForm input[name=goodsLimitQty]').show();
|
|
|
+ }
|
|
|
+
|
|
|
+ // 스마트에디터
|
|
|
+ //gagaSe.createSmartEditor(seOptions, 'fsrcPcDetail');
|
|
|
+ //gagaSe.createSmartEditor(seOptions, 'fsrcMobileDetail');
|
|
|
+
|
|
|
+ // 스마트에디어 값 설정
|
|
|
+ //gagaSe.setContents('fsrcPcDetail', fsrcPc.fsrc);
|
|
|
+ //gagaSe.setContents('fsrcMobileDetail', fsrcMobile.fsrc);
|
|
|
+
|
|
|
+ if($("#planGb").val()!='E'){
|
|
|
+ $("#questionEventInsert").hide();
|
|
|
+ $("#questionEventUpdate").hide();
|
|
|
+ }else{
|
|
|
+ gagaSn.createSummernote(snOptions, '#privacyPolicyRegister');
|
|
|
+ }
|
|
|
+
|
|
|
+ } else {
|
|
|
+ /* $('#planWebRegisterForm input[name=badgeFcolor]').spectrum({
|
|
|
+ preferredFormat: "hex",
|
|
|
+ showInput: true,
|
|
|
+ allowEmpty: true
|
|
|
+ });
|
|
|
+
|
|
|
+ $('#planWebRegisterForm input[name=badgeBcolor]').spectrum({
|
|
|
+ preferredFormat: "hex",
|
|
|
+ showInput: true,
|
|
|
+ allowEmpty: true
|
|
|
+ }); */
|
|
|
+
|
|
|
+ $("#viewStartDtNew").val(_today);
|
|
|
+ $("#viewEndDtNew").val(_today);
|
|
|
+
|
|
|
+ // 스마트에디터
|
|
|
+ //gagaSe.createSmartEditor(seOptions, 'fsrcPcRegister');
|
|
|
+ //gagaSe.createSmartEditor(seOptions, 'fsrcMobileRegister');
|
|
|
+
|
|
|
+ $("#questionEventInsert").hide();
|
|
|
+ $("#questionEventUpdate").hide();
|
|
|
+ }
|
|
|
+ $('#frontGb').trigger('change');
|
|
|
+ });
|
|
|
+
|
|
|
+ // 카테고리 전시 여부
|
|
|
+ var fnCataCheck = function(is, formId) {
|
|
|
+ if (is.checked) {
|
|
|
+ $(formId + ' input[name=cateDispYn]').val('Y');
|
|
|
+ // 추후 카테고리 표시
|
|
|
+ } else {
|
|
|
+ $(formId + ' input[name=cateDispYn]').val('N');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 상품제한여부
|
|
|
+ var fnGoodsCheck = function(is, formId) {
|
|
|
+ if (is.checked) {
|
|
|
+ $(formId + ' input[name=goodsLimitYn]').val('Y');
|
|
|
+ $(formId + ' input[name=goodsLimitQty]').show();
|
|
|
+ $(formId + ' input[name=goodsLimitQty]').focus();
|
|
|
+ // 추후 카테고리 표시
|
|
|
+ } else {
|
|
|
+ $(formId + ' input[name=goodsLimitYn]').val('N');
|
|
|
+ $(formId + ' input[name=goodsLimitQty]').hide();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ var fnPlanCopyPopup = function() {
|
|
|
+ var planSq = $('#planWebRegisterForm select[name=planSq]').val();
|
|
|
+
|
|
|
+ if (gagajf.isNull(planSq)) {
|
|
|
+ mcxDialog.alert('복사할 기획전을 선택하세요.');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ mcxDialog.confirm('선택 된 기획전을 복사 하시겠습니까?', {
|
|
|
+ cancelBtnText: "취소",
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ var actionUrl = '/marketing/plan/copy';
|
|
|
+ var data = {copyPlanSq : planSq};
|
|
|
+ var jsonData = JSON.stringify(data);
|
|
|
+
|
|
|
+ gagajf.ajaxJsonSubmit(actionUrl, jsonData, fnCopyCallback);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ var fnCopyCallback = function(result) {
|
|
|
+ fnPlanWebDetailClose();
|
|
|
+ fnSearch();
|
|
|
+
|
|
|
+ var actionUrl = "/marketing/plan/webdetail/form?mode=U&planSq=" + result.planSq;
|
|
|
+ cfnOpenModalPopup(actionUrl,'popupPlanWebDetail');
|
|
|
+ }
|
|
|
+
|
|
|
+ var fnPlanSave = function(formId) {
|
|
|
+ if (!gagajf.validation(formId))
|
|
|
+ return;
|
|
|
+
|
|
|
+ // 날짜 유효성 체크
|
|
|
+ var stDate = $(formId + ' input[name=startSearchDate]').val().replaceAll("-", "");
|
|
|
+ var edDate = $(formId + ' input[name=endSearchDate]').val().replaceAll("-", "");
|
|
|
+ var toDate = _today.replaceAll("-", "");
|
|
|
+
|
|
|
+ if (Number(stDate) > Number(edDate)) {
|
|
|
+ mcxDialog.alert('종료일자는 시작일자 보다 클 수 없습니다.');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (Number(stDate) < Number(toDate) && mode == 'N') {
|
|
|
+ mcxDialog.alert('시작일자는 오늘포함 이후로 등록해주세요.');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (Number(edDate) < Number(toDate) && mode == 'N') {
|
|
|
+ mcxDialog.alert('종료일자는 오늘포함 이후로 등록해주세요.');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ stDate = $(formId + ' input[name=startSearchDate]').val();
|
|
|
+ edDate = $(formId + ' input[name=endSearchDate]').val();
|
|
|
+ $(formId + ' input[name=dispStdt]').val(stDate + ' ' + $(formId + ' select[name=startSearchHour]').val() + ':' + $(formId + ' select[name=startSearchMin]').val() + ':00');
|
|
|
+ $(formId + ' input[name=dispEddt]').val(edDate + ' ' + $(formId + ' select[name=endSearchHour]').val() + ':' + $(formId + ' select[name=endSearchMin]').val() + ':59');
|
|
|
+
|
|
|
+ /* // 댓글여부에 따른 위치 체크
|
|
|
+ if ($('#replyYn').val() == 'Y') {
|
|
|
+ var replyLoc = $(':radio[name="replyLoc"]:checked').val();
|
|
|
+
|
|
|
+ if (typeof replyLoc == 'undefined') {
|
|
|
+ mcxDialog.alert('댓글 사용 시 댓글위치를 선택해야합니다.');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ } */
|
|
|
+
|
|
|
+ // poll 관리일련번호 유효성 체크
|
|
|
+ /* if (!gagajf.isNull($(formId + ' input[name=pollSq]').val())) {
|
|
|
+ gagajf.ajaxFormSubmit('/marketing/poll/list', formId, function(result) {
|
|
|
+ console.log(result);
|
|
|
+ if (result.length < 1) {
|
|
|
+ mcxDialog.alert('입력하신 투표 일련번호가 존재 하지않습니다.');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } */
|
|
|
+
|
|
|
+ var privacyPolicy = '';
|
|
|
+ var frontGb = $('#frontGb').val();
|
|
|
+ if (mode =='U') {
|
|
|
+ //gagaSn.getContents('fsrcPcDetail');
|
|
|
+ //gagaSn.getContents('fsrcMobileDetail');
|
|
|
+ //if($("#planGb").val()=='E'){
|
|
|
+ // privacyPolicy = gagaSn.getContents('privacyPolicyDetail');
|
|
|
+ //}
|
|
|
+
|
|
|
+ // 이미지 처리
|
|
|
+ if ((!$('input[name=orgMainPimgDelYn]').is(':checked') ? true : false) &&
|
|
|
+ (gagajf.isNull($(formId + ' input[name=mainPimg]').val()) == true) ) {
|
|
|
+ $(formId + ' input[name=mainPimg]').val($(formId + ' input[name=orgMainPimg]').val());
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((!$('input[name=orgMainMimgDelYn]').is(':checked') ? true : false) &&
|
|
|
+ (gagajf.isNull($(formId + ' input[name=mainMimg]').val()) == true) ) {
|
|
|
+ $(formId + ' input[name=mainMimg]').val($(formId + ' input[name=orgMainMimg]').val());
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((!$('input[name=orgDtlPimgDelYn]').is(':checked') ? true : false) &&
|
|
|
+ (gagajf.isNull($(formId + ' input[name=dtlPimg]').val()) == true) ) {
|
|
|
+ $(formId + ' input[name=dtlPimg]').val($(formId + ' input[name=orgDtlPimg]').val());
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((!$('input[name=orgDtlMimgDelYn]').is(':checked') ? true : false) &&
|
|
|
+ (gagajf.isNull($(formId + ' input[name=dtlMimg]').val()) == true) ) {
|
|
|
+ $(formId + ' input[name=dtlMimg]').val($(formId + ' input[name=orgDtlMimg]').val());
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((!$('input[name=orgReplyImgYn]').is(':checked') ? true : false) &&
|
|
|
+ (gagajf.isNull($(formId + ' input[name=replyImg]').val()) == true) ) {
|
|
|
+ $(formId + ' input[name=replyImg]').val($(formId + ' input[name=orgReplyImg]').val());
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ //gagaSn.getContents('fsrcPcRegister');
|
|
|
+ //gagaSn.getContents('fsrcMobileRegister');
|
|
|
+ //if($("#planGb").val()=='E'){
|
|
|
+ // privacyPolicy = gagaSn.getContents('privacyPolicyRegister');
|
|
|
+ //}
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!gagajf.isNull($(formId + ' input[name=planQtitle]').val()) && gagajf.isNull(privacyPolicy.replace(/<br>/gi, '').replace(/<p>/gi, '').replace(/<\/\p>/gi, ''))){
|
|
|
+ mcxDialog.alert('입력항목 등록 시 개인정보 수집동의를 입력해 주세요.');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (formId == '#planWebRegisterForm') {
|
|
|
+ mcxDialog.confirm('등록 하시겠습니까?', {
|
|
|
+ cancelBtnText: "취소",
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ gagajf.ajaxFormSubmit("/marketing/planning/webdetail/create", "#planWebRegisterForm", fnPlanWebDetailCallBack);
|
|
|
+ //fnSearch();
|
|
|
+ fnPlanWebDetailClose();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ mcxDialog.confirm('저장 하시겠습니까?', {
|
|
|
+ cancelBtnText: "취소",
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ var actionUrl = '/marketing/plan/webdetail/update';
|
|
|
+
|
|
|
+ gagajf.ajaxFormSubmit(actionUrl, formId, function() {
|
|
|
+ fnSearch();
|
|
|
+ fnPlanWebDetailClose();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 이미지 첨부
|
|
|
+ $('input[name=registerMainPimg],input[name=registerMainMimg],input[name=registerDtlPimg],input[name=registerDtlMimg],input[name=registerReplyImg]').on('change', function() {
|
|
|
+ var name = $(this)[0].name;
|
|
|
+
|
|
|
+ var file = this.files[0];
|
|
|
+
|
|
|
+ gagajf.ajaxFileUpload('/common/file/upload?subDir=/plan'
|
|
|
+ , file
|
|
|
+ , function(result) {
|
|
|
+ if (name == 'registerMainPimg')
|
|
|
+ $('input[name=mainPimg]').val(result.newFileName);
|
|
|
+
|
|
|
+ if (name == 'registerMainMimg')
|
|
|
+ $('input[name=mainMimg]').val(result.newFileName);
|
|
|
+
|
|
|
+ if (name == 'registerDtlPimg')
|
|
|
+ $('input[name=dtlPimg]').val(result.newFileName);
|
|
|
+
|
|
|
+ if (name == 'registerDtlMimg')
|
|
|
+ $('input[name=dtlMimg]').val(result.newFileName);
|
|
|
+
|
|
|
+ if (name == 'registerReplyImg')
|
|
|
+ $('input[name=replyImg]').val(result.newFileName);
|
|
|
+ }
|
|
|
+ , 'image'
|
|
|
+ );
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ var fnChangePlanGb = function(obj) {
|
|
|
+ if($(obj).val()=='E'){
|
|
|
+ $("#questionEventInsert").show();
|
|
|
+ $("#questionEventUpdate").show();
|
|
|
+ if (mode =='U') {
|
|
|
+ if($("#privacyPolicyDetail").closest('div').children('#the_iframe').length==0){
|
|
|
+ gagaSn.createSummernote(snOptions, '#privacyPolicyDetail');
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if($("#privacyPolicyRegister").closest('div').children('#the_iframe').length==0){
|
|
|
+ gagaSn.createSummernote(snOptions, '#privacyPolicyRegister');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ $("#questionEventInsert").hide();
|
|
|
+ $("#questionEventUpdate").hide();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ var fnAddRow = function(obj){
|
|
|
+ var html = '<div>';
|
|
|
+ html += '<input type="text" class="w200" name="planQtitle"/>';
|
|
|
+ html += '<label class="chkBox"><input type="checkbox" onclick="fnAttachYnClick(this);" />첨부파일</label>';
|
|
|
+ html += '<button type="button" class="btn icn" onclick="fnDeleteRow(this);"><i class="fa fa-times" aria-hidden="true"></i></button>';
|
|
|
+ html += '<input type="hidden" name="attachYn" value="N"/>';
|
|
|
+ html += '</div>';
|
|
|
+ $(obj).closest('td').append(html);
|
|
|
+ }
|
|
|
+
|
|
|
+ var fnDeleteRow = function(obj){
|
|
|
+ $(obj).closest('div').remove();
|
|
|
+ }
|
|
|
+
|
|
|
+ var fnAttachYnClick = function(obj){
|
|
|
+ var val = 'N';
|
|
|
+ if($(obj).prop('checked')){
|
|
|
+ val = 'Y';
|
|
|
+ }
|
|
|
+ $(obj).closest('div').find('input[name="attachYn"]').val(val);
|
|
|
+ }
|
|
|
+
|
|
|
+ var fnPlanWebDetailCallBack = function() {
|
|
|
+ fnSearch();
|
|
|
+ $('.sp-container').remove(); // 컬러피커 제거
|
|
|
+ uifnPopClose('popupPlanWebDetail');
|
|
|
+ }
|
|
|
+/*]]>*/
|
|
|
+</script>
|
|
|
+
|
|
|
+</html>
|