<?php
$page_title = "Bitcoin Deposit Application";
include_once('template/base_head.php');
?>

			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/en/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>Invalid value. Please enter an amount greater than or equal to 0.05 BTC.</li>
									</ul>
							</div>
						</div>
						<div class="pleft40 mb20 respM">
						<p>This deposit option will allow you to fund your own iWallet account from your Bitcoin wallet account. </br>The bitcoin's value will be converted to its corresponding EUR amount, appearing on the EUR balance of the iWallet account.</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">Beneficiary Currency: EUR</span>
								</div>

						</div>
								<span class="span-w600">Bitcoin Rates:</span>
						<div class>
									 <div class="lfloat px240">
										 	<input type="text" value="" placeholder="0.05" class="px130" id="ratenum" maxlength="15"><span class="ml10"> BTC to EUR</span>
									</div>
									<div class="lfloat">
											<input type="button" id="rateSearch" value="Check" 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">BTC Rate</td><td id="bit_rate" class="lalign"></td></tr>
																	<tr><td class="td_gray">Converted Amount</td><td id="bit_exchangeto" class="lalign"></td></tr>
																	<tr><td class="td_gray">Fee</td><td id="bit_fee" class="lalign"></td></tr>
																	<tr><td class="td_gray">Deposited Amount</td><td id="bit_amount" class="lalign"></td></tr>
											</table>
									 </div>
							</div>
							<div class="nextwbtn">
												<h4 class="mb10">Note:</h4>
												<ol class="ml15 mb30">
														<li>The exchange rate displayed on this page is for reference only, the actual rate of your transaction may vary depending on real time rate at the time we received the deposited amount.</li>
														<li>You can only deposit to your own iWallet account.</li>
														<li>A transaction fee, <span class="span-w600"><?php echo VAL_STR_BIT_FEE ?>%</span> of the converted amount, will be charged per transaction.</li>
														<li>The minimum amount you can deposit is 0.05 BTC.</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="Next" 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>Sorry! We were unable to check the BTC rate. Please try again after 1 hour or contact customer support.</p>
                  <br>

                   <p class="calign">
                      <a href="deposit"><input type="button" id="btnBack" value="Return to Home Page" 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>
