فهرست منبع

poll 관리 개발

sowon4187 5 سال پیش
والد
کامیت
3c05f5b239

+ 3 - 0
src/main/java/com/style24/persistence/domain/Poll.java

@@ -1,6 +1,8 @@
 package com.style24.persistence.domain;
 
 
+import com.style24.core.support.session.TscSession;
+import com.style24.core.support.util.MaskingUtils;
 import com.style24.persistence.TscBaseDomain;
 
 import lombok.Data;
@@ -61,5 +63,6 @@ public class Poll extends TscBaseDomain{
 	private String name;			// 투표율 구하기위한 변수선언 
 	private String voterNm;			// 투표자명
 	private String voteDt;			// 투표일시
+	
 
 }

+ 23 - 18
src/main/webapp/WEB-INF/views/marketing/PollListForm.html

@@ -20,10 +20,11 @@
 
 		<div class="panelStyle">
 			<form id="PollsearchForm" name="PollsearchForm" action="#" th:action="@{'/marketing/poll/list'}" onsubmit="$('#btnSearch').trigger('click'); return false;">
+			<input type="hidden" name="maskingYn" value="Y"/>
 				<table class="frmStyle">
 					<colgroup>
 						<col style="width:10%;"/>
-						<col style="width:30%;"/>
+						<col style="width:10%;"/>
 						<col style="width:10%;"/>
 						<col style="width:30%;"/>
 						<col style="width:10%;"/>
@@ -31,21 +32,20 @@
 					</colgroup>
 					<tbody>
 						<tr>
-							<th>등록기간</th>
-							<td id="terms" colspan="3"></td>
-						</tr>
-						<tr>
-							<th>POLL 제목</th>
-							<td>
-								<input type="text" name="pollTitle" id="pollTitle"/>
-							</td>
-
 							<th>사이트</th>
 							<td>
 								<select name="siteCd">
 									<option th:if="${siteList}" th:each="oneData, status : ${siteList}" th:value="${oneData.cd}" th:text="${oneData.cdNm}|"></option>
 								</select>
 							</td>
+							<th>POLL 제목</th>
+							<td>
+								<input type="text" name="pollTitle" id="pollTitle"/>
+							</td>
+						</tr>
+						<tr>
+							<th>등록기간</th>
+							<td id="terms" colspan="3"></td>
 						</tr>
 					</tbody>
 				</table>
@@ -59,15 +59,20 @@
 		</div>
 
 		<div class="panelStyle">
-			<ul class="lrStyle">
-				<li class="aR">
-					<h4 class="btnLeft" id="pollQtitle">투표자수</h4>
+			<ul class="division">
+				<li style="width:60%">
+					<div class="panelBar">
+						<h4>POLL 목록</h4>
+					</div>
+					<div id="gridListPoll" style="width: 100%; height: 500px; float: left;" class="ag-theme-balham"></div>
+				</li>
+				<li style="width:40%">
+					<div class="panelBar">
+						<h4 id="pollQtitle">투표자 수</h4>
+					</div>
+					<div id="gridListVote" style="width: 100%; height: 500px; float: right;" class="ag-theme-balham"></div>
 				</li>
 			</ul>
-			<div class="panelContent" style="padding-bottom: 530px;">
-				<div id="gridListPoll" style="width: 60%; height: 500px; float: left;" class="ag-theme-balham"></div>
-				<div id="gridListVote" style="width: 38%; height: 500px; float: right;" class="ag-theme-balham"></div>
-			</div>
 		</div>
 
 		<div class="panelStyle">
@@ -129,7 +134,7 @@
 										<input name="dispEdTime" id="edTime" type="hidden" data-valid-name="투표기간 종료시간" value='235959' />
 									</td>
 
-									<th>사이트<i class="star"></i></th>
+									<th>사이트</th>
 									<td>
 										<select name="siteCd">
 											<option th:if="${siteList}" th:each="oneData, status : ${siteList}" th:value="${oneData.cd}" th:text="${oneData.cdNm}|"></option>

+ 24 - 36
src/main/webapp/WEB-INF/views/marketing/PollVoteRatePopupForm.html

@@ -13,12 +13,12 @@
  * ===  ===========  ==========  =============================================
  * 1.0  2021.02.22   sowon     최초 작성
  *******************************************************************************
- -->s
-<div class="modalPopup" data-width="960" data-height="300" id="popupPollVoteRate">
+ -->
+<div class="modalPopup" data-width="960" data-height="400" id="popupPollVoteRate">
 	<div id="panel" class="panelStyle">
 		<!-- TITLE -->
 		<div class="panelTitle">
-			<strong>POLL 투표율</strong>
+			<h2>POLL 투표율</h2>
 			<button type="button" class="close"
 				onclick="uifnPopupClose('popupPollVoteRate');">
 				<em class="fa fa-times"></em>
@@ -32,41 +32,29 @@
 				<input type="hidden" name="pollSq" />
 				<ul class="boxContent">
 					<li class="boxContentTop">
-						<table class="frmStyle">
+						<table class="frmStyle" style="overflow:auto;">
+							<colgroup>
+								<col width="">
+								<col width="">
+								<col width="">
+								<col width="">
+								<col width="">
+								<col width="">
+								<col width="">
+								<col width="">
+								<col width="">
+								<col width="">
+							</colgroup>
 							<tbody>
 								<tr>
-									<td>
-										<div id="questionDiv" class="btn_left"
-											style="width: 100%; height: 200px; overflow: yes; overflow-x: auto; overflow-y: auto;">
-											<table class="tableStyle" id="questionTable" 
-												style="overflow-x: auto; overflow-y: auto;">
-												<colgroup>
-													<col width="">
-													<col width="">
-													<col width="">
-													<col width="">
-													<col width="">
-													<col width="">
-													<col width="">
-													<col width="">
-													<col width="">
-													<col width="">
-												</colgroup>
-												<tbody>
-													<tr>
-														<td>문항</td>
-														<td>투표수</td>
-														<td>투표율</td>
-													</tr>								
-													<tr th:each="list : ${pollAList}" align="center">
-														<td>[[${list.name}]]</td>
-														<td>[[${list.voteCnt}]]</td>
-														<td><label>[[${list.voteRate}]]%</label></td>
-													</tr>
-												</tbody>
-											</table>
-										</div>
-									</td>
+									<th>문항</th>
+									<th>투표수(명)</th>
+									<th>투표율</th>
+								</tr>								
+								<tr th:each="list : ${pollAList}" align="center">
+									<td>[[${list.name}]]</td>
+									<td>[[${list.voteCnt}]]</td>
+									<td><label>[[${list.voteRate}]]%</label></td>
 								</tr>
 							</tbody>
 						</table>