<%@ 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() {
		var form = document.form;
		form.action = "/sym/site/updateBaseUnitPrice.do";
		
		if (!confirm('수정하시겠습니까?')) 
			return;
		
		form.submit();
	}
	
	</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 name="form" id="form" method="post">
			<div class="tableWrap">
				<table class="tbType2">
					<colgroup>
						<col width="30%">
						<col width="*">
					</colgroup>
					<tbody>
						<tr>
							<th>단문 기본 단가</th>
							<td><input type="text" name="shortPrice" style="width:50%" value="<c:out value='${joinSettingVO.shortPrice}' />" /></td>
						</tr>
						<tr>
							<th>장문 기본 단가</th>
							<td><input type="text" name="longPrice" style="width:50%" value="<c:out value='${joinSettingVO.longPrice}' />" /></td>
						</tr>
						<tr>
							<th>그림 기본 단가</th>
							<td><input type="text" name="picturePrice" style="width:50%" value="<c:out value='${joinSettingVO.picturePrice}' />" /></td>
						</tr>
						<tr>
							<th>그림2장 기본 단가</th>
							<td><input type="text" name="picture2Price" style="width:50%" value="<c:out value='${joinSettingVO.picture2Price}' />" /></td>
						</tr>
						<tr>
							<th>그림3장 기본 단가</th>
							<td><input type="text" name="picture3Price" style="width:50%" value="<c:out value='${joinSettingVO.picture3Price}' />" /></td>
						</tr>
						<tr>
							<th>환불 비율</th>
							<td><input type="text" name="refundPer" style="width:50%" value="<c:out value='${joinSettingVO.refundPer}' />" /></td>
						</tr>
						<tr>
							<th>신규 회원 지급 캐시</th>
							<td><input type="text" name="joinCash" style="width:50%" value="<c:out value='${joinSettingVO.joinCash}' />" /></td>
						</tr>
						<tr>
							<th>충전 시 포인트 비율</th>
							<td><input type="text" name="pointPer" style="width:50%" value="<c:out value='${joinSettingVO.pointPer}' />" /></td>
						</tr>
						<tr>
							<th>샘플 수정</th>
							<td><input type="text" name="customSamplePrice" style="width:50%" value="<c:out value='${joinSettingVO.customSamplePrice}' />" /></td>
						</tr>
						<tr>
							<th>이미지 편집(1장)</th>
							<td><input type="text" name="customEditPrice" style="width:50%" value="<c:out value='${joinSettingVO.customEditPrice}' />" /></td>
						</tr>
						<tr>
							<th>이미지 편집(3장이하)</th>
							<td><input type="text" name="customEdit3Price" style="width:50%" value="<c:out value='${joinSettingVO.customEdit3Price}' />" /></td>
						</tr>
						<tr>
							<th>텍스트 단순수정</th>
							<td><input type="text" name="customTextPrice" style="width:50%" value="<c:out value='${joinSettingVO.customTextPrice}' />" /></td>
						</tr>
						<tr>
							<th>카카오 알림톡</th>
							<td><input type="text" name="kakaoAtPrice" style="width:50%" value="<c:out value='${joinSettingVO.kakaoAtPrice}' />" /></td>
						</tr>
						<tr>
							<th>팩스</th>
							<td><input type="text" name="faxPrice" style="width:50%" value="<c:out value='${joinSettingVO.faxPrice}' />" /></td>
						</tr>
					</tbody>
				</table>
			</div>
			</form>
			<div class="btnWrap">
				<input type="button" class="btnType1" value="수정" onclick="javascript:doUpdate(); return false;">
			</div>
		</div>
	</div>
</body>
</html>