<?php
$page_title = "Internal Transfer Processing";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href=""><img src="../img/logo.png" alt="iWallet"></a></h1>
				<div class="aside-heading">
					&nbsp;
				</div>
				&nbsp;
			</aside>
			<!-- /サイドバー -->
			<!-- メインカラム -->
			<div id="colMain">
				<div class="mainIn">
					<?php include_once('template/base_nav.php'); ?>
					<form id="acForm" action="" method="post">
					<article>
						<div class="article-heading">
							<h2><?php echo $page_title; ?></h2>
						</div>
						<?php $this -> echoMessage(); ?>
						<table class="table col bdr default odd w60p fontXS m_auto mb20">
							<colgroup>
								<col class="w40p">
								<col class="w60p">
							</colgroup>
							<tr>
								<th>Sender's Name</th>
								<td><?php $this -> echoFromName(); ?></td>
							</tr>
							<tr>
								<th>Sender's Account Number</th>
								<td><?php $this -> echoFrom(); ?></td>
							</tr>
							<tr>
								<th>Withdrawal Currency</th>
								<td class="clr">
									<?php $this -> dispBalances(); ?>
								</td>
							</tr>
							<tr>
								<th>Select Recipient Currency</th>
								<td>
									<select id="to_currency" name="to_currency" class="px60">
										<?php $this -> echoCurrencyList(); ?>
									</select>
								</td>
							</tr>
							<tr>
								<th>Amount</th>
								<td>
									<label><input type="radio" name="transfer_type" id="transfer_type" value="0" <?php $this -> echoDispTransferType(0); ?>> Withdrawal Currency Value</label>&emsp;
									<label><input type="radio" name="transfer_type" id="transfer_type" value="1" <?php $this -> echoDispTransferType(1); ?>> Receiving Currency Value</label><br />
									<input type="text" name="amount" value="<?php $this -> echoAmount(); ?>" class="px120 ralign">
								</td>
							</tr>
							<tr>
								<th>Exchange Rate</th>
								<td id="rate"></td>
							</tr>
							<tr>
								<th>Recipient's Name</th>
								<td><?php $this -> echoToName(); ?></td>
							</tr>
							<tr>
								<th>Recipient's Account Number</th>
								<td><?php $this -> echoTo(); ?></td>
							</tr>
							<tr>
								<th>Message</th>
								<td>
									<textarea rows="5" class="w100p" name="message"><?php $this -> echoIMessage(); ?></textarea>
								</td>
							</tr>
						</table>
						<p class="calign">
							<a id="btnCreate" class="btn bg-default">&laquo; Back</a>&emsp;
							<input type="button" id="btnConfirm" value="Confirm" class="btn bg-grad px100 hi25">
						</p>
						<div class="article-bottom">
						</div>
					</article>
					<input type="hidden" value="" id="type" name="type" />
					<input type="hidden" value="<?php $this -> echoTo(); ?>" id="to" name="to" />
					<input type="hidden" value="<?php $this -> echoFrom(); ?>" id="from" name="from" />
					<input type="hidden" value="<?php $this -> echoFromName(); ?>" id="transfer_from_name" name="transfer_from_name" />
					<input type="hidden" value="<?php $this -> echoToName(); ?>" id="transfer_to_name" name="transfer_to_name" />
					<input type="hidden" value="<?php $this -> echoDebitCurrency(); ?>" id="debit_currency" name="debit_currency" />
					<input type="hidden" value="<?php $this -> echoDebitAmount(); ?>" id="debit_amount" name="debit_amount" />
					<input type="hidden" value="<?php $this -> echoFromFee(); ?>" id="from_fee" name="from_fee" />
					<input type="hidden" value="<?php $this -> echoTransferCurrency(); ?>" id="transfer_currency" name="transfer_currency" />
					<input type="hidden" value="<?php $this -> echoTransferAmount(); ?>" id="transfer_amount" name="transfer_amount" />
					<input type="hidden" value="<?php $this -> echoToFee(); ?>" id="to_fee" name="to_fee" />
					<input type="hidden" value="<?php $this -> echoRate(); ?>" id="rate" name="rate" />

					<!-- Language Transition Data (Anton) 04/23/2016 -->
					<input class="lang-trans-data" type="hidden" id="lang_data_action" value="/transfer"/>
					<input class="lang-trans-data" type="hidden" id="lang_data_type" value="input"/>
					<input class="lang-trans-data" type="hidden" id="lang_data_form" value="#acForm"/>
					<!-- /Language Transition Data -->
					</form>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
		<?php include_once('template/base_foot.php'); ?>
	</div>
	<script src="../js/transfer.js"></script>
</body>
</html>
