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

<script type="text/javascript">	
	//기타 클릭시
	function etcManage(service_code, client_name){
		if(service_code != undefined && service_code != null){
			window.location = "etcManage.sev?service_code="+service_code+"&client_name="+client_name;
		}
	}
	
	//일회성 클릭시
	function clickOntime(service_code, client_name, flag){
		if(service_code != undefined && service_code != null){		
			location.replace("additionalService.sev?service_code="+service_code+"&flag="+flag);
		}
	}
</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="table-responsive">
					<table class="table table-bordered table-hover table-striped">
						<thead>
							<tr>
								<td>고객명</td>
								<td>장비번호</td>
								<td>IP</td>
								<td>월과금정보</td>
								<td>현재예치금</td>								
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>${iasd.client_name}</td>
								<td>${iasd.server_code}</td>
								<td>${iasd.service_ip}</td>
								<td>${iasd.service_amount}</td>
								<td>${iasd.client_money}</td>								
							</tr>
						</tbody>
						<tfoot>
						</tfoot>
					</table>
				</div>
				<!-- table-responsive -->				
				<!-- row -->
				<div class="table-responsive">
					<table class="table table-bordered table-hover table-striped">
						<thead>
						</thead>
						<tbody>
							<tr>								
								<td>1회성 및 기타서비스 <br>
									${start_dto.onetime_date} ${start_dto.onetime}<br>
									<form action="etcManage.sev" method="post">
										<input type="hidden" name="service_code" value="${iasd.service_code}"/>
										<input type="hidden" name="client_name" value="${iasd.client_name}" />
										<input type="hidden" name="vpnFlag" value="true"/>
										<input class="btn btn-outline btn-default" type="submit" value="ETC관리" >										
									</form>									
								</td>
							</tr>
						</tbody>
						<tfoot>
						</tfoot>
					</table>
				</div>
				 <a class="btn btn-outline btn-default " href="serviceDetail.sev?client_code=${iasd.client_code}">서비스 리스트</a>
				<!-- table-responsive -->
			</div>
			<!-- panel-body -->
		</div>
		<!-- panel panel-default -->
	</div>
	<!-- col-lg-12 -->
</div>
<!-- row -->
<!-- /#page-wrapper -->
