<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript" src="<c:url value='/resources/js/admin/version.js' />"></script>
<!-- 앱버전 관리 -->
<div class="main-wrapper">
    <div class="title-bar">
    	<span class="title">앱버전관리</span>
    </div>
    <div id="wrapper">
    	<div class="col-md-7">
    		<div class="left-content">
    			<div class="table-wrapper-lg">
		    		<table class="table table-bordered table-hover table-row-click">
						<thead>
							<tr>
								<td class="table-header">이름</td>
								<td class="table-header">타입</td>
								<td class="table-header">인증서</td>
								<td class="table-header">버전</td>
								<!-- <td class="table-header">마켓주소</td> -->
							</tr>
						</thead>
						<tbody id="table_appVersion">
						</tbody>
					</table>
				</div>
				<nav class="text-center nav-pagination">
				  <ul class="pagination pagination-sm" id="ulPagination">
				  </ul>
				</nav>	
			</div>
    	</div>
    	<div class="col-md-5">
    		<div class="right-content row">
    			<div class="col-md-12" id="versionDetailEmpty" style="display: none">
    				<div class="form-group col-md-12 text-right">
				    	<div class="btn-group" role="group" aria-label="...">
						  <button type="button" class="btn btn-default btn-sm" id="btnCreateEmpty" title="추가">
						  	<span class="glyphicon glyphicon-plus">&nbsp;추가</span>
						  </button>
						</div>
					</div>
					<div class="form-group col-md-12 pd0">
						<div class="col-md-12 pd0">
							* 앱버전 정보를 선택해주세요.
						</div>
					</div>
				</div>
				<div id="versionDetail">
					<div class="form-group col-md-12 text-right">
				    	<div class="btn-group" role="group" aria-label="...">
						  <button type="button" class="btn btn-default btn-sm" id="btnCreate" title="추가">
						  	<span class="glyphicon glyphicon-plus">&nbsp;추가</span>
						  </button>
						  <button type="button" class="btn btn-default btn-sm" id="btnRemove" title="삭제">
						  	<span class="glyphicon glyphicon-minus">&nbsp;삭제</span>
						  </button>
						  <button type="button" class="btn btn-default btn-sm" id="btnSave" title="저장">
						  	<span class="glyphicon glyphicon-ok">&nbsp;저장</span>
						  </button>
						</div>
					</div>
					<div class="col-md-12">
						<div class="panel panel-default">
							<div class="panel-body">
								<div class="form-group col-md-12 mgt5">
									<div class="col-md-2 content-title text-right">
										<label>이름</label>
									</div>
									<div class="col-md-10">
										<input type="text" class="form-control input-sm" id="txtAppName"/>
									</div>
								</div>
								<div class="form-group col-md-12">
									<div class="col-md-2 content-title text-right">
										<label>타입</label>
									</div>
									<div class="col-md-10">
										<select class="form-control input-sm" id="sltPlatform">
											<option value="">선택</option>
					    					<option value="A">Android</option>
					                   		<option value="I">iOS</option>
					    				</select>
									</div>
								</div>
								<div class="form-group col-md-12">
									<div class="col-md-2 content-title text-right">
										<label>인증서</label>
									</div>
									<div class="col-md-10">
										<select class="form-control input-sm" id="sltCertType">
											<option value="">선택</option>
					    					<option value='InHouse'>InHouse</option>
					                   		<option value='AppStore'>AppStore</option>
					                   		<option value='Developer'>Developer</option>
					    				</select>
									</div>
								</div>
								<div class="form-group col-md-12">
									<div class="col-md-2 content-title text-right">
										<label>버전</label>
									</div>
									<div class="col-md-10">
										<input type="number" class="form-control input-sm" id="txtVersionOrder"/>
									</div>
								</div>
								<div class="form-group col-md-12">
									<div class="col-md-2 content-title text-right pdl0">
										<label>마켓주소</label>
									</div>
									<div class="col-md-10">
										<input type="text" class="form-control input-sm" id="txtMarketUrl"/>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
    	</div>
    </div>
</div>
<script type="text/javascript">
$(document).ready(function () {
	var version = new mplus_admin_version();
	version.init();	
});
</script>

