<%@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/pushForm.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>
								<td class="table-header">설명</td>
							</tr>
						</thead>
						<tbody id="table_pushForm">
						</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 id="pushFormDetailEmpty" 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">
					 * 메시지형식을 선택해주세요.
					</div>
				</div>
				<div id="pushFormDetail">
	    			<input type="text" id="txtSeq" 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="btnCreate" title="추가">
						  	<span class="glyphicon glyphicon-plus">&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-3 content-title text-right pdr0">
										<label>이름</label>
									</div>
									<div class="col-md-9">
										<input type="text" class="form-control input-sm" id="txtFormId"/>
									</div>
								</div>
								<div class="form-group col-md-12">
									<div class="col-md-3 content-title text-right pdr0">
										<label>타입</label>
									</div>
									<div class="col-md-9">
										<select class="form-control input-sm" id="sltFormType">
											<option value="">선택</option>
											<option value="PAGE">PAGE</option>
											<option value="MAP">MAP</option>
											<option value="GUIDE">GUIDE</option>
										</select>
									</div>
								</div>
								<div class="form-group col-md-12" id="formMenu">
									<div class="col-md-3 content-title text-right pdr0">
										<label>메뉴명</label>
									</div>
									<div class="col-md-9">
										<select class="form-control input-sm" id="sltMenu">
											<option value="">선택</option>
										</select>
									</div>
								</div>
								<div class="form-group col-md-12">
									<div class="col-md-3 content-title text-right pdr0">
										<label>사용여부</label>
									</div>
									<div class="col-md-9">
										<label class="radio-inline"><input type="radio" name="useYn" value="Y" checked>Y</label>
										<label class="radio-inline"><input type="radio" name="useYn" value="N">N</label>
									</div>
									<!-- $(':radio[name="enabledYn"]:checked').val(); -->
								</div>
								<div class="form-group col-md-12">
									<div class="col-md-3 content-title text-right pdl0 pdr0">
										<label>이름포함여부</label>
									</div>
									<div class="col-md-9">
										<label class="radio-inline"><input type="radio" name="includeNameYn" value="Y" checked>Y</label>
										<label class="radio-inline"><input type="radio" name="includeNameYn" value="N">N</label>
									</div>
									<!-- $(':radio[name="enabledYn"]:checked').val(); -->
								</div>
								<div class="form-group col-md-12">
									<div class="col-md-3 content-title text-right pdr0">
										<label>설명</label>
									</div>
									<div class="col-md-9">
										<textarea class="form-control input-sm" id="txtFormDesc" rows="5"></textarea>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
    	</div>
    	<div class="col-md-12">
    		* 메시지 형식이 변경되면 Message Notification Server를 재구동해야 합니다.<br/> 
			* 서버를 재구동 하더라도 유실되는 메시지는 없습니다.
    	</div>
    </div>
</div>
<script type="text/javascript">
$(document).ready(function () {
	var pushForm = new mplus_admin_pushForm();
	pushForm.init();	
});
</script>