<?php
$page_title = "Transaction History";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
			</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>
						<div class="pleft40 mb10"><?php $this -> echoMessage(); ?></div>
						<form id="acForm" action="" method="post" class="pleft40">
    						<div class="filterCe">
    							<span>Currency</span> <select name="currency" class="px80">
    								<?php $this -> echoCurrencyList();?>
    							</select>&emsp;</div>
    						<div class="filterPse">
    							<span>Period</span> <input type="text" id="from" name="from" value="<?php $this -> echoFrom();?>" class="px130 datepicker">
    						</div>
    						<div class="filterPe"><span> - </span><input type="text" id="to" name="to" value="<?php $this -> echoTo();?>" class="px130 datepicker"></div>
    						<div class="filterB">
                                <input type="button" id="btnSearch" value="Search" class="btn bg-filter mb10">
                                <?php
                                    if($this -> getAccountType() == "1"){
                                ?>
                                        <input type="button" id="btnExport" value="Export" class="btn bg-filter mb10">
                                <?php
                                    }
                                ?>
    						</div>
    						<table class="table col bdr default odd calign w99p fontXS" id="table-breakpoint">
    							<tr>
    								<th class="w5p">ID</th>
    								<th class="w7p break">Transaction Type</th>
    								<th class="w7p">Account Number</th>
    								<th class="w10p break">Account Name</th>
    								<th class="w7p">Money In</th>
    								<th class="w7p">Money Out</th>
    								<th class="w7p">Fee</th>
    								<th class="w7p">Submission Date</th>
    								<th class="w7p">Operation Date</th>
    								<th class="w7p">Ref.No</th>
    								<th class="w15p break">Message</th>
    								<th class="w5p break">Status</th>
    								<th class="w7p">Balance</th>
    							</tr>
    							<?php $this -> echoList();?>
    						</table>
    						<input type="hidden" value="" id="type" name="type" />
    						<input type="hidden" value="<?php $this -> echoTotalPage()?>" id="max_page"/>
    						<div class="ui-pagination">
    							<span><strong>Search Results:</strong> <?php $this -> echoTotal(); ?>&nbsp;&nbsp;&nbsp;</span>
    							<span class="ui-current-page"><?php $this -> echoPage()?>/<?php $this -> echoTotalPage()?></span>
    							<input type="button" id="btnPrevPage" value="Previous" class="btn bg-filter mb10">
    							<input type="button" id="btnNextPage" value="Next" class="btn bg-filter mb10">
    							&nbsp;&nbsp;&nbsp;&nbsp
    							<input type="text" id="cur_page" name="page" value="<?php $this -> echoPage() ?>" class="px50">
    							<input type="button" id="dispPage" value="Display" class="btn bg-filter mb10">
    						</div>
						</form>
					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
	<script src="../js/history.js"></script>
</body>
</html>