<?php
$page_title = "Penukaran Mata Uang";
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">
							<p class="mb20">Tukarkan saldo mata uang Anda saat ini ke mata uang lain yang Anda inginkan</p>
							<div class="clearfix shelfD">
								<div class="dt200"><strong>【1. Mata Uang Debit】</strong></div>
								<select name="from_currency" id="from_currency" class="px80">
									<?php $this -> dispFromCurrency(); ?>
								</select>
								<strong id="from_balance"></strong>
							</div>
							<div class="clearfix shelfD">
								<div class="dt200"><strong>【2. Mata Uang Penerima】</strong></div>
								<select name="to_currency" id="to_currency" class="px80">
									<?php $this -> dispToCurrency(); ?>
								</select>
								<strong id="to_balance"></strong>
							</div>
							<div class=" shelfD clearfix">
								<div class="dt200"><strong>【3. Jumlah Transaksi】</strong></div>
								<div class="clearL"><label><input type="radio" name="amount_type" value="0" <?php $this -> echoAmountType(0); ?>> Mata Uang Debit</label>&emsp;
								<label><input type="radio" name="amount_type" value="1" <?php $this -> echoAmountType(1); ?>> Mata Uang Penerima</label><br>
								<input type="text" name="amount" value="<?php $this -> echoAmount(); ?>" class="px180 ralign mt10">
								</div>
							</div>
							<div class="dt200 noborder"></div>
							<p class=""><input type="button" id="btnConfirm" value="Konfirmasi" class="btn bg-parent px220"></p>

							<input type="hidden" value="" id="type" name="type" />
							<input type="hidden" value="<?php $this -> echoUserAccount(); ?>" id="user_account" />
						</form>
					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
	<script src="../js/exchange.js"></script>
</body>
</html>
