<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<script src="IDC/js/setToken.js"></script>
<!-- 여기가 본 페이지이다 -->
<div class="row">
	<div class="col-lg-12">
		<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 method="POST" action="IdcCuponWrite.cup">
		   			<input type="hidden" id="token" name="token">
		   			<div class="table-responsive">
						<table class="table table-bordered table-hover table-striped">
							<thead>
								<tr>
									<td>No</td>
									<td>서비스상태</td>
									<td>고객코드</td>
									<td>서비스코드</td>
									<td>고객명</td>
									<td>장비명</td>
									<td>쿠폰 개수</td>
									<td>장비 업그레이드</td>
									<td>만료일</td>
									<td>비고</td>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${IdcServiceList }" var="temp" varStatus="i">
									<tr>
										<td>${temp.cupon_num}</td>
										<td>${temp.service_status}</td>
										<td>${temp.client_code }</td>
										<td>${temp.service_code }</td>
										<td>${temp.client_name }</td>
										<td>${temp.server_code }</td>
										<td><input type="text" name="cupon_current"></td>
										<td><input type="checkbox" name="server_upgrade" value="o" checked="checked">O<input type="checkbox" name="server_upgrade" value="x">X</td>
										<td><input type="date" value="${temp.cupon_end_date }" readonly="readonly"></td>
										<td><input type="text" name="cupon_note"></td>
									</tr>
								</c:forEach>
							</tbody>
							<tfoot>
								<tr>
									<td colspan="10">
										<input class="btn btn-outline btn-primary" type="submit" value="등록">
										<a class="btn btn-outline btn-default" href="IdcCuponList.cup">취소</a>
									</td>
								</tr>
							</tfoot>
						</table>
					</div>
					<!-- table-responsive -->
				</form>
			</div>
			<!-- panel-body -->
		</div>
		<!-- panel panel-default -->
	</div>
	<!-- col-lg-12 -->
</div>
<!-- row -->
<!-- /#page-wrapper -->
