|
|
@@ -0,0 +1,393 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="ko"
|
|
|
+ xmlns:th="http://www.thymeleaf.org">
|
|
|
+<!--
|
|
|
+ *******************************************************************************
|
|
|
+ * @source : PlanCornerCopyForm.html
|
|
|
+ * @desc : 기획전 템플릿 화면 Page
|
|
|
+ *============================================================================
|
|
|
+ * SISUN
|
|
|
+ * Copyright(C) 2020 TSIT, All rights reserved.
|
|
|
+ *============================================================================
|
|
|
+ * VER DATE AUTHOR DESCRIPTION
|
|
|
+ * === =========== ========== =============================================
|
|
|
+ * 1.0 2021.02.18 sowon 최초 작성
|
|
|
+ *******************************************************************************
|
|
|
+ -->
|
|
|
+<div class="modalPopup" data-width="1200" data-height="800" id="popupPlanTemplate">
|
|
|
+ <div class="panelStyle" style="height: 750px;">
|
|
|
+ <div class="panelTitle">
|
|
|
+ <strong>기획전 템플릿</strong>
|
|
|
+ <button type="button" class="close"
|
|
|
+ onclick="uifnPopupClose('popupPlanTemplate')">
|
|
|
+ <i class="fa fa-times"></i>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="cardArea" style="height: 700px;margin: 3px;">
|
|
|
+ <form id="planTemplateForm" name="planTemplateForm" action="#" th:action="@{'/marketing/planning/corner/list'}" th:method="post">
|
|
|
+ <div class="panelContent">
|
|
|
+ <div class="panelStyle" style="margin: unset;">
|
|
|
+ <!-- TITLE -->
|
|
|
+ <div class="panelTitle">
|
|
|
+ <h2>리뷰 구간</h2>
|
|
|
+ <span class="panelControl">
|
|
|
+ <i class="fa inner-fa-chevron-up"></i> <!-- 열림/닫힘 화살표 -->
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <!-- //TITLE -->
|
|
|
+ <div class="inner-panelContent">
|
|
|
+ <div class="panelContent">
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col width="10%" />
|
|
|
+ <col width="90%" />
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th>리뷰</th>
|
|
|
+ <td>
|
|
|
+ <div class="padding10">
|
|
|
+ <span class="buttonSpan">
|
|
|
+ <button type="button" class="btn btnRight btn-success btn-lg" id="">리뷰조회</button>
|
|
|
+ <button type="button" class="btn btnRight btn-success btn-lg" id="">행삭제</button>
|
|
|
+ </span> <br />
|
|
|
+ <div id="gridListPlanReview" style="width: 100%; height: 200px;" class="ag-theme-balham"></div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <th>전시순서</th>
|
|
|
+ <td><input type="text" value="" placeholder="1" class="w100 aR"></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="panelContent">
|
|
|
+ <div class="panelStyle" style="margin: unset;">
|
|
|
+ <!-- TITLE -->
|
|
|
+ <div class="panelTitle">
|
|
|
+ <h2>쿠폰 조회</h2>
|
|
|
+ <span class="panelControl">
|
|
|
+ <i class="fa inner-fa-chevron-up"></i> <!-- 열림/닫힘 화살표 -->
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <!-- //TITLE -->
|
|
|
+ <div class="inner-panelContent">
|
|
|
+ <div class="panelContent">
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col width="10%" />
|
|
|
+ <col width="90%" />
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th>쿠폰</th>
|
|
|
+ <td>
|
|
|
+ <div class="padding10">
|
|
|
+ <span class="buttonSpan">
|
|
|
+ <button type="button" class="btn btnRight btn-success btn-lg" id="">쿠폰 조회</button>
|
|
|
+ <button type="button" class="btn btnRight btn-success btn-lg" id="">행 삭제</button>
|
|
|
+ </span> <br />
|
|
|
+ <div id="gridListPlanCoupon" style="width: 100%; height: 200px;" class="ag-theme-balham"></div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <th>전시순서</th>
|
|
|
+ <td><input type="text" value="" placeholder="2" class="w100 aR"></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="panelContent">
|
|
|
+ <div class="panelStyle" style="margin: unset;">
|
|
|
+ <!-- TITLE -->
|
|
|
+ <div class="panelTitle">
|
|
|
+ <h2>이미지 첨부</h2>
|
|
|
+ <span class="panelControl">
|
|
|
+ <i class="fa inner-fa-chevron-up"></i> <!-- 열림/닫힘 화살표 -->
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <!-- //TITLE -->
|
|
|
+ <div class="inner-panelContent">
|
|
|
+ <div class="panelContent">
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col width="10%" />
|
|
|
+ <col width="90%" />
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th>파일첨부</th>
|
|
|
+ <td colspan="5">
|
|
|
+ <div id="registeredFile"></div>
|
|
|
+ <div style="display: block">
|
|
|
+ <select name="fileCnt" id="fileCnt">
|
|
|
+ <th:block th:each="num: ${#numbers.sequence(1,5)}">
|
|
|
+ <option th:value="${num}" th:text="${num}"></option>
|
|
|
+ </th:block>
|
|
|
+ </select>* 파일 개수 선택(5개까지 가능)
|
|
|
+ </div>
|
|
|
+ <th:block th:each="num: ${#numbers.sequence(1,5)}">
|
|
|
+ <div>
|
|
|
+ <div class="uFile w500">
|
|
|
+ <input type="file" th:id="${'file' + num}" th:name="${'file' + num}" class="uFileInput w500"/>
|
|
|
+ <label th:for="${'file' + num}" class="uFileLabel">파일선택</label>
|
|
|
+ <input type="hidden" name="orgFileNms" th:id="${'orgFileNm' + num}"/>
|
|
|
+ <input type="hidden" name="sysFileNms" th:id="${'sysFileNm' + num}"/>
|
|
|
+ </div>
|
|
|
+ <br/>
|
|
|
+ </div>
|
|
|
+ </th:block>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <th>전시순서</th>
|
|
|
+ <td><input type="text" value="" placeholder="3" class="w100 aR"></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="panelContent">
|
|
|
+ <div class="panelStyle" style="margin: unset;">
|
|
|
+ <!-- TITLE -->
|
|
|
+ <div class="panelTitle">
|
|
|
+ <h2>HTML</h2>
|
|
|
+ <select>
|
|
|
+ <option>상단</option>
|
|
|
+ <option>하단</option>
|
|
|
+ </select>
|
|
|
+ <span class="panelControl">
|
|
|
+ <i class="fa inner-fa-chevron-up"></i> <!-- 열림/닫힘 화살표 -->
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <!-- //TITLE -->
|
|
|
+ <div class="inner-panelContent">
|
|
|
+ <div class="panelContent">
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col width="10%" />
|
|
|
+ <col width="90%" />
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th>웹용소스</th>
|
|
|
+ <td 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>모바일용소스</th>
|
|
|
+ <td colspan="5">
|
|
|
+ <div style="margin-top:5px;">
|
|
|
+ <textarea name="fsrcMobile" id="fsrcMobileDetail" rows="15" cols="95" style="width:1280px;"></textarea>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th colspan="2">전시순서</th>
|
|
|
+ <td><input type="text" value="" placeholder="4" class="w100 aR"></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="panelContent">
|
|
|
+ <div class="panelStyle" style="margin: unset;">
|
|
|
+ <!-- TITLE -->
|
|
|
+ <div class="panelTitle">
|
|
|
+ <h2>상품</h2>
|
|
|
+ <button type="button" class="btn btnRight btn-success btn-lg" id="">추가</button><br>
|
|
|
+ <span class="panelControl">
|
|
|
+ <i class="fa inner-fa-chevron-up"></i> <!-- 열림/닫힘 화살표 -->
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <!-- //TITLE -->
|
|
|
+ <div class="inner-panelContent">
|
|
|
+ <div class="panelContent">
|
|
|
+ <strong>화면 구성:</strong>
|
|
|
+ <select>
|
|
|
+ <option>1</option>
|
|
|
+ <option>2</option>
|
|
|
+ <option>4</option>
|
|
|
+ </select><br>
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col width="10%" />
|
|
|
+ <col width="90%" />
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th>상품</th>
|
|
|
+ <td>
|
|
|
+ <div class="padding10">
|
|
|
+ <ul class="panelBar">
|
|
|
+ <li class="right">
|
|
|
+ <button type="button" class="btn btn-base btn-lg" id="">상품 조회</button>
|
|
|
+ <button type="button" class="btn btn-danger btn-lg" id="">행 삭제</button>
|
|
|
+ </li>
|
|
|
+ </ul><br />
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col width="10%" />
|
|
|
+ <col width="90%" />
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th>상품이름</th>
|
|
|
+ <td colspan="5">
|
|
|
+ <div style="margin-top: 5px;">
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <th>재고</th>
|
|
|
+ <td colspan="5">
|
|
|
+ <div style="margin-top: 5px;">
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <th>전시순서</th>
|
|
|
+ <td><input type="text" value="" placeholder="5" class="w100 aR"></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </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>
|
|
|
+<script th:inline="javascript">
|
|
|
+/*<![CDATA[*/
|
|
|
+ // 리뷰 리스트 설정
|
|
|
+ var columnReviewList = [
|
|
|
+ {width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
|
|
|
+ {headerName: "리뷰ID", field: "", width: 110, cellClass: 'text-center'},
|
|
|
+ {headerName: "", field: "", width: 120, cellClass: 'text-center'},
|
|
|
+ {headerName: "", field: "", width: 150, cellClass: 'text-center'},
|
|
|
+ ];
|
|
|
+
|
|
|
+ // 쿠폰 리스트 설정
|
|
|
+ var columnCouponList = [
|
|
|
+ {width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
|
|
|
+ {headerName: "쿠폰ID", field: "", width: 110, cellClass: 'text-center'},
|
|
|
+ {headerName: "", field: "", width: 120, cellClass: 'text-center'},
|
|
|
+ {headerName: "", field: "", width: 150, cellClass: 'text-center'},
|
|
|
+ ];
|
|
|
+
|
|
|
+ // 상품 리스트 설정
|
|
|
+ //var columnGoodsList = [
|
|
|
+ // {width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
|
|
|
+ // {headerName: "상품ID", field: "", width: 110, cellClass: 'text-center'},
|
|
|
+ // {headerName: "", field: "", width: 120, cellClass: 'text-center'},
|
|
|
+ // {headerName: "", field: "", width: 150, cellClass: 'text-center'},
|
|
|
+ //];
|
|
|
+
|
|
|
+
|
|
|
+ // 리뷰 그리드 설정
|
|
|
+ var gridOptionsPlanReviewList = gagaAgGrid.getGridOptions(columnReviewList);
|
|
|
+ gridOptionsPlanReviewList.rowSelection = "single";
|
|
|
+ gridOptionsPlanReviewList.suppressRowClickSelection = true;
|
|
|
+
|
|
|
+ // 리뷰 그리드 설정
|
|
|
+ var gridOptionsPlanCouponeList = gagaAgGrid.getGridOptions(columnCouponList);
|
|
|
+ gridOptionsPlanCouponeList.rowSelection = "single";
|
|
|
+ gridOptionsPlanCouponeList.suppressRowClickSelection = true;
|
|
|
+
|
|
|
+ // 상품 그리드 설정
|
|
|
+ //var gridOptionsPlanGoodsList = gagaAgGrid.getGridOptions(columnGoodsList);
|
|
|
+ //gridOptionsPlanGoodsList.rowSelection = "single";
|
|
|
+ //gridOptionsPlanGoodsList.suppressRowClickSelection = true;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ // 첨부파일 삭제
|
|
|
+ var fnDeleteFile = function(obj, noticeSq, seq, sysFileNm) {
|
|
|
+ mcxDialog.confirm('정말 삭제하시겠습니까?', {
|
|
|
+ cancelBtnText: "취소",
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function(){
|
|
|
+ var params = new Object();
|
|
|
+ params.noticeSq = noticeSq;
|
|
|
+ params.seq = seq;
|
|
|
+ params.sysFileNm = sysFileNm;
|
|
|
+
|
|
|
+ var jsonData = JSON.stringify(params);
|
|
|
+ gagajf.ajaxJsonSubmit('/board/notice/file/delete', jsonData, function() {
|
|
|
+ $(obj).parent().remove();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ // 첨부파일 개수 선택시
|
|
|
+ $("#fileCnt").on("change", function() {
|
|
|
+ for (var i = 1; i <= 5; i++) {
|
|
|
+ $('#file' + i).parent().parent().show();
|
|
|
+ }
|
|
|
+
|
|
|
+ var fileCnt = $(this).val();
|
|
|
+ for (var i = 5; i > fileCnt; i--) {
|
|
|
+ $('#file' + i).parent().parent().hide();
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ // 파일첨부 선택 시
|
|
|
+ $('#file1').on('change', function() { fnChooseFile(this, 1); });
|
|
|
+ $('#file2').on('change', function() { fnChooseFile(this, 2); });
|
|
|
+ $('#file3').on('change', function() { fnChooseFile(this, 3); });
|
|
|
+ $('#file4').on('change', function() { fnChooseFile(this, 4); });
|
|
|
+ $('#file5').on('change', function() { fnChooseFile(this, 5); });
|
|
|
+
|
|
|
+ var fnChooseFile = function(obj, fileNo) {
|
|
|
+ // multiple 속성이 있으면 files에는 다수의 객체가 할당됨
|
|
|
+ var file = obj.files[0];
|
|
|
+
|
|
|
+ // 파일 업로드
|
|
|
+ gagajf.ajaxFileUpload('/common/file/upload?subDir=/planning'
|
|
|
+ , file
|
|
|
+ , function(result) {
|
|
|
+ // 업로드한 파일명 설정
|
|
|
+ $('#orgFileNm' + fileNo).val(result.oldFileName);
|
|
|
+ $('#sysFileNm' + fileNo).val(result.newFileName);
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+$(document).ready(function() {
|
|
|
+
|
|
|
+
|
|
|
+ // 썸머노트 그리기
|
|
|
+ gagaSn.createSummernote(snOptions, '#fsrcPcDetail');
|
|
|
+ gagaSn.createSummernote(snOptions, '#fsrcMobileDetail');
|
|
|
+
|
|
|
+ // 그리드 그리기
|
|
|
+ gagaAgGrid.createGrid("gridListPlanReview", gridOptionsPlanReviewList);
|
|
|
+ gagaAgGrid.createGrid("gridListPlanCoupon", gridOptionsPlanCouponeList);
|
|
|
+ //gagaAgGrid.createGrid("gridListPlanGoods", gridOptionsPlanGoodsList);
|
|
|
+
|
|
|
+ $("#fileCnt").trigger('change');
|
|
|
+
|
|
|
+});
|
|
|
+
|
|
|
+/*]]>*/
|
|
|
+</script>
|
|
|
+</html>
|