<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>

<!-- 여기가 본 페이지이다 -->
<div class="row">
	<div class="col-lg-8">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h4><i class="fa fa-desktop fa-fw"></i> 쿠폰 설정</h4>
			</div>
			<div class="panel-body">
				<div class="row">
				</div>
				<!-- row -->
				<form action="IdcCuponModify.cup" method="POST">
		   			<input type="hidden" id="token" name="token">
		   			<div class="table-responsive">
		   				<input type="hidden" name="cupon_num" value="${temp.cupon_num }">
						<table class="table table-bordered table-hover table-striped">
							<thead>
							</thead>
							<tbody>
								<tr>
									<td width="20%">서비스상태</td>
									<td><input type="text" readonly="readonly" value="${temp.service_status }"></td>
								</tr>
								<tr>
									<td>고객코드</td>
									<td><input type="text" readonly="readonly" value="${temp.client_code }"></td>
								</tr>
								<tr>
									<td>서비스코드</td>
									<td><input type="text" readonly="readonly" value="${temp.service_code }"></td>
								</tr>
								<tr>
									<td>고객명</td>
									<td><input type="text" readonly="readonly" value="${temp.service_status }"></td>
								</tr>
								<tr>
									<td>장비명</td>
									<td><input type="text" readonly="readonly" value="${temp.service_status }"></td>
								</tr>
								<tr>
									<td>IP</td>
									<td><input type="text" readonly="readonly" value="${temp.service_status }"></td>
								</tr>
								<tr>
									<td>쿠폰발행기준</td>
									<td><input type="date" name="cupon_request_date" value="${temp.cupon_request_date }"></td>
								</tr>
								<tr>
									<td>쿠폰수량</td>
									<td><input type="text" name="cupon_current" value="${temp.cupon_current }"></td>
								</tr>
								<tr>
									<td>사용수량</td>
									<td><input type="text" name="cupon_use" value="${temp.cupon_use }"></td>
								</tr>
								<tr>
									<td>전체수량</td>
									<td><input type="text" name="cupon_result" value="${temp.cupon_result }"></td>
								</tr>
								<tr>
									<td>장비업그레이드</td>
									<td>
										<c:if test="${temp.service_status==o }">
											<input type="radio"  name="service_status" value="o" checked="checked">O
											<input type="radio"  name="service_status" value="x">X
										</c:if>
										<c:if test="${temp.service_status==x }">
											<input type="radio" name="service_status" value="o" >O
											<input type="radio" name="service_status" value="x" checked="checked">X
										</c:if>
									</td>
								</tr>
								<tr>
									<td>만료일</td>
									<td><input type="text" name="cupon_end_date" value="${temp.cupon_end_date }"></td>
								</tr>
								<tr>
									<td>비고</td>
									<td><input type="text" name="cupon_note" value="${temp.cupon_note }"></td>
								</tr>
							</tbody>
							<tfoot>
								<tr>
									<td colspan="2">
										<input type="submit" value="저장" class="btn btn-info">
										<a href="IdcCuponList.cup" class="btn btn-danger">취소</a>
									</td>
								</tr>
							</tfoot>
						</table>
					</div>
					<!-- table-responsive -->
				</form>
			</div>
			<!-- panel-body -->
		</div>
		<!-- panel panel-default -->
	</div>
	<!-- col-lg-12 -->
</div>
<!-- row -->
<!-- /#page-wrapper -->
