<?php
$page_title = "ユーザー詳細";
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>部門</th>
									<td><?php echo $this -> getDepartmentDropdown(); ?></td>
								</tr>
								<tr>
									<th>名前</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>ユーザー名</th>
									<td><input type="text" value=""  name="email" /></td>
								</tr>
							</table>
							<p class="ralign mb20 w60p m_auto">
								<input type="button" id="btnCheckAll" value="全てチェックする" class="btn bg-grad hi25 checkall">
								<input type="button" id="btnUncheckAll" value="全てのチェックを外す" 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" />
							
							<!-- Language Transition Data (Anton) 04/23/2016 -->
							<input class="lang-trans-data" type="hidden" id="lang_data_action" value="/en/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; 戻る</a>&nbsp;&nbsp;
							<input type="button" id="btnInputSave" value="保存する" 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()},
	            success: function (data){
					$("#functionDetails").replaceWith(data);
					$("#functionDetails").show();
	            }
	        });
		});
	</script>
    <script src="js/bootstrap.min.js"></script>
</body>
</html>
