<?php
$page_title = "User Details";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/account_list"><img src="../img/logo.png" alt="iWallet"></a></h1>
			</aside>
			<!-- /サイドバー -->
			<!-- メインカラム -->
			<div id="colMain">
				<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
					<article>
						<div class="article-heading">
							<h2><?php echo $page_title; ?></h2>
						</div>
						<?php $this -> echoMessage(); ?>
						<form id="acForm" action="" method="post">
							<table class="table col bdr default odd w60p fontXS m_auto mb20">
								<colgroup>
									<col class="w40p">
									<col class="w60p">
								</colgroup>
								<tr>
									<th>Department</th>
									<td><?php echo $this -> getDepartmentDropdown(); ?></td>
								</tr>
								<tr>
									<th>Name</th>
									<td><input type="text" value="" name="last_name" placeholder="Last Name" /> &nbsp; <input type="text" value="" name="first_name" placeholder="First Name" /></td>
								</tr>
								<tr>
									<th>Username</th>
									<td><input type="text" value=""  name="email" /></td>
								</tr>
							</table>
							<p class="ralign mb20 w60p m_auto">
								<input type="button" id="btnCheckAll" value="Check All" class="btn bg-grad hi25 checkall">
								<input type="button" id="btnUncheckAll" value="Uncheck All" class="btn bg-grad hi25 uncheckall" style="display: none;">
							</p>
							<table class="table col bdr default odd w60p fontXS m_auto mb20" id="functionDetails">
							</table>
							<input type="hidden" value="" id="type" name="type" />
							<input type="hidden" value="en" name="language" id="language">
							
							<!-- Language Transition Data (Anton) 04/23/2016 -->
							<input class="lang-trans-data" type="hidden" id="lang_data_action" value="/admin_user"/>
							<input class="lang-trans-data" type="hidden" id="lang_data_form" value="#acForm"/>
							<input class="lang-trans-data" type="hidden" id="lang_data_type" value="admin_user_input"/>
							<!-- /Language Transition Data -->
						</form>
						<p class="calign mb20">
							<a href="javascript:actionInputBack();" class="btn bg-default">&laquo; Back</a>&nbsp;&nbsp;
							<input type="button" id="btnInputSave" value="Save" class="btn bg-grad px80 hi25">
						</p>

						<div class="article-bottom">
						</div>
					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
	<script src="../js/admin_user.js"></script>
	<script type="text/javascript">
		$(window).load(function(){
			$.ajax({
	            url: "../logic/admin_user/config.php",
	            dataType: "text",
	            type: "POST",
	            data: {
		            action : "getDepartmentFunctionList", 
		            departmentId: $("#department_id").val(),
					language : "en"
		        },
	            success: function (data){
					$("#functionDetails").replaceWith(data);
					$("#functionDetails").show();
	            }
	        });
		});
	</script>
    <script src="../js/bootstrap.min.js"></script>
</body>
</html>
