<?php
$page_title = "取引履歴";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/ja/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="filterC">
    							<span>通貨</span> <select name="currency" class="px90">
    								<?php $this -> echoCurrencyList();?>
    							</select>&emsp;</div>
    						<div class="filterPs">
    							<span>期間</span> <input type="text" id="from" name="from" value="<?php $this -> echoFrom();?>" class="px130 datepicker">
    						</div>
    						<div class="filterP"><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="表示" class="btn bg-filter mb10">
                                <?php
                                    if($this -> getAccountType() == "1"){
                                ?>
                                <input type="button" id="btnExport" value="エクスポート" class="btn bg-filter mb10">
                                <?php
                                    }
                                ?>
                                <br/>
                                <span class="hidediv" id="exp_progress">ファイルをエクスポート中</span>
    						</div>
    						<table class="table col bdr default odd calign w99p fontXS" id="table-breakpoint">
    							<tr>
    								<th class="w5p"></th>
    								<th class="w7p">取引種別</th>
    								<th class="w7p">口座番号</th>
    								<th class="w10p break">口座名義</th>
    								<th class="w7p">入金額</th>
    								<th class="w7p">出金額</th>
    								<th class="w7p">手数料</th>
    								<th class="w7p">申請日</th>
    								<th class="w7p">処理日</th>
    								<th class="w7p">取引番号</th>
    								<th class="w15p break">メッセージ</th>
    								<th class="w5p break">状態</th>
    								<th class="w7p">残高</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>検索結果：</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="前ページ" class="btn bg-filter mb10">
    							<input type="button" id="btnNextPage" value="次ページ" 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="表示" class="btn bg-filter mb10">
    						</div>
						</form>
						
						<div class="hidediv">
							<?php $this -> echoJavascriptLabels() ?>
						</div>
					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
	<script src="../js/history.js"></script>
</body>
</html>
