<?php
$page_title = "比特幣帳戶儲值";
include_once('template/base_head.php');
?>

			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/tc/menu"><img src="../img/logo.png" alt="<?php echo SITE_NAME; ?>"></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 pleft40"><?php $this -> echoMessage(); ?></div>
						<div class="mb10 pleft40">
							<div class="error_text">
									<ul class="hidediv"  id="inputerror">
											<li><i class="fa fa-times-circle"></i></li>
											<li>金額無效，請輸入一個大於或等於0.05比特幣的金額。</li>
									</ul>
							</div>
						</div>
						<div class="pleft40 mb20 respM">
						<p>此存款選項將允許您從您的比特幣錢包賬戶為自己的iwallet賬戶存入資金。</br> 比特幣將會被轉換成相對應的歐元幣值，並以歐元反映在iWallet帳戶上</p></br>
						<div>
								<input type="hidden" value="2.50%" id="bitcoin_fee" name="bitcoin_fee" />
								<input type="hidden" value="EUR" id="rate_currency" name="rate_currency" />
								<div class="w100p mt15 mb20">
										<span class="span-w600">受益人貨幣: EUR</span>
								</div>

						</div>
								<span class="span-w600">比特幣匯率:</span>
						<div class>
									 <div class="lfloat px300">
										 	<input type="text" value="" placeholder="0.05" class="px130" id="ratenum" maxlength="15"><span class="ml10">比特幣兌換到歐元</span>
									</div>
									<div class="lfloat">
											<input type="button" id="rateSearch" value="查詢" class="btn bg-filter rate_check">
									</div>
										<div id="ratetable" style="display:none" class="dbtable animated pt50" >
											<table class="table col bdr default odd fontM px320">
																	<tr><td class="td_gray">比特幣匯率</td><td id="bit_rate" class="lalign"></td></tr>
																	<tr><td class="td_gray">兌換的金額</td><td id="bit_exchangeto" class="lalign"></td></tr>
																	<tr><td class="td_gray">手續費</td><td id="bit_fee" class="lalign"></td></tr>
																	<tr><td class="td_gray">存款金額</td><td id="bit_amount" class="lalign"></td></tr>
											</table>
									 </div>
							</div>
							<div class="nextwbtn">
												<h4 class="mb10">注意:</h4>
												<ol class="ml15 mb30">
                          <li>本頁顯示的匯率僅供參考，實際匯率可能會因我們收到存款金額的時間而有所不同。</li>
                          <li>您可以向您的iWallet賬戶進行存款。</li>
                          <li>每筆交易將收取兌換金額<span class="span-w600"><?php echo VAL_STR_BIT_FEE ?>%</span>的手續費。 </li>
                          <li>您可以存入的最低金額為0.05比特幣。</li>
												</ol>
							</div>
								<form id="acForm" action="" method="post">
									<p class="calign nextwbtn">
											<input type="hidden" value="" id="type" name="type" />
											<input type="hidden" value="EUR" id="currency" name="currency" />
                      <input type="hidden" value="<?php $this -> echoAccount(); ?>" id="user_account" name="user_account" />
											<input type="button" id="btnBitComplete" value="下一頁" class="btn bg-grad px180 mb10">
									</p>
								</form>
						</div>

					</article>

					<!-- BITCOIN APPLICATION API ERROR-->

						 <div id="popupmsg" class="error_popup">

							 <!-- content -->
							 <div class="error_popup_content">
								 <span class="error_popup_close">&times;</span>
								 <div class="error_text">
										 <ul>
												 <li><i class="fa fa-times-circle"></i></li>
												 <li>Error</li>
										 </ul>
								 </div>
								 <p>抱歉，我們無法確認比特幣匯率。請在1小時候重試或聯繫客服。</p>
								 <br>

									<p class="calign">
										 <a href="deposit"><input type="button" id="btnBack" value="返回首頁" class="btn bg-grad px180"></a>
								 </p>
							 </div>

						 </div>
					<!-- END-->

				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
<script src="../js/ui-choose-bind.js"></script>
<script src="../js/deposit.js" type="text/javascript"></script>
</body>
</html>
