|
|
@@ -14,36 +14,20 @@
|
|
|
* 1.0 2020.02.04 sowon 최초 작성
|
|
|
*******************************************************************************
|
|
|
-->
|
|
|
-<div class="modalPopup" data-width="1510" data-height="865">
|
|
|
- <div class="panelStyle" >
|
|
|
+<div class="modalPopup" data-width="1100" id="planWebRegisterFormDiv">
|
|
|
+ <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">
|
|
|
+ <!-- 기획전 웹 수정 -->
|
|
|
+ <div class="panelContent" th:if="${mode == 'U'}">
|
|
|
+ <form th:object="${planInfo}" id="planWebUpdateForm" name="planWebUpdateForm" 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;">
|
|
|
+ <input type="hidden" name="planSq" th:value="*{planSq}"/>
|
|
|
+
|
|
|
+ <div class="cardArea" style="height: 700px;margin: -5px;">
|
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
|
<col style="width:10%"/>
|
|
|
@@ -55,31 +39,30 @@
|
|
|
<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>
|
|
|
+ <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" required="required" data-valid-name="기획전탬플릿유형">
|
|
|
+ <select name="templateType" th:field="*{templateType}">
|
|
|
<option value="">선택</option>
|
|
|
<option value="H">HTML</option>
|
|
|
<option value="T">TEXT</option>
|
|
|
</select>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <!-- <tr>
|
|
|
+ <!-- <tr>
|
|
|
<th class="dashR">회원구분<i class="star"></i></th>
|
|
|
<td class="dashR">
|
|
|
- <select name="custGb" required="required" data-valid-name="회원구분">
|
|
|
+ <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="회원등급">
|
|
|
+ <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>
|
|
|
@@ -88,7 +71,7 @@
|
|
|
<tr>
|
|
|
<th class="dashR">프론트 구분<i class="star"></i></th>
|
|
|
<td class="dashR">
|
|
|
- <select name="frontGb" id="frontGb" required="required" data-valid-name="프론트 구분">
|
|
|
+ <select name="frontGb" id="frontGb" th:field="*{frontGb}">
|
|
|
<option value="">선택</option>
|
|
|
<option value="A">전체</option>
|
|
|
<option value="P">웹</option>
|
|
|
@@ -97,33 +80,33 @@
|
|
|
</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="기획전명"/>
|
|
|
+ <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" id="viewStartDtNew" name="startSearchDate" maxlength="10" required="required" data-valid-name="노출기간" />
|
|
|
+ <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)}시|" >시간</option>
|
|
|
+ <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)}분|" >분</option>
|
|
|
+ <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" id="viewEndDtNew" name="endSearchDate" maxlength="10" required="required" data-valid-name="노출기간"/>
|
|
|
+ <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="${#numbers.formatInteger(num,2)}==23 ? 'true'">시간</option>
|
|
|
+ <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="${#numbers.formatInteger(num,2)}==59 ? 'true'">분</option>
|
|
|
+ <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"/>
|
|
|
@@ -131,19 +114,19 @@
|
|
|
</td>
|
|
|
<th class="dashR">서브제목</th>
|
|
|
<td class="dashR" colspan="3">
|
|
|
- <input type="text" name="dtlTitle1" id="dtlTitle1"/>
|
|
|
+ <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" required="required" data-valid-name="코너명노출 여부">
|
|
|
+ <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" colspan="3">
|
|
|
- <select name="openYn" required="required" data-valid-name="오픈여부">
|
|
|
+ <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>
|
|
|
@@ -151,111 +134,169 @@
|
|
|
<tr>
|
|
|
<th class="dashR">사이트<i class="star"></i></th>
|
|
|
<td class="dashR">
|
|
|
- <select name="siteCd" required="required" data-valid-name="사이트">
|
|
|
+ <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" colspan="3">
|
|
|
- <input type="text" class="w100 aR" name="dispOrd"/>
|
|
|
+ <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">사용고객등급구분<em class="required" title="필수"></em></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <label class="chkBox" th:if="${usableCustGradeList}" th:each="oneData, status : ${usableCustGradeList}">
|
|
|
+ <input type="checkbox" name="usableCustGradeArr" th:value="${oneData.cd}" th:text="${oneData.cdNm}"/>
|
|
|
+ </label>
|
|
|
+ </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">
|
|
|
- <input type="text" class="w500" name="badgeNm"/>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <input type="text" name="badgeNm" th:value="*{badgeNm}"/>
|
|
|
</td>
|
|
|
-
|
|
|
<th class="dashR">뱃지 배경색상</th>
|
|
|
<td class="dashR">
|
|
|
- <input type="text" class="w100" name="badgeBcolor"/>
|
|
|
+ <input type="text" name="badgeBcolor" th:value="*{badgeBcolor}"/>
|
|
|
</td>
|
|
|
-
|
|
|
<th class="dashR">뱃지 글자색상</th>
|
|
|
- <td class="dashR">
|
|
|
- <input type="text" class="w100" name="badgeFcolor"/>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <input type="text" name="badgeFcolor" th:value="*{badgeFcolor}"/>
|
|
|
</td>
|
|
|
</tr> -->
|
|
|
<tr>
|
|
|
- <th class="dashR">PC 메인 이미지<i id="pMimgStar"></i></th>
|
|
|
- <td class="dashR" colspan="5">
|
|
|
+ <th class="dashR">PC 메인 이미지<i id="pMimgStar"></i><br/>[삭제여부<label class="chkBox"><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') + '/planning/'} + *{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="mainPimg" id="mainPimg" value=""/>
|
|
|
+ <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></th>
|
|
|
- <td class="dashR" colspan="5">
|
|
|
+ <th class="dashR">모바일 메인 이미지<i id="mMimgStar"></i><br/>[삭제여부<label class="chkBox"><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') + '/planning/'} + *{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="mainMimg" id="mainMimg" value=""/>
|
|
|
+ <input type="hidden" name="orgMainMimg" id="orgMainMimg" th:value="*{mainMimg}"/>
|
|
|
+ <input type="hidden" name="mainMimg" id="mainMimg"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<!-- <tr>
|
|
|
- <th class="dashR">PC 상세 이미지</th>
|
|
|
- <td class="dashR" colspan="5">
|
|
|
+ <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="dtlPimg" value=""/>
|
|
|
+ <input type="hidden" name="orgDtlPimg" id="orgDtlPimg" th:value="*{dtlPimg}"/>
|
|
|
+ <input type="hidden" name="dtlPimg" id="dtlPimg"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <th class="dashR">모바일 상세 이미지</th>
|
|
|
- <td class="dashR" colspan="5">
|
|
|
+ <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="dtlMimg" value=""/>
|
|
|
+ <input type="hidden" name="orgDtlMimg" id="orgDtlMimg" th:value="*{dtlMimg}"/>
|
|
|
+ <input type="hidden" name="dtlMimg" id="dtlMimg"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr> -->
|
|
|
</tbody>
|
|
|
- <!-- <tbody id="questionEventInsert">
|
|
|
+ <!-- <tbody id="questionEventUpdate">
|
|
|
<tr>
|
|
|
<th class="dashR">개인정보 수집동의</th>
|
|
|
- <td class="dashR" >
|
|
|
+ <td class="dashR">
|
|
|
<div style="margin-top:5px;">
|
|
|
- <textarea name="textareaR4" id="privacyPolicyRegister" style="width:720px;"></textarea>
|
|
|
+ <textarea name="privacyPolicy" id="privacyPolicyDetail" style="width:720px;">[[*{privacyPolicy}]]</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>
|
|
|
+ <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>
|
|
|
+ <!-- <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 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="3">
|
|
|
- <input type="text" name="devUrl" id="devUrl"/>
|
|
|
- </td> -->
|
|
|
- </tr>
|
|
|
+ <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="fsrcPcRegister" rows="15" cols="95" style="width:1280px;"></textarea> -->
|
|
|
- <textarea class="textareaR4" id="fsrcPcDetail"></textarea>
|
|
|
+ <textarea name="fsrcPc" id="fsrcPcDetail" rows="15" cols="95" style="width:1280px;"></textarea>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -263,32 +304,46 @@
|
|
|
<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>
|
|
|
+ <textarea name="fsrcMobile" id="fsrcMobileDetail" rows="15" cols="95" style="width:1280px;"></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 style='margin: 13px;'>
|
|
|
+ <ul class="panelBar">
|
|
|
+ <li class="right" th:if="${mode == 'U'}">
|
|
|
+ <button type="button" class="btn btn-success btn-lg" onclick="fnPlanSave('#planWebUpdateForm');">저장</button>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
</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">
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 기획전 웹 등록 -->
|
|
|
+ <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}"/>
|
|
|
- <input type="hidden" name="planSq" th:value="*{planSq}"/>
|
|
|
-
|
|
|
- <div class="cardArea" style="height: 700px;margin: -5px;">
|
|
|
+ <div>
|
|
|
+ <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">
|
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
|
<col style="width:10%"/>
|
|
|
@@ -300,39 +355,40 @@
|
|
|
<tr>
|
|
|
<th class="dashR">기획전구분<i class="star"></i></th>
|
|
|
<td class="dashR">
|
|
|
- <select name="planGb" id="planGb" th:field="*{planGb}" onchange="fnChangePlanGb(this);">
|
|
|
+ <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" th:field="*{templateType}">
|
|
|
+ <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>
|
|
|
+ <!-- <tr>
|
|
|
<th class="dashR">회원구분<i class="star"></i></th>
|
|
|
<td class="dashR">
|
|
|
- <select name="custGb" required="required" data-valid-name="회원구분" th:field="*{custGb}">
|
|
|
+ <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="회원등급" th:field="*{custGrade}">
|
|
|
+ <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> -->
|
|
|
<tr>
|
|
|
<th class="dashR">프론트 구분<i class="star"></i></th>
|
|
|
<td class="dashR">
|
|
|
- <select name="frontGb" id="frontGb" th:field="*{frontGb}">
|
|
|
+ <select name="frontGb" id="frontGb" required="required" data-valid-name="프론트 구분">
|
|
|
<option value="">선택</option>
|
|
|
<option value="A">전체</option>
|
|
|
<option value="P">웹</option>
|
|
|
@@ -341,33 +397,33 @@
|
|
|
</td>
|
|
|
<th class="dashR">기획전명<i class="star"></i></th>
|
|
|
<td class="dashR" colspan="3">
|
|
|
- <input type="text" name="planNm" id="planNm" th:field="*{planNm}"/>
|
|
|
+ <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" name="startSearchDate" maxlength="10" required="required" data-valid-name="노출기간" th:field="*{startSearchDate}"/>
|
|
|
+ <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)}시|" th:selected="*{#strings.substring(dispStdt, 11, 13)} == ${#strings.toString(num)} ? 'true'">시간</option>
|
|
|
+ <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)}분|" th:selected="*{#strings.substring(dispStdt, 14, 16)} == ${#strings.toString(num)} ? 'true'">분</option>
|
|
|
+ <option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}분|" >분</option>
|
|
|
</th:block>
|
|
|
</select>
|
|
|
~
|
|
|
- <input type="text" class="schDate w100" name="endSearchDate" maxlength="10" required="required" data-valid-name="노출기간" th:field="*{endSearchDate}"/>
|
|
|
+ <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="*{#strings.substring(dispEddt, 11, 13)} == ${#strings.toString(num)} ? 'true'">시간</option>
|
|
|
+ <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="*{#strings.substring(dispEddt, 14, 16)} == ${#strings.toString(num)} ? 'true'">분</option>
|
|
|
+ <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"/>
|
|
|
@@ -375,183 +431,140 @@
|
|
|
</td>
|
|
|
<th class="dashR">서브제목</th>
|
|
|
<td class="dashR" colspan="3">
|
|
|
- <input type="text" name="dtlTitle1" id="dtlTitle1" th:value="*{dtlTitle1}"/>
|
|
|
+ <input type="text" name="dtlTitle1" id="dtlTitle1"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th class="dashR">코너명노출 여부<i class="star"></i></th>
|
|
|
<td class="dashR">
|
|
|
- <select name="cornerNmDispYn" th:field="*{cornerNmDispYn}">
|
|
|
+ <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">
|
|
|
- <select name="openYn" th:field="*{openYn}">
|
|
|
+ <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">전시순서</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}">
|
|
|
+ <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">
|
|
|
- <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>
|
|
|
+ <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" colspan="3">
|
|
|
- <input type="text" name="badgeNm" th:value="*{badgeNm}"/>
|
|
|
+ <td class="dashR">
|
|
|
+ <input type="text" class="w500" name="badgeNm"/>
|
|
|
</td>
|
|
|
+
|
|
|
<th class="dashR">뱃지 배경색상</th>
|
|
|
<td class="dashR">
|
|
|
- <input type="text" name="badgeBcolor" th:value="*{badgeBcolor}"/>
|
|
|
+ <input type="text" class="w100" name="badgeBcolor"/>
|
|
|
</td>
|
|
|
+
|
|
|
<th class="dashR">뱃지 글자색상</th>
|
|
|
- <td class="dashR" colspan="3">
|
|
|
- <input type="text" name="badgeFcolor" th:value="*{badgeFcolor}"/>
|
|
|
+ <td class="dashR">
|
|
|
+ <input type="text" class="w100" name="badgeFcolor"/>
|
|
|
</td>
|
|
|
</tr> -->
|
|
|
<tr>
|
|
|
- <th class="dashR">PC 메인 이미지<i id="pMimgStar"></i><br/>[삭제여부<label><input type="checkbox" name="orgMainPimgDelYn" value="Y"/></label>]</th>
|
|
|
+ <th class="dashR">사용고객등급구분<em class="required" title="필수"></em></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>
|
|
|
+ <label class="chkBox" th:if="${usableCustGradeList}" th:each="oneData, status : ${usableCustGradeList}">
|
|
|
+ <input type="checkbox" name="usableCustGradeArr" th:value="${oneData.cd}" th:text="${oneData.cdNm}"/>
|
|
|
+ </label>
|
|
|
</td>
|
|
|
- <td class="dashR" colspan="4">
|
|
|
+ <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>
|
|
|
+ </tr>
|
|
|
+ <!--<tr>
|
|
|
+
|
|
|
+ <th class="dashR">DEV URL</th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <input type="text" name="devUrl" id="devUrl"/>
|
|
|
+ </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="orgMainPimg" id="orgMainPimg" th:value="*{mainPimg}"/>
|
|
|
- <input type="hidden" name="mainPimg" id="mainPimg"/>
|
|
|
+ <input type="hidden" name="mainPimg" id="mainPimg" value=""/>
|
|
|
</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">
|
|
|
+ <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="orgMainMimg" id="orgMainMimg" th:value="*{mainMimg}"/>
|
|
|
- <input type="hidden" name="mainMimg" id="mainMimg"/>
|
|
|
+ <input type="hidden" name="mainMimg" id="mainMimg" value=""/>
|
|
|
</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">
|
|
|
+ <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="orgDtlPimg" id="orgDtlPimg" th:value="*{dtlPimg}"/>
|
|
|
- <input type="hidden" name="dtlPimg" id="dtlPimg"/>
|
|
|
+ <input type="hidden" name="dtlPimg" value=""/>
|
|
|
</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">
|
|
|
+ <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="orgDtlMimg" id="orgDtlMimg" th:value="*{dtlMimg}"/>
|
|
|
- <input type="hidden" name="dtlMimg" id="dtlMimg"/>
|
|
|
+ <input type="hidden" name="dtlMimg" value=""/>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr> -->
|
|
|
</tbody>
|
|
|
- <tbody id="questionEventUpdate">
|
|
|
+ <!-- <tbody id="questionEventInsert">
|
|
|
<tr>
|
|
|
<th class="dashR">개인정보 수집동의</th>
|
|
|
- <td class="dashR">
|
|
|
+ <td class="dashR" >
|
|
|
<div style="margin-top:5px;">
|
|
|
- <textarea name="privacyPolicy" id="privacyPolicyDetail" style="width:720px;">[[*{privacyPolicy}]]</textarea>
|
|
|
+ <textarea name="textareaR4" id="privacyPolicyRegister" style="width:720px;"></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>
|
|
|
+ <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> -->
|
|
|
<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>
|
|
|
+ <!-- <textarea name="fsrcPc" id="fsrcPcRegister" rows="15" cols="95" style="width:1280px;"></textarea> -->
|
|
|
+ <textarea class="textareaR4" id="fsrcPcDetail" name="fsrcPc"></textarea>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -559,20 +572,24 @@
|
|
|
<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>
|
|
|
+ <!-- <textarea name="fsrcMobile" id="fsrcMobileRegister" rows="15" cols="95" style="width:1280px;"></textarea> -->
|
|
|
+ <textarea class="textareaR4" id="fsrcMobileDetail" name="fsrcMobile"></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>
|
|
|
+ <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>
|
|
|
|
|
|
<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>
|
|
|
@@ -615,9 +632,11 @@
|
|
|
//gagaSe.createSmartEditor(seOptions, 'fsrcPcDetail');
|
|
|
//gagaSe.createSmartEditor(seOptions, 'fsrcMobileDetail');
|
|
|
|
|
|
- // 스마트에디어 값 설정
|
|
|
- //gagaSe.setContents('fsrcPcDetail', fsrcPc.fsrc);
|
|
|
- //gagaSe.setContents('fsrcMobileDetail', fsrcMobile.fsrc);
|
|
|
+ // 썸머노트 값 설정
|
|
|
+ $('#fsrcPcDetail').summernote('code', fsrcPc.fsrc);
|
|
|
+ $('#fsrcMobileDetail').summernote('code', fsrcMobile.fsrc);
|
|
|
+ //gagaSn.setContents('#fsrcPcDetail', fsrcPc.fsrc);
|
|
|
+ //gagaSn.setContents('#fsrcMobileDetail', fsrcMobile.fsrc);
|
|
|
|
|
|
if($("#planGb").val()!='E'){
|
|
|
$("#questionEventInsert").hide();
|
|
|
@@ -698,9 +717,9 @@
|
|
|
|
|
|
var fnCopyCallback = function(result) {
|
|
|
fnPlanWebDetailClose();
|
|
|
- fnSearch();
|
|
|
+ //fnSearch();
|
|
|
|
|
|
- var actionUrl = "/marketing/plan/webdetail/form?mode=U&planSq=" + result.planSq;
|
|
|
+ var actionUrl = "/marketing/planning/webdetail/form?mode=U&planSq=" + result.planSq;
|
|
|
cfnOpenModalPopup(actionUrl,'popupPlanWebDetail');
|
|
|
}
|
|
|
|
|
|
@@ -807,8 +826,9 @@
|
|
|
sureBtnText: "확인",
|
|
|
sureBtnClick: function() {
|
|
|
gagajf.ajaxFormSubmit("/marketing/planning/webdetail/create", "#planWebRegisterForm", fnPlanWebDetailCallBack);
|
|
|
- //fnSearch();
|
|
|
- fnPlanWebDetailClose();
|
|
|
+ uifnPopupClose('planWebRegisterFormDiv');
|
|
|
+ fnPlanListSearch();
|
|
|
+ //fnPlanWebDetailClose();
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
@@ -819,8 +839,9 @@
|
|
|
var actionUrl = '/marketing/plan/webdetail/update';
|
|
|
|
|
|
gagajf.ajaxFormSubmit(actionUrl, formId, function() {
|
|
|
- fnSearch();
|
|
|
- fnPlanWebDetailClose();
|
|
|
+ uifnPopupClose('planWebRegisterFormDiv');
|
|
|
+ fnPlanListSearch();
|
|
|
+ //fnPlanWebDetailClose();
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
@@ -833,7 +854,7 @@
|
|
|
|
|
|
var file = this.files[0];
|
|
|
|
|
|
- gagajf.ajaxFileUpload('/common/file/upload?subDir=/plan'
|
|
|
+ gagajf.ajaxFileUpload('/common/file/upload?subDir=/planning'
|
|
|
, file
|
|
|
, function(result) {
|
|
|
if (name == 'registerMainPimg')
|
|
|
@@ -898,9 +919,9 @@
|
|
|
}
|
|
|
|
|
|
var fnPlanWebDetailCallBack = function() {
|
|
|
- fnSearch();
|
|
|
- $('.sp-container').remove(); // 컬러피커 제거
|
|
|
- uifnPopClose('popupPlanWebDetail');
|
|
|
+ uifnPopupClose('planWebRegisterForm');
|
|
|
+ fnPlanListSearch();
|
|
|
+
|
|
|
}
|
|
|
/*]]>*/
|
|
|
</script>
|