<?php
$page_title = "Pengajuan Penarikan";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/id/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>Riwayat Transaksi</th>
									<td class="clr">
										<select id="withdraw_history" name="withdraw_history" class="w100p">
											<option>Pilih dari Riwayat</option>
											<?php $this -> dispWithdarawHistory(); ?>
										</select>
									</td>
								</tr>
								<tr>
									<th>Mata Uang Debit</th>
									<td class="clr selectC">
										<?php $this -> dispBalances(); ?>
									</td>
								</tr>
								<tr>
									<th>Jumlah</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>Nomor Akun atau IBAN</th>
									<td><input type="text" id="account_number" name="account_number" value="<?php $this -> echoAccountNumber(); ?>" class="w50p"></td>
								</tr>
								<tr>
									<th>Nama Penerima</th>
									<td><input type="text" id="account_name" name="account_name" value="<?php $this -> echoAccountName(); ?>" class="w80p"></td>
								</tr>
								<tr>
									<th>Negara Penerima</th>
									<td>
										<select id="receipt_country" name="receipt_country" class="w80p">
											<?php $this -> echoReceiptCountry(); ?>
										</select>
									</td>
								</tr>
								<tr>
									<th>Alamat Penerima</th>
									<td><input type="text" id="receipt_address_1" name="receipt_address_1" value="<?php $this -> echoReceiptAddress1(); ?>" class="w100p"></td>
								</tr>
								<tr>
									<th>Nama Bank</th>
									<td><input type="text" id="receipt_bank_name" name="receipt_bank_name" value="<?php $this -> echoReceiptBankName(); ?>" class="w50p"></td>
								</tr>
								<tr>
									<th>Kode Swift</th>
									<td><input type="text" id="receipt_bank_swift" name="receipt_bank_swift" value="<?php $this -> echoReceiptBankSwift(); ?>" class="px180"></td>
								</tr>
								<tr>
									<th>Negara Bank</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>Kode Cabang</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>Nama Cabang</th>
									<td><input type="text" id="receipt_branch_name" name="receipt_branch_name" value="<?php $this -> echoReceiptBranchName(); ?>" class="w50p"></td>
								</tr>
								<tr>
									<th>Alamat Bank</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>Pesan</th>
									<td><input type="text" id="receipt_message" name="receipt_message" value="<?php $this -> echoReceiptMessage(); ?>" class="w100p" /></td>
								</tr>
								<tr>
									<th>Silakan isi informasi bank perantara jika diperlukan.</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>Nama Bank Perantara</th>
										<td><input type="text" id="intermediary_bank_name" name="intermediary_bank_name" value="<?php $this -> echoIntermediaryBankName(); ?>" class="w50p" /></td>
									</tr>
									<tr>
										<th>Kode Swift Bank Perantara</th>
										<td><input type="text" id="intermediary_bank_swift" name="intermediary_bank_swift" value="<?php $this -> echoIntermediaryBankSwift(); ?>" class="px180" /></td>
									</tr>
									<tr>
										<th>Negara Bank Perantara</th>
										<td>
											<select name="intermediary_bank_country">
												<?php $this -> dispIntermediaryBankCountry(); ?>
											</select>
									</tr>
									<tr>
										<th>Alamat Bank Perantara</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>Pesan Bank Perantara</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;">
						※Kami tidak dapat memproses permintaan penarikan ke Rakuten Bank.
						<br>Silakan gunakan bank lain, jika tidak, permintaan Anda akan dibatalkan.</p>
						<p class=""><input type="button" id="btnConfirm" value="Konfirmasi" 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>
