<?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>
						<p class="mb10 pleft40">请确认以下信息。</p>
						<form id="acForm" action="" method="post" class="pleft40">
							<table class="table col bdr default odd w50p fontM mb25 mt25 ma90sp">
								<colgroup>
									<col class="w40p">
									<col class="w60p">
								</colgroup>
								<tr>
									<th>原始货币</th>
									<td><?php $this -> echoFromCurrency(); ?></td>
								</tr>
								<tr>
									<th>兑换前余额</th>
									<td><?php $this -> echoFromCurrency(); ?> <?php $this -> echoFromBalance(); ?></td>
								</tr>
								<tr>
									<th>兑换金额</th>
									<td><?php $this -> echoFromCurrency(); ?> <?php $this -> dispFromAmount(); ?></td>
								</tr>
								<tr>
									<th>兑换后余额</th>
									<td><?php $this -> echoFromCurrency(); ?> <?php $this -> echoExFromBalance(); ?></td>
								</tr>
							</table>
							<p class="mb10 red bolded fontM ma90sp">兑换汇率：<?php $this -> echoExFromCurrency(); ?> 1 = <?php $this -> echoExToCurrency(); ?> <?php $this -> echoRate(); ?></p>
							<table class="table col bdr default odd w50p fontM mb25 mt25 ma90sp">
								<colgroup>
									<col class="w40p">
									<col class="w60p">
								</colgroup>
								<tr>
									<th>目标货币</th>
									<td><?php $this -> echoToCurrency(); ?></td>
								</tr>
								<tr>
									<th>兑换前余额</th>
									<td><?php $this -> echoToCurrency(); ?> <?php $this -> echoToBalance(); ?></td>
								</tr>
								<tr>
									<th>兑换金额</th>
									<td><?php $this -> echoToCurrency(); ?> <?php $this -> dispToAmount(); ?></td>
								</tr>
								<tr>
									<th>兑换后余额</th>
									<td><?php $this -> echoToCurrency(); ?> <?php $this -> echoExToBalance(); ?></td>
								</tr>
							</table>

							<input type="hidden" value="" id="type" name="type" />
							<input type="hidden" value="<?php $this -> echoFromCurrency(); ?>" id="" name="from_currency" />
							<input type="hidden" value="<?php $this -> echoToCurrency(); ?>" id="" name="to_currency" />
							<input type="hidden" value="<?php $this -> echoFromAmount(); ?>" id="" name="from_amount" />
							<input type="hidden" value="<?php $this -> echoToAmount(); ?>" id="" name="to_amount" />
							<input type="hidden" value="<?php $this -> echoCAmountType(); ?>" id="" name="amount_type" />
							<input type="hidden" value="<?php $this -> echoExAmount(); ?>" id="" name="ex_amount" />
							<input type="hidden" value="<?php $this -> echoAmount(); ?>" id="" name="amount" />
							<input type="hidden" value="<?php $this -> echoRate(); ?>" id="" name="rate" />
							<input type="hidden" value="<?php $this -> echoOriginalAmount(); ?>" id="" name="original_amount" />
						</form>
						<p class="mb40 pleft40 mt40">
							<a class="btn bg-default" id="btnBackInput" >&laquo; 返回</a>&emsp;
							<input type="button" id="btnComplete" value="确认并提交" class="btn bg-grad px150">
						</p>
					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
	<script src="../js/exchange.js"></script>
</body>
</html>
