<?php
$page_title = "交易記錄";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/tc/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>幣種</span> <select name="currency" class="px80">
    								<?php $this -> echoCurrencyList();?>
    							</select>&emsp;</div>
    						<div class="filterPse">
    							<span>期間</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="查詢" 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">ID</th>
    								<th class="w7p break">交易類型</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>
