Browse Source

팝업 - 모바일용 추가

eskim 5 years ago
parent
commit
0ab8777add
1 changed files with 39 additions and 19 deletions
  1. 39 19
      src/main/webapp/WEB-INF/views/display/PopupListForm.html

+ 39 - 19
src/main/webapp/WEB-INF/views/display/PopupListForm.html

@@ -47,7 +47,7 @@
 						<th>전시화면</th>
 						<td>
 							<select name="frontGb">
-								<option value="A">전체</option>
+								<option value="">전체</option>
 								<option value="P">PC</option>
 								<option value="M">모바일</option>
 							</select>
@@ -143,7 +143,6 @@
 						<option value="50" selected="selected">50개씩 보기</option>
 						<option value="100">100개씩 보기</option>
 						<option value="500">500개씩 보기</option>
-						<option value="1000">1000개씩 보기</option>
 					</select>
 					<input type="hidden" name="pageNo" id="pageNo" value ="1"/>
 				</li>
@@ -167,13 +166,11 @@
 				<input type="hidden" name="unexpDays" value="1"/>	<!--미노출일수-->
 				<table class="frmStyle">
 					<colgroup>
-						<col style="width:10%;"/>
-						<col style="width:15%;"/>
-						<col style="width:10%;"/>
-						<col style="width:15%;"/>
-						<col style="width:10%;"/>
-						<col style="width:15%;"/>
-						<col style="width:10%;"/>
+						<col style="width:8%;"/>
+						<col style="width:25%;"/>
+						<col style="width:8%;"/>
+						<col style="width:25%;"/>
+						<col style="width:8%;"/>
 						<col/>
 					</colgroup>
 					<tr>
@@ -201,24 +198,29 @@
 							<input type="text" class="off w80" name="planSq" id="planSq" placeholder="기획전번호" data-valid-name="기획전번호"/>
 							<button type="button" class="off btn btn-base btn-lg" id="btnSearchPlan"  onclick="fnPlanSearch('')">기획전 조회</button>
 						</td>
+					</tr>
+					<tr>
 						<th>PC/모바일 구분<i class="required" title="필수"></i></th>
 						<td>
 							<select name="frontGb" id="frontGb">
-								<option value="A">[A] 전체</option>
 								<option value="P">[P] PC</option>
 								<option value="M">[M] 모바일</option>
 							</select>
 						</td>
-					</tr>
-					<tr>
 						<th>우선순위<i class="required" title="필수"></i></th>
-						<td colspan="7">
+						<td>
 							<input type="text" class="w90" name="dispOrd" id="dispOrd" required="required" data-valid-type=numeric data-valid-name="우선순위"/>
 						</td>
+						<th>팝업구분<i class="required" title="필수"></i></th>
+						<td>
+							<label class="rdoBtn"><input type="radio" name="popupGb" id="popupGbF" value="F" checked="checked" />Full</label>
+							<label class="rdoBtn"><input type="radio" name="popupGb" id="popupGbH" value="H"/>Half</label>
+							<strong class="cBlue">* PC팝업은 팝업구분 상관없이 Full입니다.</strong>
+						</td>
 					</tr>
 					<tr>
 						<th>노출시작일시<i class="required" title="필수"></i></th>
-						<td colspan="3">
+						<td colspan="5">
 							<input name="dispStdt" id="stDate" type="text" class="w80 schDate" maxlength="10" required="required" data-valid-name="노출시작일자" />
 							<select id="stTimeHour" required="required" data-valid-name="노출기간 시작시간">
 								<th:block th:each="num, index  : ${#numbers.sequence(0,23)}">
@@ -231,9 +233,7 @@
 								</th:block>
 							</select>
 							<input name="dispStTime" id="stTime" type="hidden" data-valid-name="노출기간 시작시간" value='000000' />
-						</td>
-						<th>노출종료일시<i class="required" title="필수"></i></th>
-						<td colspan="3">
+						 ~
 							<input name="dispEddt" id="edDate" type="text" class="w80 schDate" maxlength="10" required="required" data-valid-name="노출종료일자" />
 							<select id="edTimeHour" required="required" data-valid-name="노출기간 종료시간">
 								<th:block th:each="num: ${#numbers.sequence(0,23)}">
@@ -250,7 +250,8 @@
 					</tr>
 					<tr>
 						<th>이미지<i class="star"></i></th>
-						<td colspan="7">
+						<td colspan="3">
+						
 							<div id="ImageArea">
 								이미지파일 : <span class="uFile w300">
 												<input id="file_1" name="file" type="file" class="uFileInput w300"  data-valid-name="이미지파일" onchange="fnFileUpload(this);"/>
@@ -266,6 +267,11 @@
 								</span>
 							</div>
 						</td>
+						<th>링크새창구분<i class="required" title="필수"></i></th>
+						<td>
+							<label class="rdoBtn"><input type="radio" name="linkTarget" id="linkTargetS" value="S" checked="checked" />본창</label>
+							<label class="rdoBtn"><input type="radio" name="linkTarget" id="linkTargetN" value="N"/>새창</label>
+						</td>
 					</tr>
 				</table>
 			</form>
@@ -342,8 +348,17 @@
 			$(formId + " input[name=brandCd]").val(event.data.brandCd);
 			$(formId + " input[name=planSq]").val(event.data.planSq);
 			$(formId + " select[name=frontGb]").val(event.data.frontGb);
-			$(formId + " select[name=popupGb]").val(event.data.popupGb);
+			if (event.data.popupGb == "F"){
+				$(formId + " input:radio[name=popupGb]:input[value='F']").trigger('click');
+			}else{
+				$(formId + " input:radio[name=popupGb]:input[value='H']").trigger('click');
+			}
 			$(formId + " input[name=unexpDays]").val(event.data.unexpDays);
+			if (event.data.linkTarget == "S"){
+				$(formId + " input:radio[name=linkTarget]:input[value='S']").trigger('click');
+			}else{
+				$(formId + " input:radio[name=linkTarget]:input[value='N']").trigger('click');
+			}
 			$(formId + " input[name=dispOrd]").val(event.data.dispOrd);
 			var dispStdt = event.data.dispStdt.replace(/[^0-9]/g, '');
 			$(formId + " input[name=dispStdt]").val(dispStdt.substr(0,4)+"-"+dispStdt.substr(4,2)+"-"+dispStdt.substr(6,2));
@@ -545,8 +560,12 @@
 		var fromDate = $('#detailForm input[name=dispStdt]').val().replace(/[^0-9]/g, '')+$('#detailForm #stTimeHour').val()+$('#detailForm #stTimeMin').val()+'00';
 		var toDate = $('#detailForm input[name=dispEddt]').val().replace(/[^0-9]/g, '')+$('#detailForm #edTimeHour').val()+$('#detailForm #edTimeMin').val()+'59';
 
+		var popupGb = $('#detailForm input[name=popupGb]:checked').val();
+		var linkTarget = $('#detailForm input[name=linkTarget]:checked').val();
+		
 		var data = {
 			popupSq : $('#detailForm input[name=popupSq]').val()
+			,popupGb : popupGb
 			,siteCd : $('#detailForm select[name=siteCd]').val()
 			,viewPage : $('#detailForm select[name=viewPage]').val()
 			,cateNo : $('#detailForm select[name=cateNo]').val()
@@ -554,6 +573,7 @@
 			,planSq : $('#detailForm input[name=planSq]').val()
 			,frontGb : $('#detailForm select[name=frontGb]').val()
 			,unexpDays : $('#detailForm input[name=unexpDays]').val()
+			,linkTarget : linkTarget
 			,dispOrd : $('#detailForm input[name=dispOrd]').val()
 			,dispStdt : fromDate
 			,dispEddt : toDate