<?php 
include 'header.php';
?>

<form method="post">
<input type="hidden" name="a" value="withdraw_history">
<table cellspacing="0" cellpadding="0" border="0" width="100%"><tbody><tr>
 <td>
 <h3 class="account_main">Deposit History</h3>  
 
 </td>
 <td align="right">
From: <select name="month_from" class="inpts">
<option value="1">Jan
</option><option value="2">Feb
</option><option value="3">Mar
</option><option value="4">Apr
</option><option value="5">May
</option><option value="6" selected="">Jun
</option><option value="7">Jul
</option><option value="8">Aug
</option><option value="9">Sep
</option><option value="10">Oct
</option><option value="11">Nov
</option><option value="12">Dec
</option></select> &nbsp;
<select name="day_from" class="inpts">
<option value="1" selected="">1
</option><option value="2">2
</option><option value="3">3
</option><option value="4">4
</option><option value="5">5
</option><option value="6">6
</option><option value="7">7
</option><option value="8">8
</option><option value="9">9
</option><option value="10">10
</option><option value="11">11
</option><option value="12">12
</option><option value="13">13
</option><option value="14">14
</option><option value="15">15
</option><option value="16">16
</option><option value="17">17
</option><option value="18">18
</option><option value="19">19
</option><option value="20">20
</option><option value="21">21
</option><option value="22">22
</option><option value="23">23
</option><option value="24">24
</option><option value="25">25
</option><option value="26">26
</option><option value="27">27
</option><option value="28">28
</option><option value="29">29
</option><option value="30">30
</option><option value="31">31
</option></select> &nbsp;

<select name="year_from" class="inpts">
<option value="2014">2014
</option><option value="2015">2015
</option><option value="2016">2016
</option><option value="2017">2017
</option><option value="2020">2020
</option><option value="2019">2019
</option><option value="2020">2020
</option>
<option value="2021" selected="">2021</option>
<option value="2021" selected="">2022</option>
</select><br><img src="images/q.gif" width="1" height="4"><br>

To: <select name="month_to" class="inpts">
<option value="1">Jan
</option><option value="2">Feb
</option><option value="3">Mar
</option><option value="4">Apr
</option><option value="5">May
</option><option value="6" selected="">Jun
</option><option value="7">Jul
</option><option value="8">Aug
</option><option value="9">Sep
</option><option value="10">Oct
</option><option value="11">Nov
</option><option value="12">Dec
</option></select> &nbsp;
<select name="day_to" class="inpts">
<option value="1">1
</option><option value="2">2
</option><option value="3">3
</option><option value="4">4
</option><option value="5">5
</option><option value="6">6
</option><option value="7">7
</option><option value="8">8
</option><option value="9">9
</option><option value="10">10
</option><option value="11">11
</option><option value="12">12
</option><option value="13">13
</option><option value="14">14
</option><option value="15">15
</option><option value="16">16
</option><option value="17">17
</option><option value="18">18
</option><option value="19">19
</option><option value="20">20
</option><option value="21" selected="">21
</option><option value="22">22
</option><option value="23">23
</option><option value="24">24
</option><option value="25">25
</option><option value="26">26
</option><option value="27">27
</option><option value="28">28
</option><option value="29">29
</option><option value="30">30
</option><option value="31">31
</option></select> &nbsp;

<select name="year_to" class="inpts">
<option value="2014">2014</option>
<option value="2015">2015</option>
<option value="2016">2016</option>
<option value="2017">2017</option>
<option value="2020">2020</option>
<option value="2019">2019</option>
<option value="2020" >2020</option>
<option value="2021">2021</option>
<option value="2022" selected="">2022</option>
</select>

 </td>
 <td>
	&nbsp; <input type="submit" value="Go" class="sbmt">
 </td>
</tr></tbody></table>
</form>
<br><br>

<table cellspacing="1" cellpadding="2" border="0" width="100%" class="tab">
<tbody><tr>
<td class="inheader" width="170">Date</td>
 <td class="inheader" width="200">Amount</td>
 <td class="inheader" width="200">Status</td>
</tr>
<?php 
    $de = mysqli_query($link, "SELECT * FROM deposits WHERE email = '$uemail' ");
    if (mysqli_num_rows($de) > 0) {
      while($ed = mysqli_fetch_assoc($de)){
 ?>
 <tr>
   <td><?php echo $ed['date'] ?></td>
   <td><?php echo $currencySymbol ?><?php echo $ed['amount'] ?></td>
   <td><?php echo $ed['status'] ?></td>
 </tr>
<?php }} ?>
<tr><td colspan="3">&nbsp;</td></tr>
<tr>
  <?php 
      $sql211= "SELECT SUM(amount) as sum_amount FROM deposits WHERE email = '$uemail' ";
        $result211 = mysqli_query($link,$sql211);
        $row11 = mysqli_fetch_assoc($result211);
        if($row11['sum_amount'] != ""){
          $sum_amount = $row11['sum_amount'];
        }else{
          $sum_amount = "0";
    }
    
   ?>
 <td colspan="2">Total:</td>
 <td align="right"><b><?php echo $currencySymbol ?> <?php echo $sum_amount ?>		
		</b></td>
</tr>
</tbody>
  
</table>

</div><!--end column-70-->
</div>
</div>
</div>

<div class="contentBotContainer">
  <div class="contentBotInner">
    <div class="ctn-top-solid">
      <h1>btc network </h1>
      <h2> wallets: </h2>
      <div class="solid-top">
		  <a href="https://www.coinbase.com/" class="solidTop1"></a> 
		  <a href="https://blockchain.info/" class="solidTop2"></a>
		  <a href="https://xapo.com/" class="solidTop3"></a>
		  <a href="https://airbitz.co/" class="solidTop4"></a>
      </div>
    </div>
    <div class="clearfix"></div>
    <div class="ctn-bot-solid">
      <p>Market Cap: <span>$77829716960.00</span></p>
      <p>Hashrate: <span>7108353254.76</span></p>
      <p>Difficulty: <span>888171856257</span></p>
      <p>Total Blocks: <span>482882</span> </p>
      <p>Network Speed: <span>108.5 PH/s</span></p>
    </div>
  </div>
</div>


<?php 
include 'footer.php';
?>