File Manager
Viewing File: confirmdeposit.php
<?php
session_start();
require_once ('class.admin.php');
include_once ('session.php');
$reg_user = new USER();
if (!isset($_SESSION['email'])) {
header("Location: login.php");
exit();
}
$stmt = $reg_user->runQuery("SELECT * FROM account");
$stmt->execute();
$credit = $reg_user->runQuery("SELECT * FROM account");
$credit->execute();
$credita = $reg_user->runQuery("SELECT * FROM account");
$credita->execute();
$debit = $reg_user->runQuery("SELECT * FROM account");
$debit->execute();
$mail = $_SESSION['email'];
$ad = $reg_user->runQuery("SELECT * FROM admin WHERE email = '$mail'");
$ad->execute();
$rom = $ad->fetch(PDO::FETCH_ASSOC);
if (isset($_POST['edit'])) {
$pass = $_POST['upass1'];
$cpass = $_POST['upass'];
$email = $_POST['email'];
if ($cpass !== $pass) {
$msg = "<div class='alert alert-danger'>
<button class='close' data-dismiss='alert'>×</button>
<strong>Sorry!</strong> Passwords Doesn't match.
</div>";
} else {
$password = md5($cpass);
$ed = $reg_user->runQuery("UPDATE admin SET email = '$email', upass = :upass WHERE email=:email");
$ed->execute(array(":upass" => $password, ":email" => $_SESSION['email']));
$msg = "<div class='alert alert-info'>
<button class='close' data-dismiss='alert'>×</button>
<strong>Login Details Was Successfully Changed!</strong>
</div>";
}
}
if (isset($_POST['his'])) {
$uname = trim($_POST['uname']);
$uname = strip_tags($uname);
$uname = htmlspecialchars($uname);
$amount = trim($_POST['amount']);
$amount = strip_tags($amount);
$amount = htmlspecialchars($amount);
$sender_name = trim($_POST['sender_name']);
$sender_name = strip_tags($sender_name);
$sender_name = htmlspecialchars($sender_name);
$type = trim($_POST['type']);
$type = strip_tags($type);
$type = htmlspecialchars($type);
$remarks = trim($_POST['remarks']);
$remarks = strip_tags($remarks);
$remarks = htmlspecialchars($remarks);
$date = trim($_POST['date']);
$date = strip_tags($date);
$date = htmlspecialchars($date);
$time = trim($_POST['time']);
$time = strip_tags($time);
$time = htmlspecialchars($time);
$alerts = $reg_user->runQuery("SELECT * FROM alerts");
$alerts->execute();
if ($reg_user->his($uname, $amount, $sender_name, $type, $remarks, $date, $time)) {
$id = $reg_user->lasdID();
$msg = "<div class='alert alert-info'>
<button class='close' data-dismiss='alert'>×</button>
<strong>History Successfully Added!</strong>
</div>";
} else {
$msg = "Error!";
}
}
if (isset($_POST['credit'])) {
$uname = trim($_POST['uname']);
$uname = strip_tags($uname);
$uname = htmlspecialchars($uname);
$amount = trim($_POST['amount']);
$amount = strip_tags($amount);
$amount = htmlspecialchars($amount);
$sender_name = trim($_POST['sender_name']);
$sender_name = strip_tags($sender_name);
$sender_name = htmlspecialchars($sender_name);
$type = trim($_POST['type']);
$type = strip_tags($type);
$type = htmlspecialchars($type);
$remarks = trim($_POST['remarks']);
$remarks = strip_tags($remarks);
$remarks = htmlspecialchars($remarks);
$statz = trim($_POST['statz']);
$statz = strip_tags($statz);
$statz = htmlspecialchars($statz);
$date = trim($_POST['date']);
$date = strip_tags($date);
$date = htmlspecialchars($date);
$time = trim($_POST['time']);
$time = strip_tags($time);
$time = htmlspecialchars($time);
if ($reg_user->his($uname, $amount, $sender_name, $type, $remarks, $date, $time, $statz)) {
$read = $reg_user->runQuery("SELECT * FROM account WHERE acc_no = '$uname'");
$read->execute();
$show = $read->fetch(PDO::FETCH_ASSOC);
$currency = $show['currency'];
$acc = $show['acc_no'];
$fname = $show['fname'];
$mname = $show['mname'];
$lname = $show['lname'];
$email = $show['email'];
$phone = $show['phone'];
$tbal = $show['t_bal'];
$abal = $show['a_bal'];
$diff = $amount + $tbal;
$dif = $amount + $abal;
$credited = $reg_user->runQuery("UPDATE account SET t_bal = '$diff', a_bal = '$dif' WHERE acc_no = '$uname'");
$credited->execute();
$id = $reg_user->lasdID();
$messag = "
<!DOCTYPE html>
<html lang='en' xmlns='http://www.w3.org/1999/xhtml' xmlns:v='urn:schemas-microsoft-com:vml' xmlns:o='urn:schemas-microsoft-com:office:office'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='x-apple-disable-message-reformatting'>
<title></title>
<link href='https://fonts.googleapis.com/css?family=Roboto:400,600' rel='stylesheet' type='text/css'>
<!-- Web Font / @font-face : BEGIN -->
<!--[if mso]>
<style>
* {
font-family: 'Roboto', sans-serif !important;
}
</style>
<![endif]-->
<!--[if !mso]>
<link href='https://fonts.googleapis.com/css?family=Roboto:400,600' rel='stylesheet' type='text/css'>
<![endif]-->
<!-- Web Font / @font-face : END -->
<!-- CSS Reset : BEGIN -->
<style>
/* What it does: Remove spaces around the email design added by some email clients. */
/* Beware: It can remove the padding / margin and add a background color to the compose a reply window. */
html,
body {
margin: 0 auto !important;
padding: 0 !important;
height: 100% !important;
width: 100% !important;
font-family: 'Roboto', sans-serif !important;
font-size: 14px;
margin-bottom: 10px;
line-height: 24px;
color:#8094ae;
font-weight: 400;
}
* {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
margin: 0;
padding: 0;
}
table,
td {
mso-table-lspace: 0pt !important;
mso-table-rspace: 0pt !important;
}
table {
border-spacing: 0 !important;
border-collapse: collapse !important;
table-layout: fixed !important;
margin: 0 auto !important;
}
table table table {
table-layout: auto;
}
a {
text-decoration: none;
}
img {
-ms-interpolation-mode:bicubic;
}
</style>
</head>
<body width='100%' style='margin: 0; padding: 0 !important; mso-line-height-rule: exactly; background-color: #f5f6fa;'>
<center style='width: 100%; background-color: #f5f6fa;'>
<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#f5f6fa'>
<tr>
<td style='padding: 40px 0;'>
<table style='width:100%;max-width:620px;margin:0 auto;'>
<tbody>
<tr>
<td style='text-align: center; padding-bottom:25px'>
<a href='#'><img style='height: 40px' src='$site_url/dashboard/admin/logo/logo.png' alt='logo'></a>
<p style='font-size: 14px; color: #6576ff; padding-top: 12px;'>--***--</p>
</td>
</tr>
</tbody>
</table>
<table style='width:100%;max-width:620px;margin:0 auto;background-color:#ffffff;'>
<tbody>
<tr>
<td style='padding: 30px 30px 20px'>
<p style='margin-bottom: 10px;'>Hi $fname $lname,</p>
<br>
<br>
<center>
<h3>Transaction Alert</h3>
<table style='border:1px solid black;padding:2px;' width='400'>
<tr>
<th style='text-align:left;'>Credit/Debit</th>
<td>$type</td>
</tr>
<tr>
<th style='text-align:left;'>Account Number</th>
<td>$acc</td>
</tr>
<tr>
<th style='text-align:left;'>Date/Time</th>
<td>$date $time</td>
</tr>
<tr>
<th style='text-align:left;'>Description</th>
<td>$remarks</td>
</tr>
<tr>
<th style='text-align:left;'>Amount</th>
<td>$currency $amount</td>
</tr>
<tr style='background-color:#03ab28;'>
<th style='text-align:left; color:#fff;'>Available Balance</th>
<td style='color:#fff;'>$currency $diff</td>
</tr>
</table>
</center>
<br>
<p style='margin-bottom: 15px;'>Hope you'll enjoy the experience, we're here if you have any questions, drop us a line at <a style='color: #6576ff; text-decoration:none;' href='mailto:$site_email'>$site_email</a> anytime. </p>
</td>
</tr>
</tbody>
</table>
<table style='width:100%;max-width:620px;margin:0 auto;'>
<tbody>
<tr>
<td style='text-align: center; padding:25px 20px 0;'>
<p style='font-size: 13px;'>Copyright © $site_title. All rights reserved.</p>
<ul style='margin: 10px -4px 0;padding: 0;'>
<li style='display: inline-block; list-style: none; padding: 4px;'><a style='display: inline-block; height: 30px; width:30px;border-radius: 50%; background-color: #ffffff' href='#'><img style='width: 30px' src='$site_url/images/brand-b.png' alt='brand'></a></li>
<li style='display: inline-block; list-style: none; padding: 4px;'><a style='display: inline-block; height: 30px; width:30px;border-radius: 50%; background-color: #ffffff' href='#'><img style='width: 30px' src='$site_url/images/brand-e.png' alt='brand'></a></li>
<li style='display: inline-block; list-style: none; padding: 4px;'><a style='display: inline-block; height: 30px; width:30px;border-radius: 50%; background-color: #ffffff' href='#'><img style='width: 30px' src='$site_url/images/brand-d.png' alt='brand'></a></li>
<li style='display: inline-block; list-style: none; padding: 4px;'><a style='display: inline-block; height: 30px; width:30px;border-radius: 50%; background-color: #ffffff' href='#'><img style='width: 30px' src='$site_url/images/brand-c.png' alt='brand'></a></li>
</ul>
<p style='padding-top: 15px; font-size: 12px;'>This email was sent to you as a registered user of <a style='color: #6576ff; text-decoration:none;' href='$site_url'>$site_title</a>. To update your emails preferences <a style='color: #6576ff; text-decoration:none;' href='$site_url/login.php'>click here</a>.</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</center>
</body>
</html>
";
$subject = "[Deposit Approval] - $site_title";
$reg_user->send_mail($email, $messag, $subject);
$phone_sms = preg_replace('/[^0-9]/', '', $phone);
$last_digit = substr($acc, -4);
$amountt = $currency ."".$amount;
$avl_bal = $currency ."".$diff;
$rem = $remarks;
$message_sms ="
Your Acct $last_digit Has Been Credited with $amountt.00 On $date $time By $rem .Available Bal:$avl_bal";
$reg_user->otp($phone_sms, $message_sms);
$msg = "<div class='alert alert-success'>
<button class='close' data-dismiss='alert'>×</button>
<strong>$uname Successfully Credited the Sum of $amount!</strong>
</div>";
} else {
$msg = "Error!";
}
}
if (isset($_POST['debit'])) {
$uname = trim($_POST['uname']);
$uname = strip_tags($uname);
$uname = htmlspecialchars($uname);
$amount = trim($_POST['amount']);
$amount = strip_tags($amount);
$amount = htmlspecialchars($amount);
$sender_name = trim($_POST['sender_name']);
$sender_name = strip_tags($sender_name);
$sender_name = htmlspecialchars($sender_name);
$type = trim($_POST['type']);
$type = strip_tags($type);
$type = htmlspecialchars($type);
$remarks = trim($_POST['remarks']);
$remarks = strip_tags($remarks);
$remarks = htmlspecialchars($remarks);
$date = trim($_POST['date']);
$date = strip_tags($date);
$date = htmlspecialchars($date);
$statz = trim($_POST['statz']);
$statz = strip_tags($statz);
$statz = htmlspecialchars($statz);
$time = trim($_POST['time']);
$time = strip_tags($time);
$time = htmlspecialchars($time);
$readd = $reg_user->runQuery("SELECT * FROM account WHERE acc_no = '$uname'");
$readd->execute();
$shows = $readd->fetch(PDO::FETCH_ASSOC);
$email = $shows['email'];
$name = $shows['fname'];
$tbal = $shows['t_bal'];
$abal = $shows['a_bal'];
if ($tbal < $amount && $abal < $amount) {
$msg = "<div class='alert alert-warning'>
<button class='close' data-dismiss='alert'>×</button>
<strong>The Amount ($amount) to be Debited is Higher Than $name's Account Balance ($tbal)</strong>
</div>";
} elseif ($reg_user->his($uname, $amount, $sender_name, $type, $remarks, $date, $time, $statz)) {
$readd = $reg_user->runQuery("SELECT * FROM account WHERE acc_no = '$uname'");
$readd->execute();
$shows = $readd->fetch(PDO::FETCH_ASSOC);
$currency = $shows['currency'];
$acc = $shows['acc_no'];
$fname = $shows['fname'];
$mname = $shows['mname'];
$lname = $shows['lname'];
$email = $shows['email'];
$phone = $shows['phone'];
$tbal = $shows['t_bal'];
$abal = $shows['a_bal'];
$diffi = $tbal - $amount;
$difi = $abal - $amount;
$debited = $reg_user->runQuery("UPDATE account SET t_bal = '$diffi', a_bal = '$difi' WHERE acc_no = '$uname'");
$debited->execute();
$id = $reg_user->lasdID();
$msg = "<div class='alert alert-info'>
<button class='close' data-dismiss='alert'>×</button>
<strong>$uname Successfully Debited the Sum of $amount!</strong>
</div>";
$messag = "
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<title>[SUBJECT]</title>
<style type='text/css'>
body {
padding-top: 0 !important;
padding-bottom: 0 !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
margin:0 !important;
width: 100% !important;
-webkit-text-size-adjust: 100% !important;
-ms-text-size-adjust: 100% !important;
-webkit-font-smoothing: antialiased !important;
}
.tableContent img {
border: 0 !important;
display: block !important;
outline: none !important;
}
a{
color:#382F2E;
}
p, h1{
color:#382F2E;
margin:0;
}
div,p,ul,h1{
margin:0;
}
p{
font-size:13px;
color:#99A1A6;
line-height:19px;
}
h2,h1{
color:#444444;
font-weight:normal;
font-size: 22px;
margin:0;
}
a.link2{
padding:15px;
font-size:13px;
text-decoration:none;
background:#2D94DF;
color:#ffffff;
border-radius:6px;
-moz-border-radius:6px;
-webkit-border-radius:6px;
}
.bgBody{
background: #f6f6f6;
}
.bgItem{
background: #2C94E0;
}
@media only screen and (max-width:480px)
{
table[class='MainContainer'], td[class='cell']
{
width: 100% !important;
height:auto !important;
}
td[class='specbundle']
{
width: 100% !important;
float:left !important;
font-size:13px !important;
line-height:17px !important;
display:block !important;
}
td[class='specbundle1']
{
width: 100% !important;
float:left !important;
font-size:13px !important;
line-height:17px !important;
display:block !important;
padding-bottom:20px !important;
}
td[class='specbundle2']
{
width:90% !important;
float:left !important;
font-size:14px !important;
line-height:18px !important;
display:block !important;
padding-left:5% !important;
padding-right:5% !important;
}
td[class='specbundle3']
{
width:90% !important;
float:left !important;
font-size:14px !important;
line-height:18px !important;
display:block !important;
padding-left:5% !important;
padding-right:5% !important;
padding-bottom:20px !important;
}
td[class='specbundle4']
{
width: 100% !important;
float:left !important;
font-size:13px !important;
line-height:17px !important;
display:block !important;
padding-bottom:20px !important;
text-align:center !important;
}
td[class='spechide']
{
display:none !important;
}
img[class='banner']
{
width: 100% !important;
height: auto !important;
}
td[class='left_pad']
{
padding-left:15px !important;
padding-right:15px !important;
}
}
@media only screen and (max-width:540px)
{
table[class='MainContainer'], td[class='cell']
{
width: 100% !important;
height:auto !important;
}
td[class='specbundle']
{
width: 100% !important;
float:left !important;
font-size:13px !important;
line-height:17px !important;
display:block !important;
}
td[class='specbundle1']
{
width: 100% !important;
float:left !important;
font-size:13px !important;
line-height:17px !important;
display:block !important;
padding-bottom:20px !important;
}
td[class='specbundle2']
{
width:90% !important;
float:left !important;
font-size:14px !important;
line-height:18px !important;
display:block !important;
padding-left:5% !important;
padding-right:5% !important;
}
td[class='specbundle3']
{
width:90% !important;
float:left !important;
font-size:14px !important;
line-height:18px !important;
display:block !important;
padding-left:5% !important;
padding-right:5% !important;
padding-bottom:20px !important;
}
td[class='specbundle4']
{
width: 100% !important;
float:left !important;
font-size:13px !important;
line-height:17px !important;
display:block !important;
padding-bottom:20px !important;
text-align:center !important;
}
td[class='spechide']
{
display:none !important;
}
img[class='banner']
{
width: 100% !important;
height: auto !important;
}
td[class='left_pad']
{
padding-left:15px !important;
padding-right:15px !important;
}
.font{
font-size:15px !important;
line-height:19px !important;
}
}
</style>
<script type='colorScheme' class='swatch active'>
{
'name':'Default',
'bgBody':'f6f6f6',
'link':'ffffff',
'color':'99A1A6',
'bgItem':'2C94E0',
'title':'444444'
}
</script>
</head>
<body paddingwidth='0' paddingheight='0' bgcolor='#d1d3d4' style=' margin-left:5px; margin-right:5px; margin-bottom:0px; margin-top:0px;padding-top: 0; padding-bottom: 0; background-repeat: repeat; width: 100% !important; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;' offset='0' toppadding='0' leftpadding='0'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='tableContent bgBody' align='center' style='font-family:Helvetica, Arial,serif;'>
<!-- =============================== Header ====================================== -->
<tr>
<td class='movableContentContainer' >
<div class='movableContent' style='border: 0px; padding-top: 0px; position: relative;'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' align='center' valign='top'>
<tr><td height='25' colspan='3'></td></tr>
<tr>
<td valign='top' colspan='3'>
<table width='600' border='0' bgcolor='transparent' cellspacing='0' cellpadding='0' align='center' valign='top' class='MainContainer'>
<tr>
<td align='left' valign='middle' width='200'>
<div class='contentEditableContainer contentImageEditable'>
<div class='contentEditable' >
<center> <img src='$site_url/logoblue.png' alt='' data-default='placeholder' data-max-width='120' width='250' height='50' > </center>
<b style='font-size:1.5em; color:#fff;'></b>
</div>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class='movableContent' style='border: 0px; padding-top: 0px; position: relative;'> </div>
<div class='movableContent' style='border: 0px; padding-top: 0px; position: relative;'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' align='center' valign='top'>
<tr>
<td>
<table width='600' border='0' cellspacing='0' cellpadding='0' align='center' valign='top' class='MainContainer'>
<tr>
<td>
<table width='100%' border='0' cellspacing='0' cellpadding='0' align='center' valign='top'>
<tr>
<td valign='top' align='center'>
<div class='contentEditableContainer contentTextEditable'>
<div class='contentEditable' >
<br > <h1 style='font-size:20px;font-weight:normal;color:#0076b6;line-height:19px;'>Dear $fname $lname,</h1> <br >
<p style='font-size:15px;color:#0076b6;line-height:19px;'>This is a summary of a transaction that has occurred on your account below</p> <h3>Transaction Alert</h3>
<table style='border:1px solid black;padding:2px;' width='400'>
<tr>
<th style='text-align:left;'>Credit/Debit</th>
<td>$type</td>
</tr>
<tr>
<th style='text-align:left;'>Account Number</th>
<td>$acc</td>
</tr>
<tr>
<th style='text-align:left;'>Date/Time</th>
<td>$date $time</td>
</tr>
<tr>
<th style='text-align:left;'>Description</th>
<td>$remarks</td>
</tr>
<tr>
<th style='text-align:left;'>Amount</th>
<td>$currency $amount</td>
</tr>
<tr style='background-color:#0076b6;'>
<th style='text-align:left; color:#fff;'>Available Balance</th>
<td style='color:#fff;'>$currency $diffi</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
<tr><td height='28'> </td></tr>
<tr>
<td valign='top' align='center'>
<div class='contentEditableContainer contentTextEditable'>
<div class='contentEditable' >
<p style=' font-weight:bold;font-size:13px;line-height: 30px;'>$site_title.</p>
</div>
<br> <div class='contentEditableContainer contentTextEditable'>
<div class='contentEditable' >
<p style='#F00; font-size:13px;line-height: 15px;'>This message is sent to this email to $fname <br /> <br /> <center><b>How do I know this is not a fake email?</b></center> <br />
An email really coming from us will address you by your registered first and last name or your business name. It will not ask you for sensitive information like your password, bank account or credit card details.<br /><br />
</p>
<p style='#F00; font-size:13px;line-height: 15px;'>Remember not to click any links in suspicious looking emails. </p>
</div>
</div> </div>
<div class='contentEditableContainer contentTextEditable'>
<div class='contentEditable' >
<p style='color:#A8B0B6; font-size:13px;line-height: 15px;'> </p>
</div>
</div>
<div class='contentEditableContainer contentTextEditable'>
</div>
<div class='contentEditableContainer contentTextEditable'>
</div>
</td>
</tr>
<tr><td height='28'> </td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
";
$subject = "[Debit Alert] - $site_title";
$reg_user->send_mail($email, $messag, $subject);
$phone_sms = preg_replace('/[^0-9]/', '', $phone);
$last_digit = substr($acc, -4);
$amountt = $currency ."".$amount;
$avl_bal = $currency ."".$diffi;
$rem = $remarks;
$message_sms =
"
Your Acct $last_digit
Has Been Debited with $amountt.00 On $date $time By $rem .Available Bal:$avl_bal
";
$reg_user->otp($phone_sms, $message_sms);
$msg1 = "<div class='alert alert-success'>
<button class='close' data-dismiss='alert'>×</button>
<strong>$uname Successfully Debited the Sum of $amount!</strong>
</div>";
} else {
$msg = "Error!";
}
}
include 'dbconnect.php';
$sql = "SELECT * FROM account ORDER BY id";
$sql1 = "SELECT * FROM ticket ";
$sql2 = "SELECT * FROM transfer";
$sql3 = "SELECT * FROM account WHERE verify ='N' ORDER BY id DESC LIMIT 200";
if ($result = mysqli_query($connection, $sql)) {
// Return the number of rows in result set
$rowcount = mysqli_num_rows($result);
// Free result set
mysqli_free_result($result);
if ($result1 = mysqli_query($connection, $sql1)) {
// Return the number of rows in result set
$rowcount1 = mysqli_num_rows($result1);
// Free result set
mysqli_free_result($result1);
if ($result2 = mysqli_query($connection, $sql2)) {
// Return the number of rows in result set
$rowcount2 = mysqli_num_rows($result2);
// Free result set
mysqli_free_result($result2);
if ($result3 = mysqli_query($connection, $sql3)) {
// Return the number of rows in result set
$rowcount3 = mysqli_num_rows($result3);
// Free result set
mysqli_free_result($result3);
}
}
}
}
mysqli_close($connection);
?>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<!-- Favicon icon -->
<link rel="icon" type="image/png" sizes="16x16" href="../../dist/assets/images/favicon.png">
<title>Confirm Deposit Account - Super Admin</title>
<!-- Custom CSS -->
<link href="dist/css/style.min.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Bootstrap 3.3.4 -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/css/style.css" rel="stylesheet" type="text/css" />
<!-- FontAwesome 4.3.0 -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="horizontal-nav skin-megna fixed-layout">
<!-- ============================================================== -->
<!-- Preloader - style you can find in spinners.css -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- Main wrapper - style you can find in pages.scss -->
<!-- ============================================================== -->
<div id="main-wrapper">
<!-- ============================================================== -->
<!-- Topbar header - style you can find in pages.scss -->
<!-- ============================================================== -->
<header class="topbar">
<nav class="navbar top-navbar navbar-expand-md navbar-dark">
<!-- ============================================================== -->
<!-- Logo -->
<!-- ============================================================== -->
<div class="navbar-header">
<ul class="navbar-nav mr-auto">
<!-- This is -->
<li class="nav-item"> <a class="nav-link nav-toggler d-block d-sm-none waves-effect waves-dark" href="javascript:void(0)"><i class="ti-menu"></i>MENU</a> </li>
<li class="nav-item"> <a class="nav-link sidebartoggler d-none waves-effect waves-dark" href="javascript:void(0)"><i class="icon-menu"></i></a> </li>
<!-- ============================================================== -->
<!-- Search -->
<!-- ============================================================== -->
</ul>
</div>
<!-- ============================================================== -->
<!-- End Logo -->
<!-- ============================================================== -->
<div class="navbar-collapse">
<!-- ============================================================== -->
<!-- toggle and nav items -->
<!-- ============================================================== -->
<ul class="navbar-nav mr-auto">
<!-- This is -->
<li class="nav-item"> <b> ADMIN PANEL</b> </li>
<!-- ============================================================== -->
<!-- Search -->
<!-- ============================================================== -->
</ul>
<!-- ============================================================== -->
<!-- User profile and search -->
<!-- ============================================================== -->
<ul class="navbar-nav my-lg-0">
<!-- ============================================================== -->
<!-- Comment -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- End Messages -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- mega menu -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- End mega menu -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- User Profile -->
<!-- ============================================================== -->
<li class="nav-item dropdown u-pro">
<a class="nav-link dropdown-toggle waves-effect waves-dark profile-pic" href="" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><img src="icons/admin.png" alt="user" class=""> <span class="hidden-md-down"><?php echo $row['uname']; ?> <i class="fa fa-angle-down"></i></span> </a>
</li>
<!-- ============================================================== -->
<!-- End User Profile -->
<!-- ============================================================== -->
</ul>
</div>
</nav>
</header>
<!-- ============================================================== -->
<!-- End Topbar header -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Left Sidebar - style you can find in sidebar.scss -->
<!-- ============================================================== -->
<?php include 'menu.php';?>
<!-- ============================================================== -->
<!-- End Left Sidebar - style you can find in sidebar.scss -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Page wrapper -->
<!-- ============================================================== -->
<div class="page-wrapper">
<!-- ============================================================== -->
<!-- Container fluid -->
<!-- ============================================================== -->
<section id="content" class="container">
<?php if (isset($msg)) echo $msg; ?>
<?php if (isset($msg1)) echo $msg1; ?>
<div class="block-area" id="tableHover">
<h3 class="block-title">Confirm Deposit</h3><br />
<!-- Notification Drawer -->
<div class="modal-body">
<form method="POST">
<div class="row">
<div class="col-md-6 form-group">
<label>Select Account To Credit</label>
<select name="uname" class="form-control input-sm validate[required]">
<?php while ($rows = $credit->fetch(PDO::FETCH_ASSOC)) { ?>
<option value="<?php echo $rows['acc_no']; ?>"><?php echo $rows['fname']; ?> <?php echo $rows['mname']; ?> <?php echo $rows['lname']; ?></option>
<?php } ?>
</select>
</div>
<input type="text" name="sender_name" class="input-sm form-control " value="Crypto Deposit" hidden required/>
<div class="col-md-6 form-group" >
<label>Amount</label>
<select name="amount" class="form-control input-sm validate[required]">
<?php while ($rows = $credita->fetch(PDO::FETCH_ASSOC)) { ?>
<option value="<?php echo $rows['cryptoamount']; ?>"><?php echo $rows['cryptoamount']; ?> </option>
<?php } ?>
</select>
<input type="hidden" name="type" value="Deposit"/>
<input type="hidden" name="statz" value="Successfull"/>
</div>
<input hidden name="remarks" class="input-sm form-control " value="Your Deposit of <?php echo $rows['amount']; ?> was Successful <?php echo $rows['cryptoname']; ?>" required >
</div>
<div class="row">
<div class="col-md-6 form-group">
<label>Date dd/MM/yyy</label>
<div class="input-icon ">
<input data-format="dd/MM/yyyy" type="text" name="date" class="input-sm validate[required] form-control " value="<?php echo " " . date("d/m/Y") ;?>" disabled required />
<span class="add-on">
<i class="sa-plus"></i>
</span>
</div>
</div>
<?php $date = date('H:i'); ?>
<div class="col-md-6 form-group">
<label>Time hh:mm:ss</label>
<div class="input-icon ">
<input data-format="hh:mm:ss" type="time-local" name="time" class="input-sm validate[required] form-control" value="<?= $date ?>" required disabled/>
<span class="add-on">
<i class="sa-plus"></i>
</span>
</div>
</div>
</div>
<div class="modal-footer" style="text-align:right;">
<div class="btn-group">
<button type="reset" class="btn btn-warning btn-lg">Reset</button>
<button type="submit" name="credit" class="btn btn-success btn-lg">Confirm Deposit</button>
</div>
</div>
</div>
</form> </div>
</section>
<div class="container-fluid">
<!-- ============================================================== -->
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- End PAge Content -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Right sidebar -->
<!-- ============================================================== -->
<!-- .right-sidebar -->
<div class="right-sidebar">
<div class="slimscrollright">
<div class="rpanel-title"> Service Panel <span><i class="ti-close right-side-toggle"></i></span> </div>
<div class="r-panel-body">
<ul id="themecolors" class="m-t-20">
<li><b>With Light sidebar</b></li>
<li><a href="javascript:void(0)" data-skin="skin-default" class="default-theme">1</a></li>
<li><a href="javascript:void(0)" data-skin="skin-green" class="green-theme">2</a></li>
<li><a href="javascript:void(0)" data-skin="skin-red" class="red-theme">3</a></li>
<li><a href="javascript:void(0)" data-skin="skin-blue" class="blue-theme">4</a></li>
<li><a href="javascript:void(0)" data-skin="skin-purple" class="purple-theme">5</a></li>
<li><a href="javascript:void(0)" data-skin="skin-megna" class="megna-theme working">6</a></li>
<li class="d-block m-t-30"><b>With Dark sidebar</b></li>
<li><a href="javascript:void(0)" data-skin="skin-default-dark" class="default-dark-theme ">7</a></li>
<li><a href="javascript:void(0)" data-skin="skin-green-dark" class="green-dark-theme">8</a></li>
<li><a href="javascript:void(0)" data-skin="skin-red-dark" class="red-dark-theme">9</a></li>
<li><a href="javascript:void(0)" data-skin="skin-blue-dark" class="blue-dark-theme">10</a></li>
<li><a href="javascript:void(0)" data-skin="skin-purple-dark" class="purple-dark-theme">11</a></li>
<li><a href="javascript:void(0)" data-skin="skin-megna-dark" class="megna-dark-theme ">12</a></li>
</ul>
<ul class="m-t-20 chatonline">
<li><b>NEED HELP?</b></li>
<li><b>TALK TO MR SAM</b></li>
<li><b><a href="https://wa.me/2348188730307">SMS/WHATSAPP ME</a></b></li>
</ul>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- End Right sidebar -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- End Container fluid -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- End Page wrapper -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- footer -->
<!-- ============================================================== -->
<footer class="footer">
©
</footer>
<!-- ============================================================== -->
<!-- End footer -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- End Wrapper -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- All Jquery -->
<!-- ============================================================== -->
<script src="../../dist/assets/node_modules/jquery/jquery-3.2.1.min.js"></script>
<!-- Bootstrap popper Core JavaScript -->
<script src="../../dist/assets/node_modules/popper/popper.min.js"></script>
<script src="../../dist/assets/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- slimscrollbar scrollbar JavaScript -->
<script src="dist/js/perfect-scrollbar.jquery.min.js"></script>
<!--Wave Effects -->
<script src="dist/js/waves.js"></script>
<!--Menu sidebar -->
<script src="dist/js/sidebarmenu.js"></script>
<!--Custom JavaScript -->
<script src="dist/js/custom.min.js"></script>
<!-- ============================================================== -->
<!-- This page plugins -->
<!-- ============================================================== -->
<!--morris JavaScript -->
<script src="../../dist/assets/node_modules/raphael/raphael-min.js"></script>
<script src="../../dist/assets/node_modules/morrisjs/morris.min.js"></script>
<script src="../../dist/assets/node_modules/jquery-sparkline/jquery.sparkline.min.js"></script>
<!-- Popup message jquery -->
<script src="../../dist/assets/node_modules/toast-master/js/jquery.toast.js"></script>
<!-- Chart JS -->
<script src="dist/js/dashboard1.js"></script>
<script src="../../dist/assets/node_modules/toast-master/js/jquery.toast.js"></script>
<!-- This is data table -->
<script src="../../dist/assets/node_modules/datatables/jquery.dataTables.min.js"></script>
<!-- start - This is for export functionality only -->
<script src="https://cdn.datatables.net/buttons/1.2.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.2.2/js/buttons.flash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script>
<script src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js"></script>
<script src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.2.2/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.2.2/js/buttons.print.min.js"></script>
<!-- end - This is for export functionality only -->
<script>
$(document).ready(function() {
$('#myTable').DataTable();
$(document).ready(function() {
var table = $('#example').DataTable({
"columnDefs": [{
"visible": false,
"targets": 2
}],
"order": [
[2, 'asc']
],
"displayLength": 25,
"drawCallback": function(settings) {
var api = this.api();
var rows = api.rows({
page: 'current'
}).nodes();
var last = null;
api.column(2, {
page: 'current'
}).data().each(function(group, i) {
if (last !== group) {
$(rows).eq(i).before('<tr class="group"><td colspan="5">' + group + '</td></tr>');
last = group;
}
});
}
});
// Order by the grouping
$('#example tbody').on('click', 'tr.group', function() {
var currentOrder = table.order()[0];
if (currentOrder[0] === 2 && currentOrder[1] === 'asc') {
table.order([2, 'desc']).draw();
} else {
table.order([2, 'asc']).draw();
}
});
});
});
$('#example23').DataTable({
dom: 'Bfrtip',
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
</script>
</body>
</html>