<?php
$page_title = "User List";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href=""><img src="../img/logo.png" alt="iWallet"></a></h1>
				<div class="aside-heading">
					<div class="btns">
						<input type="button" id="btnSearchAll" name="btnSearchAll" value="All" class="btn bg-default px50 hi22">&nbsp;
						<input type="button" id="btnSearchToday" name="btnSearchToday" value="Today" class="btn bg-default px50 hi22">&nbsp;
						<input type="button" id="btnSearch" value="Search" class="btn bg-default px50 hi22">
						<input type="button" id="btnBalacne" value="All User Balance" class="btn bg-default px110 hi22">
						<form id="downloadForm" action="https://secure.<?php echo SITE_DOMAIN; ?>/api/GetBalanceAllUser" method="post"></form>
					</div>
				</div>
				<form id="searchForm" action="" method="post">
					<table class="conditions fontS w100p">
						<colgroup>
							<col class="w40p">
							<col class="w60p">
						</colgroup>
						<tr>
							<th>Affiliated WL</th>
							<td>
								<select id="wl_id" name="wl_id" class="w100p">
									<option value="">--- All ---</option>
									<?php $this -> dispWLId(); ?>
								</select>
							</td>
						</tr>
						<tr>
							<th>Email Address</th>
							<td><input type="text" id="email" name="email" value="<?php $this -> echoMail(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>Name</th>
							<td><input type="text" id="name" name="name" value="<?php $this -> echoName(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>Account Type</th>
							<td>
								<select id="account_type" name="account_type" class="w100p">
									<option value="">--- All ---</option>
									<?php $this -> echoAccountType(); ?>
								</select>
							</td>
						</tr>
						<tr>
							<th>Account Category</th>
							<td>
								<select id="test_account_flg" name="test_account_flg" class="w100p">
									<option value="">--- All ---</option>
									<?php $this -> echoTestAccountFlg(); ?>
							</td>
						</tr>
						<tr>
							<th>Account Number</th>
							<td><input type="text" id="user_account" name="user_account" value="<?php $this -> echoAccountNumber(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>Country</th>
							<td>
								<select id="country" name="country" class="w100p">
									<option value="">--- All ---</option>
									<?php $this -> echoCountry(); ?>
								</select>
							</td>
						</tr>
						<tr>
							<th>State</th>
							<td><input type="text" id="state" name="state" value="<?php $this -> echoState(); ?>" class="w100p"></td>
						</tr>
<!-- 						<tr> -->
<!-- 							<th>カード</th> -->
<!-- 							<td> -->
<!-- 								<select name="card" class="w100p"> -->
<!-- 									<option value="">--- すべて ---</option> -->
<!-- 									<option value="">Option 01</option> -->
<!-- 									<option value="">Option 02</option> -->
<!-- 								</select> -->
<!-- 							</td> -->
<!-- 						</tr> -->
						<tr>
							<th>Agent Code</th>
							<td><input type="text" id="agent_code" name="agent_code" value="<?php $this -> echoAgentCode(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>CRM ID</th>
							<td><input type="text" id="crm_id" name="crm_id" value="<?php $this -> echoCrmId(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>Review Status</th>
							<td>
								<select id="kyc_flg" name="kyc_flg" class="w100p">
									<option value="all">--- All ---</option>
									<?php $this -> echoKYCFlg(); ?>
								</select>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">Status</span>
								<?php $this -> dispStatuses(); ?>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">Balance</span>
								<select id="currency" name="currency" class="px60">
									<option value="">All</option>
									<?php $this -> dispCurrency(); ?>
								</select>
								<input type="text" id="s_min_amount" name="s_min_amount" value="<?php $this -> echoSMinAmount(); ?>" class="px80"> - <input type="text" id="s_max_amount" name="s_max_amount" value="<?php $this -> echoSMaxAmount(); ?>" class="px80">
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">Date of Account Opening</span>
								<?php $this -> dispOpenFlg(); ?>
								<input type="text" id="from" name="from" value="<?php $this -> echoSFrom(); ?>" class="px110"> - <input type="text" id="to" name="to" value="<?php $this -> echoSTo(); ?>" class="px110">
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">Date of Last Login</span>
								<?php $this -> dispLoginFlg(); ?>
								<input type="text" id="login_from" name="login_from" value="<?php $this -> echoSLoginFrom(); ?>" class="px110"> - <input type="text" id="login_to" name="login_to" value="<?php $this -> echoSLoginTo(); ?>" class="px110">
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">Date of Account Closing</span>
								<?php $this -> dispCloseFlg(); ?>
								<input type="text" id="close_from" name="close_from" value="<?php $this -> echoSCloseFrom(); ?>" class="px110"> - <input type="text" id="close_to" name="close_to" value="<?php $this -> echoSCloseTo(); ?>" class="px110">
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">Date of Account Suspension</span>
								<?php $this -> dispSuspensionFlg(); ?>
								<input type="text" id="suspension_from" name="suspension_from" value="<?php $this -> echoSSuspensionFrom(); ?>" class="px110"> - <input type="text" id="suspension_to" name="suspension_to" value="<?php $this -> echoSSuspensionTo(); ?>" class="px110">
							</td>
						</tr>
					</table>
					<p class="calign"><input type="button" id="btnImport" value="IMPORT" class="btn bg-grad hi25 px100"></p>
					<input type="hidden" value="search" id="type_search" name="type" />
				</form>
			</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>
							<?php $this -> dispPager(); ?>
						</div>
						<?php $this -> echoMessage(); ?>
						<form id="acForm" action="" method="post">
							<table class="table col bdr default odd w100p fontXS calign">
								<tr>
									<th class="w7p">Affiliated WL</th>
									<th class="w10p">Email Address</th>
									<th class="w10p">Name</th>
									<th class="w3p">Account Type</th>
									<th class="w2p">Account Category</th>
									<th class="w5p">Account Number</th>
									<th class="w5p">Country</th>
									<th class="w5p">State</th>
									<th class="w3p">Card</th>
									<th class="w3p">Review Status</th>
									<th class="w3p">KYC</th>
									<th class="w5p">CRM ID</th>
									<th class="w5p">Agent Code</th>
									<th class="w7p">Date of Account Opening</th>
									<th class="w7p">Date of Last Login</th>
									<th class="w7p">Date of Account Closing</th>
									<th class="w7p">Date of Account Suspension</th>
									<th class="w3p">Details</th>
								</tr>
								<?php $this -> dispAccounts(); ?>
							</table>
							<input type="hidden" value="account_edit" id="action" name="action" />
							<input type="hidden" value="" id="type" name="type" />
							<input type="hidden" id="detail_account" name="detail_account" />
						</form>
						<div class="article-bottom">
							<?php $this -> dispPager(); ?>
						</div>
					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
	<script src="../js/account_list.js"></script>
</body>
</html>
