106 lines
3.6 KiB
Plaintext
106 lines
3.6 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
|
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>등급제 관리</title>
|
|
<script type="text/javascript">
|
|
|
|
function doUpdate() {
|
|
|
|
}
|
|
|
|
// 등급제 일괄변경
|
|
function setMassEdit() {
|
|
if(!confirm("등급별 단가를 변경 하시겠습니까?")) {
|
|
return;
|
|
}
|
|
|
|
// 콤마 제거
|
|
$('input[name=totAmt]').each(function(index,item){
|
|
$(this).val($(this).val().replace(/,/gi, ""));
|
|
});
|
|
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "/sym/grd/mberGrdSettingMassUpdateAjax.do",
|
|
data: $("#listForm").serialize(),
|
|
dataType:'json',
|
|
async: false,
|
|
success: function (data) {
|
|
console.log(data);
|
|
if (data.isSuccess) {
|
|
alert("저장 완료했습니다.");
|
|
location.reload();
|
|
}
|
|
else {
|
|
alert("Msg : " + data.msg);
|
|
}
|
|
},
|
|
error: function (e) {
|
|
alert("ERROR : " + JSON.stringify(e));
|
|
}
|
|
});
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div class="contWrap">
|
|
<div class="pageTitle">
|
|
<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
|
|
<h2 class="titType1 c_222222 fwBold">등급제 관리</h2>
|
|
<p class="tType6 c_999999">등급제 관리 페이지 입니다.</p>
|
|
</div>
|
|
<div class="pageCont">
|
|
<form id="listForm" name="listForm" method="post">
|
|
<div class="tableWrap">
|
|
<table class="tbType1">
|
|
<colgroup>
|
|
<col width="10%">
|
|
<col width="*">
|
|
<col width="13%">
|
|
<col width="13%">
|
|
<col width="13%">
|
|
<col width="13%">
|
|
<col width="13%">
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>등급</th>
|
|
<th>누적결제액</th>
|
|
<th>단문</th>
|
|
<th>장문</th>
|
|
<th>그림(1장)</th>
|
|
<th>그림(2장)</th>
|
|
<th>그림(3장)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:forEach var="result" items="${mberGrdSettingList}" varStatus="status">
|
|
<input type="hidden" name="grdSetNo" value="${result.grdSetNo}"/>
|
|
<tr>
|
|
<td><c:out value="${result.grdSetNm}"/></td>
|
|
<td><input type="text" name="totAmt" value="<c:out value="${result.totAmtComma}"/>" style="height: 20px; width: 150px; padding: 5px 5px 5px 5px;" /></td>
|
|
<td><input type="text" name="shortPrice" value="<c:out value="${result.shortPrice}"/>" style="height: 20px; width: 100px; padding: 5px 5px 5px 5px;" /></td>
|
|
<td><input type="text" name="longPrice" value="<c:out value="${result.longPrice}"/>" style="height: 20px; width: 100px; padding: 5px 5px 5px 5px;" /></td>
|
|
<td><input type="text" name="picturePrice" value="<c:out value="${result.picturePrice}"/>" style="height: 20px; width: 100px; padding: 5px 5px 5px 5px;" /></td>
|
|
<td><input type="text" name="picture2Price" value="<c:out value="${result.picture2Price}"/>" style="height: 20px; width: 100px; padding: 5px 5px 5px 5px;" /></td>
|
|
<td><input type="text" name="picture3Price" value="<c:out value="${result.picture3Price}"/>" style="height: 20px; width: 100px; padding: 5px 5px 5px 5px;" /></td>
|
|
</tr>
|
|
</c:forEach>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
<div class="btnWrap">
|
|
<input type="button" class="btnType1" value="수정" onclick="javascript:setMassEdit(); return false;">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |