<?php
$page_title = "Potential Duplicate Accounts";
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="btnSearch" value="Search" class="btn bg-default px50 hi22">
					</div>
				</div>
				<form id="searchForm" action="" method="post">
					<table class="conditions fontS w100p">
						<colgroup>
							<col class="w40p">
							<col class="w60p">
						</colgroup>
						<tr>
							<th>Email Address</th>
							<td><input type="text" id="email" name="email" value="<?php $this -> echoMail(); ?>" class="w100p"></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>Name</th>
							<td><input type="text" id="name" name="name" value="<?php $this -> echoName(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>Country</th>							
							<td>
								<select id="s_country" name="country" class="w100p">
									<option value="">--- All ---</option>
									<?php $this -> echoCountry(); ?>
								</select>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">Date of Account Opening</span>
								<input type="text" id="doao_from" name="doao_from" value="<?php $this->echoDOAOFrom() ?>" class="px110" autocomplete="off"> 
								- <input type="text" id="doao_to" name="doao_to" value="<?php $this->echoDOAOTo() ?>" class="px110" autocomplete="off">
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">Date of Birth</span>
								<input type="text" id="dob_from" name="dob_from" value="<?php $this->echoDOBFrom() ?>" class="px110" autocomplete="off"> 
								- <input type="text" id="dob_to" name="dob_to" value="<?php $this->echoDOBTo() ?>" class="px110" autocomplete="off">
							</td>
						</tr>
						
					</table>
					<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="w3p">Email Address</th>
									<th class="w5p">Account Number</th>
									<th class="w10p">Name</th>
									<!-- <th class="w5p">KYC Status</th> -->
									<th class="w3p">Date of Birth</th>
									<!-- <th class="w5p">Review Status</th> -->
									<th class="w5p">Country</th>
									<th class="w10p">Address</th>
									<th class="w5p" title="Sort"><a href="account_duplicate?sort=doao&direction=<?php $this -> echoToggleSortDirection(); ?>&doao_from=<?php $this -> echoDOAOFrom(); ?>&doao_to=<?php $this -> echoDOAOTo(); ?>&dob_from=<?php $this -> echoDOBFrom(); ?>&dob_to=<?php $this -> echoDOBTo(); ?>" class="tbl-sorter">Date of Account Opening</a></th>
									<!-- <th class="w5p">Date of Account Closing</th> -->
									<th class="w5p" title="Sort"><a href="account_duplicate?sort=threshold&direction=<?php $this -> echoToggleSortDirection(); ?>&doao_from=<?php $this -> echoDOAOFrom(); ?>&doao_to=<?php $this -> echoDOAOTo(); ?>&dob_from=<?php $this -> echoDOBFrom(); ?>&dob_to=<?php $this -> echoDOBTo(); ?>" class="tbl-sorter">Threshold</a></th>
									<th class="w3p">View</th>
								</tr>
								<?php $this -> echoList(); ?>
							</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>
