<?php
$page_title = "Riwayat Transaksi";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/id/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>Mata Uang</span> <select name="currency" class="px80">
    								<?php $this -> echoCurrencyList();?>
    							</select>&emsp;</div>
    						<div class="filterPse">
    							<span>Periode</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="Cari" class="btn bg-filter">
    							<?php
                                    if($this -> getAccountType() == "1"){
                                ?>
                                        <input type="button" id="btnExport" value="Ekspor" class="btn bg-filter mb10">
                                <?php
                                    }
                                ?>
                                <br/>
                                <span class="hidediv" id="exp_progress">Mengekspor File...</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">Jenis Transaksi</th>
    								<th class="w7p">Nomor Akun</th>
    								<th class="w10p break">Nama Akun</th>
    								<th class="w7p">Uang Masuk</th>
    								<th class="w7p">Uang Keluar</th>
    								<th class="w7p">Biaya</th>
    								<th class="w7p">Tanggal Pengajuan</th>
    								<th class="w7p">Tanggal Pengerjaan</th>
    								<th class="w7p">No. Referensi</th>
    								<th class="w15p break">Pesan</th>
    								<th class="w5p break">Status</th>
    								<th class="w7p">Saldo</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>Hasil Pencarian:</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="Sebelumnya" class="btn bg-filter mb10">
    							<input type="button" id="btnNextPage" value="Lanjut" 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="Tampilan" 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>
