<?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>
						<div class="mb10"><?php $this -> echoMessage(); ?></div>
						<form id="acForm" action="" method="post">

							<table class="table col bdr default odd withdrawT fontM mb20 ma90sp">
								<tr>
									<th>历史交易</th>
									<td class="clr">
										<select id="withdraw_history" name="withdraw_history" class="w100p">
											<option>从历史记录中选择</option>
											<?php $this -> dispWithdarawHistory(); ?>
										</select>
									</td>
								</tr>
								<tr>
									<th>支出账户</th>
									<td class="clr selectC">
										<?php $this -> dispBalances(); ?>
									</td>
								</tr>
								<tr>
									<th>金额</th>
									<td>
										<select name="currency" class="px70">
											<?php $this -> dispCurrency(); ?>
										</select>
										<input type="text" id="amount" name="amount" value="<?php $this -> echoAmount(); ?>" class="px180 ralign">
									</td>
								</tr>
								<tr>
									<th>收款方账号/IBAN</th>
									<td><input type="text" id="account_number" name="account_number" value="<?php $this -> echoAccountNumber(); ?>" class="w50p"></td>
								</tr>
								<tr>
									<th>收款方姓名</th>
									<td><input type="text" id="account_name" name="account_name" value="<?php $this -> echoAccountName(); ?>" class="w80p"></td>
								</tr>
								<tr>
									<th>收款方所在國</th>
									<td>
										<select id="receipt_country" name="receipt_country" class="w80p">
											<?php $this -> echoReceiptCountry(); ?>
										</select>
									</td>
								</tr>
								<tr>
									<th>收款方地址</th>
									<td><input type="text" id="receipt_address_1" name="receipt_address_1" value="<?php $this -> echoReceiptAddress1(); ?>" class="w100p"></td>
								</tr>
								<tr>
									<th>收款銀行名稱</th>
									<td><input type="text" id="receipt_bank_name" name="receipt_bank_name" value="<?php $this -> echoReceiptBankName(); ?>" class="w50p"></td>
								</tr>
								<tr>
									<th>收款行SWIFT</th>
									<td><input type="text" id="receipt_bank_swift" name="receipt_bank_swift" value="<?php $this -> echoReceiptBankSwift(); ?>" class="px180"></td>
								</tr>
								<tr>
									<th>收款銀行所在國</th>
									<td>
										<select id="receipt_bank_country" name="receipt_bank_country" class="w80p">
											<?php $this -> echoReceiptBankCountry(); ?>
										</select>
									</td>
								</tr>
								<tr id="receiptBranchCode" style="display:none;">
									<th>收款行支行代码</th>
									<td><input type="text" id="receipt_branch_code" name="receipt_branch_code" value="<?php $this -> echoReceiptBranchCode(); ?>" class="px100"></td>
								</tr>
								<tr id="receiptBranch" style="display:none;">
									<th>支行名称</th>
									<td><input type="text" id="receipt_branch_name" name="receipt_branch_name" value="<?php $this -> echoReceiptBranchName(); ?>" class="w50p"></td>
								</tr>
								<tr>
									<th>收款行地址</th>
									<td><input type="text" id="receipt_bank_address_1" name="receipt_bank_address_1" value="<?php $this -> echoReceiptBankAddress1(); ?>" class="w100p"></td>
								</tr>
								<tr>
									<th>备注</th>
									<td><input type="text" id="receipt_message" name="receipt_message" value="<?php $this -> echoReceiptMessage(); ?>" class="w100p" /></td>
								</tr>
								<tr>
									<th>如使用中转银行，请填写中转行信息。</th>
									<td colspan="2"><?php $this -> echoIntermediaryFlg(); ?></td>
								</tr>
							</table>

							<div id="intermediaries">
								<table class="table col bdr default odd withdrawT fontM mb20 ma90sp">
									<tr>
										<th>中转行名称</th>
										<td><input type="text" id="intermediary_bank_name" name="intermediary_bank_name" value="<?php $this -> echoIntermediaryBankName(); ?>" class="w50p" /></td>
									</tr>
									<tr>
										<th>中转行SWIFT</th>
										<td><input type="text" id="intermediary_bank_swift" name="intermediary_bank_swift" value="<?php $this -> echoIntermediaryBankSwift(); ?>" class="px180" /></td>
									</tr>
									<tr>
										<th>中转行所在国</th>
										<td>
											<select name="intermediary_bank_country">
												<?php $this -> dispIntermediaryBankCountry(); ?>
											</select>
									</tr>
									<tr>
										<th>中转行地址</th>
										<td><input type="text" id="intermediary_bank_address_1" name="intermediary_bank_address_1" value="<?php $this -> echoIntermediaryBankAddress1(); ?>" class="w100p" /></td>
									</tr>
									<tr>
										<th>中转行备注</th>
										<td><input type="text" id="intermediary_bank_message" name="intermediary_bank_message" value="<?php $this -> echoIntermediaryBankMessage(); ?>" class="w100p" /></td>
									</tr>
								</table>
							</div>

							<input type="hidden" value="" id="type" name="type" />
						</form>
						<p class="ol_list ml20" style="color: red;font-weight: bolder;">※我们无法处理RAKUTEN银行提款的请求。请使用另一家银行，否则，您的请求将被取消。
						</p>
						<p class=""><input type="button" id="btnConfirm" value="下一步" class="btn bg-grad px180 calign"></p>
					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
	<script src="../js/withdraw.js"></script>
</body>
</html>
