<?php
$page_title = "交易记录";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/sc/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>