<%@ 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-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">
				<form method="POST" action="IdcCuponWriteForm2.cup">
		   			<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>
								</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="checkbox" name="checkNum" value="${i.count }"></td>
										<td><input type="date" name="endDay"></td>
									</tr>
								</c:forEach>
							</tbody>
							<tfoot>
							</tfoot>
						</table>
					</div>
					<!-- table-responsive -->
					<div class="input-group">
						<input class="btn btn-outline btn-primary" type="submit" value="등록">
						<a class="btn btn-outline btn-default" href="IdcCuponList.cup">취소</a>
					</div>
				</form>
				<div>
					<ul class="pagination" style="margin:0px;">
						<li>
							<a class="btn btn-outline btn-default" href="IdcCuponWriteForm.cup">
								<i class="fa fa-angle-double-left "></i>
							</a>
						</li>
						<c:forEach var="i" begin="1" end="${pageCnt }">
						<li>
							<a class="btn btn-outline btn-defualt" href="IdcCuponWriteForm.cup?CurPage=${i }">${i}</a>	
						</li>
						</c:forEach>
						<li>
							<a class="btn btn-outline btn-default" href="IdcCuponWriteForm.cup?CurPage=${i }">
								<i class="fa fa-angle-double-right "></i>
							</a>
						</li>
					</ul>
					<!-- ul -->
				</div>
				<!-- UL DIV -->
			</div>
			<!-- panel-body -->
		</div>
		<!-- panel panel-default -->
	</div>
	<!-- col-lg-12 -->
</div>
<!-- row -->
<!-- /#page-wrapper -->
