<?php require ("header.php")?>


      
      
    
      
      
      
      
      
      
      
      
      
       <?php
session_start();
if(isset($_SESSION['SESS_ADMINLOGGEDIN']) == FALSE) {
    header("Location: " . $config_basedir."access");
}
require_once("../config.php");

?>
      

  
      
                <?php


    $id = $_GET['id'];
   
 
 
 ?>
 
 
   <?php
if (isset($_POST['action_bal'])) {
    // Sanitize input data
    $balance = $_POST['balance'];
    $ibalance = $_POST['ibalance'];
   
    $opbalc = $_POST['opbalc'];
    $tr_limit = $_POST['tr_limit'];
    $CARDstatus = $_POST['CARDstatus'];
    $card_balc = $_POST['card_balc'];
    $currency = $_POST['currency'];
    $acc_type = $_POST['acc_type'];

    // Assuming $id is set from session or elsewhere
    // e.g., $id = $_SESSION['SESS_USERID'];

    
        $stmt = $pdo->prepare("UPDATE logins 
            SET balance = :balance, 
                tr_limit = :tr_limit, 
                ibalance = :ibalance, 
                opbalc = :opbalc, 
                card_balc = :card_balc, 
                CARDstatus = :CARDstatus, 
                currency = :currency, 
                acc_type = :acc_type 
            WHERE id = :id");

        // Bind the parameters
        $stmt->bindParam(':balance', $balance);
        $stmt->bindParam(':ibalance', $ibalance);
        $stmt->bindParam(':opbalc', $opbalc);
        $stmt->bindParam(':tr_limit', $tr_limit);
        $stmt->bindParam(':CARDstatus', $CARDstatus);
        $stmt->bindParam(':card_balc', $card_balc);
        $stmt->bindParam(':currency', $currency);
        $stmt->bindParam(':acc_type', $acc_type);
        $stmt->bindParam(':id', $id);

        // Execute the statement
        $stmt->execute();

        // Success message
        $success = "
        <center>
            <div class='warning' style='margin-bottom:50px;'>
                <div class='loader'></div>
                Uploading Information...
                <meta http-equiv='refresh' content='5; url=' />
                Please wait......
            </div>
        </center>";
   
}
?>

 
 <?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;

// Load PHPMailer
require 'PHPMailer/PHPMailer.php';
require 'PHPMailer/SMTP.php';
require 'PHPMailer/Exception.php';

// Get website settings
$stmt = $pdo->query("SELECT * FROM settings ORDER BY id DESC LIMIT 1");
$row = $stmt->fetch(PDO::FETCH_ASSOC);

if ($row) {
    $cphone   = $row['phone'];
    $curl     = $row['url'];
    $cdomain  = $row['domain'];
    $cname    = $row['domain_name'];
    $cpass    = $row['password'];
    $cemail   = $row['email2'];
    $cright   = $row['copyright'];
    $chost    = $row['contact_email'];
    $cport    = $row['service1'];
    $ctitle   = $row['title'];
    $curr     = '$'; // Currency symbol
}

if (isset($_POST['credit'])) {
    // Collect and sanitize input
    $credit = $_POST['credit'];
    $note = $_POST['note'];
    $date = $_POST['date'];
    $tran_type = $_POST['tran_type'];
    $trans_id = rand(1000000000000, 10000000000000);
    $name = $_POST['name'];
    
    
    $phone = $_POST['phone'];
    
    
    
    $email = trim($_POST['email']);

// if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
//     die("Invalid or missing recipient email: $email");
// }

    // $email = $_POST['email'];
    
    
    $acc_no = $_POST['acc_no'];
    $ben_acct_no = $_POST['ben_acct_no'];
    $ben_name = $_POST['ben_name'];
    $bank_name = $_POST['bank_name'];
    $bank_swift = $_POST['bank_swift'];
    $routin = $_POST['routin'];
    $method = $_POST['method'];

    // Insert transaction
    $stmt = $pdo->prepare("INSERT INTO `transactions` 
        (`log_id`, `name`, `note`, `tran_type`, `date`, `trans_id`, `acc_no`, `cur`, `trans_amount`, `ben_acct_no`, `ben_name`, `bank_name`, `bank_swift`, `routin`, `method`) 
        VALUES (:log_id, :name, :note, :tran_type, :date, :trans_id, :acc_no, '$', :trans_amount , :ben_acct_no , :ben_name , :bank_name , :bank_swift , :routin , :method)");
    $stmt->bindParam(':log_id', $id);
    $stmt->bindParam(':name', $name);
    $stmt->bindParam(':note', $note);
    $stmt->bindParam(':tran_type', $tran_type);
    $stmt->bindParam(':date', $date);
    $stmt->bindParam(':trans_id', $trans_id);
    $stmt->bindParam(':acc_no', $acc_no);
    $stmt->bindParam(':trans_amount', $credit);
    $stmt->bindParam(':ben_acct_no', $ben_acct_no);
    $stmt->bindParam(':ben_name', $ben_name);
    $stmt->bindParam(':bank_name', $bank_name);
    $stmt->bindParam(':bank_swift', $bank_swift);
    $stmt->bindParam(':routin', $routin);
    $stmt->bindParam(':method', $method);
    $stmt->execute();

    // Insert message
    $stmt2 = $pdo->prepare("INSERT INTO `message` 
        (`log_id`, `name`, `msg`, `date`, `acc_no`, `amount`) 
        VALUES (:log_id, :name, :msg, :date, :acc_no, :amount)");
    $stmt2->bindParam(':log_id', $id);
    $stmt2->bindParam(':name', $name);
    $stmt2->bindParam(':msg', $note);
    $stmt2->bindParam(':date', $date);
    $stmt2->bindParam(':acc_no', $acc_no);
    $stmt2->bindParam(':amount', $credit);
    $stmt2->execute();

    // Update balance
    $stmt3 = $pdo->prepare("UPDATE logins SET balance = balance + :credit, ibalance = ibalance + :credit, newdep = :credit WHERE id = :id");
    $stmt3->bindParam(':credit', $credit);
    $stmt3->bindParam(':id', $id);
    $stmt3->execute();



    // Email body
    $emailBody = '
    <center><img src="'.$curl.'/img/LOGO.png" width="100%" height="100%" alt="logo"></center>
    <p>A transaction has just occurred on your account. See the details below:</p>
    <h3>Beneficiary Details:</h3>
    <p>
        Transaction Type: <strong>CREDIT</strong><br>
        IBAN / Account Number: '.$ben_acct_no.'<br>
        Amount: '.$curr . number_format($credit, 2).'<br>
        Transaction Ref: '.$trans_id.'<br>
        Narration: '.$note.'<br>
        Date: '.$date.'
    </p>
    <p>Thanks for banking with '.$cdomain.'.</p>
    <hr>
    <p>'.$cname.' All Rights Reserved.</p>';

    // Send Email using PHPMailer
    $mail = new PHPMailer(true);
    try {
        $mail->isSMTP();
        $mail->Host = $chost;
        $mail->SMTPAuth = true;
        $mail->Username = $cemail;
        $mail->Password = $cpass;
        $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
        $mail->Port = $cport;

        $mail->setFrom($cemail, $cname);
        $mail->addAddress($email);
        $mail->isHTML(true);
        $mail->Subject = 'NOTIFICATION (CREDIT ALERT)';
        $mail->Body = $emailBody;

        $mail->send();

        // Send to admin
        $mail->clearAddresses();
        $mail->addAddress($cemail);
        $mail->send();

        echo "<script>alert('Credit Transaction successful. Notification email has been sent.'); window.location.href='';</script>";

    } catch (Exception $e) {
        echo "<script>alert('Transaction succeeded but mail failed: {$mail->ErrorInfo}'); window.location.href='';</script>";
    }
}













if (isset($_POST['debit'])) {
    // Collect and sanitize input
    $debit = $_POST['debit'];
    $note = $_POST['note'];
    $date = $_POST['date'];
    $tran_type = $_POST['tran_type'];
    $trans_id = rand(1000000000000, 10000000000000);
    $name = $_POST['name'];
    
    
    $phone = $_POST['phone'];
    
    
    
    $email = trim($_POST['email']);

// if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
//     die("Invalid or missing recipient email: $email");
// }

    // $email = $_POST['email'];
    
    
    $acc_no = $_POST['acc_no'];
    $ben_acct_no = $_POST['ben_acct_no'];
    $ben_name = $_POST['ben_name'];
    $bank_name = $_POST['bank_name'];
    $bank_swift = $_POST['bank_swift'];
    $routin = $_POST['routin'];
    $method = $_POST['method'];

    // Insert transaction
    $stmt = $pdo->prepare("INSERT INTO `transactions` 
        (`log_id`, `name`, `note`, `tran_type`, `date`, `trans_id`, `acc_no`, `cur`, `trans_amount`, `ben_acct_no`, `ben_name`, `bank_name`, `bank_swift`, `routin`, `method`) 
        VALUES (:log_id, :name, :note, :tran_type, :date, :trans_id, :acc_no, '$', :trans_amount , :ben_acct_no , :ben_name , :bank_name , :bank_swift , :routin , :method)");
    $stmt->bindParam(':log_id', $id);
    $stmt->bindParam(':name', $name);
    $stmt->bindParam(':note', $note);
    $stmt->bindParam(':tran_type', $tran_type);
    $stmt->bindParam(':date', $date);
    $stmt->bindParam(':trans_id', $trans_id);
    $stmt->bindParam(':acc_no', $acc_no);
    $stmt->bindParam(':trans_amount', $debit);
    $stmt->bindParam(':ben_acct_no', $ben_acct_no);
    $stmt->bindParam(':ben_name', $ben_name);
    $stmt->bindParam(':bank_name', $bank_name);
    $stmt->bindParam(':bank_swift', $bank_swift);
    $stmt->bindParam(':routin', $routin);
    $stmt->bindParam(':method', $method);
    $stmt->execute();

    // Insert message
    $stmt2 = $pdo->prepare("INSERT INTO `message` 
        (`log_id`, `name`, `msg`, `date`, `acc_no`, `amount`) 
        VALUES (:log_id, :name, :msg, :date, :acc_no, :amount)");
    $stmt2->bindParam(':log_id', $id);
    $stmt2->bindParam(':name', $name);
    $stmt2->bindParam(':msg', $note);
    $stmt2->bindParam(':date', $date);
    $stmt2->bindParam(':acc_no', $acc_no);
    $stmt2->bindParam(':amount', $debit);
    $stmt2->execute();

    // Update balance
        $stmt3 = $pdo->prepare("UPDATE logins SET balance = balance - :debit, ibalance = ibalance - :debit, newdep = :debit WHERE id = :id");
        $stmt3->bindParam(':debit', $debit);
        $stmt3->bindParam(':id', $id);

        // Execute the balance update
        $stmt3->execute();


    // Email body
    $emailBody = '
    <center><img src="'.$curl.'/img/LOGO.png" width="100%" height="100%" alt="logo"></center>
    <p>A transaction has just occurred on your account. See the details below:</p>
    <h3>Beneficiary Details:</h3>
    <p>
        Transaction Type: <strong>DEBIT</strong><br>
        IBAN / Account Number: '.$ben_acct_no.'<br>
        Amount: '.$curr . number_format($debit, 2).'<br>
        Transaction Ref: '.$trans_id.'<br>
        Narration: '.$note.'<br>
        Date: '.$date.'
    </p>
    <p>Thanks for banking with '.$cdomain.'.</p>
    <hr>
    <p>'.$cname.' All Rights Reserved.</p>';

    // Send Email using PHPMailer
    $mail = new PHPMailer(true);
    try {
        $mail->isSMTP();
        $mail->Host = $chost;
        $mail->SMTPAuth = true;
        $mail->Username = $cemail;
        $mail->Password = $cpass;
        $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
        $mail->Port = $cport;

        $mail->setFrom($cemail, $cname);
        $mail->addAddress($email);
        $mail->isHTML(true);
        $mail->Subject = 'NOTIFICATION (DEBIT ALERT)';
        $mail->Body = $emailBody;

        $mail->send();

        // Send to admin
        $mail->clearAddresses();
        $mail->addAddress($cemail);
        $mail->send();

        echo "<script>alert('debit Transaction successful. Notification email has been sent.'); window.location.href='';</script>";

    } catch (Exception $e) {
        echo "<script>alert('Transaction succeeded but mail failed: {$mail->ErrorInfo}'); window.location.href='';</script>";
    }
}
?>

 
 
 
 
 
   <?php

if (isset($_POST['invest'])) {
    // Sanitize input data
    $ver = $_POST['invest'];

   
        // Prepare the SQL for updating the investment balance
        $stmt = $pdo->prepare("UPDATE logins SET invbalc = invbalc + :ver WHERE id = :id");
        
        // Bind the parameters
        $stmt->bindParam(':ver', $ver);
        $stmt->bindParam(':id', $id);

        // Execute the statement
        $stmt->execute();

        // Success message
        $success = "<div class='alert alert-success' style='margin-bottom:20px;'>Investment Balance Set Successfully
        <meta http-equiv='refresh' content='0; url=' /></div>
        <div class='loader'></div>";
        
    
}

?>



 
  <div class='page-wrapper'>
           
            <div class='page-breadcrumb'>
                <div class='row'>
                    <div class='col-12 d-flex no-block align-items-center'>
                       
                       
                    </div>
                </div>
            </div>
           
            <div class='container-fluid'>
               
                <div class='row'>
                    <div class='col-12'>
                        <div class='card'>
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
 
     <!-- Content Wrapper. Contains page content -->
      <div class='content-wrapper'>
      
        <!-- Main content -->
        <section class='content'>

          <div class='row'>
            <!-- /.col -->
            <div class='col-md-12'>
              <div class='nav-tabs-custom'>
                <ul class='nav nav-tabs'>
                    <li class='active'>
                          <a href='index.php' class='rowtab'><strong>HOME</strong></a>
                          
                          </li>
<a href='list_customers.php'  class='btn btn-primary' value='log in'>CUSTOMERS List</a>
                   
                   </li>
                </ul>
                <div class='tab-content'>
                  <div class='active tab-pane' id='activity'>
                    <!-- Post -->
                    <div class='post'>
      
      
          
    <section class='content-header'>
      <h1>
        Bank Details
        <small>Customer's panel</small>
      </h1>
      <ol class='breadcrumb'>
        <li><a href='index.php'><i class='fa fa-dashboard'></i> Home</a></li>
        <li class='active'> <a href='list_customers.php'>CUSTOMERS List</a></li>
        <li class='active'>Add</li>
      </ol>
    </section>
	
	
    <section class='content'>
	<div class='row'>	
		
	 <section class='content'>
     

				
				<div class='box box-success'>
            <div class='box-body'>
              <div class='table-responsive'>
             <div class='box-body'>

			 <!--<div class='col-md-14'>-->
           <div class='container'>
            
              
            <?php 
if(isset($success)){
    echo $success;
}
?>
   
            
            
            
          <div class='tab-content'>
            
            
     




            
           <?php

    if (isset($id)) {
        // Fetch the user's information
        $stmt = $pdo->prepare("SELECT * FROM logins WHERE id = :id");
        $stmt->bindParam(':id', $id, PDO::PARAM_INT);
        $stmt->execute();
        $ordrow = $stmt->fetch(PDO::FETCH_ASSOC);

        echo "<div class='tab-pane fade in active' id='tab_1'>
                <hr>	
              <div class='form-group'>
                  <form class='form-horizontal' method='post' enctype='multipart/form-data' action=''>
                      <div class='alert-danger'>&nbsp; ACCOUNT INFORMATION (" . htmlspecialchars($ordrow['firstname']) . " " . htmlspecialchars($ordrow['lastname']) . ") </div>
                      <hr>

                      <div class='form-group'>
                          <label for='' class='col-sm-2 control-label' style='color:#009900'>CARD TYPE</label>
                          <div class='col-sm-10'>
                              <select name='CARDstatus'>
                                  <option value='" . htmlspecialchars($ordrow['CARDstatus']) . "' selected/>";
                                  
                                  if($ordrow['CARDstatus'] == 1) {
                                      echo "CARD ENABLED.";
                                  } elseif($ordrow['CARDstatus'] == 2) {
                                      echo "CARD DISABLED";
                                  }
                                  
                              echo "</option>
                                  <option value='1'>Activate Card</option> 
                                  <option value='0'>Deactivate Card</option> 
                              </select>
                          </div>
                      </div>

                      <div class='form-group'>
                          <label for='' class='col-sm-2 control-label' style='color:#009900'>Card Balance</label>
                          <div class='col-sm-10'>
                              <input name='card_balc' type='number' class='form-control' value='" . htmlspecialchars($ordrow['card_balc']) . "'>
                          </div>
                      </div>

                      <div class='form-group'>
                          <label for='' class='col-sm-2 control-label' style='color:#009900'>Opening Balance</label>
                          <div class='col-sm-10'>
                              <input name='opbalc' type='number' class='form-control' value='" . htmlspecialchars($ordrow['opbalc']) . "'>
                          </div>
                      </div>

                      <div class='form-group'>
                          <label for='' class='col-sm-2 control-label' style='color:#009900'>Account Balance</label>
                          <div class='col-sm-10'>
                              <input name='balance' type='text' class='form-control' value='" . htmlspecialchars($ordrow['balance']) . "'>
                          </div>
                      </div>

                      <div class='form-group'>
                          <label for='' class='col-sm-2 control-label' style='color:#009900'>Transfer Limit</label>
                          <div class='col-sm-10'>
                              <input name='tr_limit' type='text' class='form-control' value='" . htmlspecialchars($ordrow['tr_limit']) . "'>
                          </div>
                      </div>

                      <div class='form-group'>
                          <label for='' class='col-sm-2 control-label' style='color:#009900'>Currency</label>
                          <div class='col-sm-10'>
                              <select name='currency'>
                                  <option value='" . htmlspecialchars($ordrow['currency']) . "' selected/>";

                                  // Map currency values to display names
                                  $currencies = [
                                      1 => 'USD', 2 => 'GBP', 3 => 'EUR', 4 => 'AUD',
                                      5 => 'CAD', 6 => 'CNY', 7 => 'ZAR', 8 => 'NGN'
                                  ];
                                  
                                  echo $currencies[$ordrow['currency']] ?? 'Unknown Currency';

                              echo "</option>
                                  <option value='1'>USD</option>
                                  <option value='2'>GBP</option>
                                  <option value='3'>EUR</option>
                                  <option value='4'>AUD</option>
                                  <option value='5'>CAD</option>
                                  <option value='6'>CNY</option>
                                  <option value='7'>ZAR</option>
                                  <option value='8'>NGN</option>
                              </select>
                          </div>
                      </div>

                      <div class='form-group'>
                          <label for='' class='col-sm-2 control-label' style='color:#009900'>Account Type</label>
                          <div class='col-sm-10'>
                              <select name='acc_type'>
                                  <option value='" . htmlspecialchars($ordrow['acc_type']) . "' selected/>";

                                  $accountTypes = [
                                      1 => 'Savings Account', 2 => 'Current Account', 3 => 'MPower Business Account',
                                      4 => 'Checking Account', 5 => 'Money Market Accounts', 6 => 'Certificates of Deposit',
                                      7 => 'Brokerage Accounts', 8 => 'Individual Retirement Accounts'
                                  ];

                                  echo $accountTypes[$ordrow['acc_type']] ?? 'Unknown Account Type';

                              echo "</option>
                                  <option value='1'>Savings Account</option>
                                  <option value='2'>Current Account</option>
                                  <option value='4'>Checking Account</option>
                              </select>
                          </div>
                      </div>

                      <center>
                          <button type='submit' class='btn btn-info btn-flat' name='action_bal'>
                              <i class='fa fa-save'>&nbsp;Update Account</i>
                          </button>
                      </center>
                  </form>
              </div>";
    }

?>

           			               
              
       <hr>
       
       <style>
    select.form-control {
        height: calc(6.25rem + 2px); /* Matches Bootstrap input height */
        background-color: white; /* Optional: white background like inputs */
    }
</style>

       
         
        <form class='form-horizontal' method='post' enctype='multipart/form-data' action=''>
    <div class='alert-success'>&nbsp; CREDIT SECTION </div>
    <hr>
   
   
    <div class='form-group'>
        <label for='' class='col-sm-2 control-label' style='color:green'>Credit Account</label>
        <div class='col-sm-10'>
            <input name='credit' type='number' class='form-control' placeholder=''>
        </div>
    </div>
    
    
    <div class='form-group'>
        <label for='' class='col-sm-2 control-label' style='color:green'>Beneficiary Account No.</label>
        <div class='col-sm-10'>
            <input name='ben_acct_no' type='number' class='form-control' placeholder=''>
        </div>
    </div>
    
    
    
    <div class='form-group'>
        <label for='' class='col-sm-2 control-label' style='color:green'>Beneficiary Account Name</label>
        <div class='col-sm-10'>
            <input name='ben_name' type='text' class='form-control' placeholder=''>
        </div>
    </div>
    
    
    
    <div class='form-group'>
        <label for='' class='col-sm-2 control-label' style='color:green'>Beneficiary Bank Name</label>
        <div class='col-sm-10'>
            <input name='bank_name' type='text' class='form-control' placeholder=''>
        </div>
    </div>
    
    
    <div class='form-group'>
        <label for='' class='col-sm-2 control-label' style='color:green'>Bank Routin No.</label>
        <div class='col-sm-10'>
            <input name='routin' type='text' class='form-control' placeholder=''>
        </div>
    </div>
    
    
    
   <div class="form-group row">
    <label class="col-sm-2 col-form-label" style="color: green;">Bank Swift</label>
    <div class="col-sm-10">
        <input name="bank_swift" type="text" class="form-control" placeholder="">
    </div>
</div>

<div class="form-group row">
    <label class="col-sm-2 col-form-label" style="color: green;">Transfer Type</label>
    <div class="col-sm-10">
        <select name="method" class="form-control">
            <option value="1">Same Bank</option>
            <option value="2">Local Bank</option>
            <option value="3">International/Wire Bank</option>
        </select>
    </div>
</div>

    

    <input name='name' type='hidden' class='form-control' value='<?php echo $ordrow['username']; ?>'>
    <input name='acc_no' type='hidden' class='form-control' value='<?php echo $ordrow['acc_no']; ?>'>
    <input name='tran_type' type='hidden' class='form-control' value='2'>
    
     <input name='email' type='hidden' class='form-control' value='<?php echo $ordrow['email']; ?>'>



    <div class='form-group'>
        <label for='' class='col-sm-2 control-label' style='color:green'>Date</label>
        <div class='col-sm-10'>
            <input class='form-control border-primary' type='text' name='date' value='<?php echo date('jS F Y g.iA'); ?>'>
        </div>
    </div>



    <div class='form-group'>
        <label for='' class='col-sm-2 control-label' style='color:green'>Transaction Note</label>
        <div class='col-sm-10'>
            <textarea name='note' type='number' class='form-control' placeholder='Enter short note'></textarea>
        </div>
    </div>
    
    

    <center>
        <button type='submit' class='btn btn-info btn-flat' name='CREDIT'><i class='fa fa-save'>&nbsp;Credit Account</i></button>
    </center>
</form>





















<hr>

<form class='form-horizontal' method='post' enctype='multipart/form-data' action=''>
    <div class='alert-danger'>&nbsp; DEBIT SECTION </div>
    <hr>
   
   
   
    <div class='form-group'>
        <label for='' class='col-sm-2 control-label' style='color:red'>Debit Account</label>
        <div class='col-sm-10'>
            <input name='debit' type='number' class='form-control' placeholder=''>
        </div>
    </div>




<div class='form-group'>
        <label for='' class='col-sm-2 control-label' style='color:green'>Beneficiary Account No.</label>
        <div class='col-sm-10'>
            <input name='ben_acct_no' type='number' class='form-control' placeholder=''>
        </div>
    </div>
    
    
    
    <div class='form-group'>
        <label for='' class='col-sm-2 control-label' style='color:green'>Beneficiary Account Name</label>
        <div class='col-sm-10'>
            <input name='ben_name' type='text' class='form-control' placeholder=''>
        </div>
    </div>
    
    
    
    <div class='form-group'>
        <label for='' class='col-sm-2 control-label' style='color:green'>Beneficiary Bank Name</label>
        <div class='col-sm-10'>
            <input name='bank_name' type='text' class='form-control' placeholder=''>
        </div>
    </div>
    
    
    <div class='form-group'>
        <label for='' class='col-sm-2 control-label' style='color:green'>Bank Routin No.</label>
        <div class='col-sm-10'>
            <input name='routin' type='text' class='form-control' placeholder=''>
        </div>
    </div>
    
    
    
   <div class="form-group row">
    <label class="col-sm-2 col-form-label" style="color: green;">Bank Swift</label>
    <div class="col-sm-10">
        <input name="bank_swift" type="text" class="form-control" placeholder="">
    </div>
</div>

<div class="form-group row">
    <label class="col-sm-2 col-form-label" style="color: green;">Transfer Type</label>
    <div class="col-sm-10">
        <select name="method" class="form-control">
            <option value="1">Same Bank</option>
            <option value="2">Local Bank</option>
            <option value="3">International/Wire Bank</option>
        </select>
    </div>
</div>

    

  <input name='email' type='hidden' class='form-control' value='<?php echo $ordrow['email']; ?>'>
    <input name='name' type='hidden' class='form-control' value='<?php echo $ordrow['username']; ?>'>
    <input name='acc_no' type='hidden' class='form-control' value='<?php echo $ordrow['acc_no']; ?>'>
    <input name='tran_type' type='hidden' class='form-control' value='1'>

    <div class='form-group'>
        <label for='' class='col-sm-2 control-label' style='color:green'>Date</label>
        <div class='col-sm-10'>
            <input class='form-control border-primary' type='text' name='date' value='<?php echo date('jS F Y g.iA'); ?>'>
        </div>
    </div>

    <div class='form-group'>
        <label for='' class='col-sm-2 control-label' style='color:green'>Transaction Note</label>
        <div class='col-sm-10'>
            <textarea name='note' type='number' class='form-control' placeholder='Enter short note'></textarea>
        </div>
    </div>

    <center>
        <button type='submit' class='btn btn-info btn-flat' name='DEBIT'><i class='fa fa-save'>&nbsp;Debit Account</i></button>
    </center>
</form>

              
              
                  </div> 
     
     
     
     
     
              
              
              
              
                  </div>
                  
           
              
              
              
              
				
				
				</div>
				

              </div>
			 

	
</div>	
</div>
</div></div>	
</div>
</div></div>	
</div>
</div></div>	
</div>
</div></div>	
</div>
</div>	
</div>		</section>
        
        
        
        
        
        
        
        
        
        
                    </div><!-- /.post -->

                
                  </div>
                  <!-- /.tab-pane -->
                  
                  
                  
                  

                  <!-- /.tab-pane -->
                </div><!-- /.tab-content -->
              </div><!-- /.nav-tabs-custom -->
            </div><!-- /.col -->
          </div><!-- /.row -->

        </section><!-- /.content -->
      </div>
                </div>
               
            </div>
            
           <?php require ("footer.php")?>
           
           <script>
function myFunction() {
  window.print(); }
</script>