<?php
$page_title = "比特币存款申请";
include_once('template/base_head.php');
?>

			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/sc/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>
