<%@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/manager.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 max-width-xs">활성화여부</td>
							</tr>
						</thead>
						<tbody id="table_manager">
						</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="managerDetailEmpty" 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="managerDetail">
	    			<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="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 mgt10">
									<div class="col-md-3 content-title text-right">
										<label>아이디</label>
									</div>
									<div class="col-md-9">
										<input type="text" class="form-control input-sm" id="txtUserId"/>
									</div>
								</div>
								<div class="form-group col-md-12">
									<div class="col-md-3 content-title text-right">
										<label>이름</label>
									</div>
									<div class="col-md-9">
										<input type="text" class="form-control input-sm" id="txtUserName"/>
									</div>
								</div>
								<div class="form-group col-md-12">
									<div class="col-md-3 content-title text-right">
										<label>패스워드</label>
									</div>
									<div class="col-md-9">
										<input type="password" class="form-control input-sm mgb5" id="txtPwdValue"/>
										<span style=" color: red">* 입력하신 비밀번호로 변경됩니다.<br/>&nbsp;&nbsp;신중히 입력해주세요.</span>
									</div>
								</div>
								<div class="form-group col-md-12">
									<div class="col-md-3 content-title text-right">
										<label>소속</label>
									</div>
									<div class="col-md-9">
										<input type="text" class="form-control input-sm" id="txtDeptName"/>
									</div>
								</div>
								<div class="form-group col-md-12">
									<div class="col-md-3 content-title text-right pdl0">
										<label>활성화여부</label>
									</div>
									<div class="col-md-9">
										<label class="radio-inline"><input type="radio" name="enabledYn" value="Y" checked>Y</label>
										<label class="radio-inline"><input type="radio" name="enabledYn" value="N">N</label>
									</div>
									<!-- $(':radio[name="enabledYn"]:checked').val(); -->
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
    	</div>
    </div>
</div>
<script type="text/javascript">
$(document).ready(function () {
	var manager = new mplus_admin_manager();
	manager.init();	
});
</script>