<?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="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>
