<?php
$page_title = "Currency Exchange";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/en/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">Exchange your current currency balance to other currencies you want</p>
							<div class="clearfix shelfD">
								<div class="dt200"><strong>【1. Debit Currency】</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. Beneficiary Currency】</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. Transaction Amount】</strong></div>
								<div class="clearL"><label><input type="radio" name="amount_type" value="0" <?php $this -> echoAmountType(0); ?>> Debit Currency</label>&emsp;
								<label><input type="radio" name="amount_type" value="1" <?php $this -> echoAmountType(1); ?>> Beneficiary Currency</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="Confirm" 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>
