<?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">
							<p class="mb20">將目前幣種兌換成所需的其他幣種。</p>
							<div class="clearfix shelfD">
								<div class="dt200"><strong>【1.兌換前幣種】</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.兌換後幣種】</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. 金額】</strong></div>
								<div class="clearL"><label><input type="radio" name="amount_type" value="0" <?php $this -> echoAmountType(0); ?>> 兌換前幣種</label>&emsp;
								<label><input type="radio" name="amount_type" value="1" <?php $this -> echoAmountType(1); ?>> 兌換後幣種</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="下一步" 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>
