 
<head>
    <meta charset="utf-8" />
    <title>Fancybox Example</title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>`  
    <script type="text/javascript" src="js/fancyBox/source/jquery.fancybox.pack.js"></script>  
    <link rel="stylesheet" href="js/fancyBox/source/jquery.fancybox.css" type="text/css" media="screen"/>
</head>

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






	$query=$conn->query("select  id,email,email2,buy_rate,sell_rate,tr_rate, wid_rate,welc_head, welc_msg,url,news_head,news_msg, title, ceo, phone, address,city,state,country, domain, domain_name, about_head, about_msg, service1, service2, service3,GHS,NGN,EUR,GBP,CAD,ZAR,USD, reg_clients,btc_sold, btc_bought, copyright,contact_email, developa from settings  ORDER BY id DESC LIMIT 1");
			while($row=$query->fetch()){
			
				$title=$row['title'];
				$id=$row['id'];
				$welc_head=$row['welc_head'];
			    $welc_msg=$row['welc_msg'];
				$url=$row['url'];
				$ceo=$row['ceo'];
				$domain=$row['domain'];
				$domain_name=$row['domain_name'];
				$phone=$row['phone'];
				$country=$row['country'];
				$state=$row['state'];
				$city=$row['city'];
				$email=$row['email'];
				$email2=$row['email2'];
				$copyright=$row['copyright'];
				$contact_email=$row['contact_email'];
					$developa=$row['developa'];
				
				
				$sell_rate=$row['sell_rate'];
				$buy_rate=$row['buy_rate'];
					$tr_rate=$row['tr_rate'];
						$wid_rate=$row['wid_rate'];
				
				
				$GHS=$row['GHS'];
				$USD=$row['USD'];
				$EUR=$row['EUR'];
				$NGN=$row['NGN'];
				$CAD=$row['CAD'];
				$GBP=$row['GBP'];
				$ZAR=$row['ZAR'];
				
				
					$reg_clients=$row['reg_clients'];
			$btc_sold=$row['btc_sold'];
			$btc_bought=$row['btc_bought'];
			
			
			 $news_head=$row['news_head'];
		   	$news_msg=$row['news_msg'];
				
				
				$about_head=$row['about_head'];
				$about_msg=$row['about_msg'];
				
					$service1=$row['service1'];
						$service2=$row['service2'];
							$service3=$row['service3'];	
							




?>
<?php }?>



        
        
 
 <?php
 
//   $id = $_GET['id'];
 
 if (isset($_POST['balance'])) {

    $balance = mysql_real_escape_string($_POST['balance']);
    $deposit = mysql_real_escape_string($_POST['deposit']);
    $confirm = mysql_real_escape_string($_POST['confirm']);
    $sql = mysql_query("UPDATE logins SET balance='$balance+$deposit', deposit='0.00', confirm='0' WHERE id='$log_id'") or die (mysql_error());
    $success="<div class='alert alert-success' style='margin-bottom:20px;'>Account Credited Successfully<meta http-equiv='refresh' content='5; url=' /></div>";
 }
 
 
// if (isset($_POST['confirm'])) {
//     $confirm = mysql_real_escape_string($_POST['confirm']);
//     $addresssql = mysql_query("UPDATE logins SET confirm=$confirm WHERE log_id='$id'");
//     echo mysql_error();
//     $success="<div plan='alert alert-success' style='margin-bottom:20px;'> Deposit confirm Successfully<meta http-equiv='refresh' content='0; url=' /></div>";
// } 



if (isset($_POST['name'])) {
   
    $status = mysql_real_escape_string($_POST['status']);
    //  $confirm = mysql_real_escape_string($_POST['confirm']);
     $email = mysql_real_escape_string($_POST['email']);
      $phone = mysql_real_escape_string($_POST['phone']);
       $name = mysql_real_escape_string($_POST['name']);
        $wallet_id = mysql_real_escape_string($_POST['wallet_id']);
       $tran_type = mysql_real_escape_string($_POST['tran_type']);
        $trans_id = mysql_real_escape_string($_POST['trans_id']);
    $method = mysql_real_escape_string($_POST['method']);
       $amount = mysql_real_escape_string($_POST['amount']);
        $note = mysql_real_escape_string($_POST['note']);
         $user = mysql_real_escape_string($_POST['user']);
         $date = mysql_real_escape_string($_POST['date']);

       	

      
      $cname = mysql_real_escape_string($_POST['cname']);
       $cemail = mysql_real_escape_string($_POST['cemail']);
        $caddress = mysql_real_escape_string($_POST['caddress']);
      $copyright = mysql_real_escape_string($_POST['copyright']);
      $cphone = mysql_real_escape_string($_POST['cphone']);
   
     
    // $addresssql = mysql_query("UPDATE logins SET balance='$balance+$deposit',  ibalance='$ibalance+$deposit', deposit='0.00', confirm='0', WHERE log_id=$id ");
    // echo mysql_error();
    
    
    
    
    $success="<div class='alert alert-success' style='margin-bottom:20px;'>Deposit Alert sent Successfully<meta http-equiv='refresh' content='5; url=' /></div>";
}



         





         {
         
   
  //   =============TO==USER=================  
       
       

   $cmail = $row['cemail'];
     
        
       if (isset($name))
       {
            $to = $email;
            $subject = 'DEPOSIT RECEIPT!!!';
       
        $body ='
    
 <table cellpadding="0" cellspacing="0" color="" style="color: rgb(116, 120, 126); font-family: -apple-system, BlinkMacSystemFont, ;" width="100%">
    <tbody>
        <tr>
            <td cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="100%">
                <table align="center" cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="570">
                    <tbody>
                        <tr>
                            <td color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
                                <table cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="100%">
                                    <tbody>
                                        <tr>
                                            <td color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
                                                <table cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="100%">
                                                    <tbody>
                                                        <tr>
                                                            <td color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
                                                                <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="font-size: 20px;"><strong>&nbsp;DEPOSIT RECEIPT!!!</strong></span></p>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                                
   
                                
                                <p>Welcome to '.$cname.'</p>
                                <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">Dear '.$name.', Your account has been credited with '.number_format($amount,2).'. Contact '.$cemail.' for any further Enquries or Visit '.$url.'.</p>
                                <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">Below is your Deposit informations.</p>
                              
                               
                                AMOUNT : NGN'.number_format($amount,2).'<br>
                                 DEPOSIT DATE : '.$date.'<br>

                                <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;"> Thank you for Choosing Us..</p>
                                <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">'.$cname.' Services</p>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
                <table align="center" cellpadding="0" cellspacing="0" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;" width="570">
                    <tbody>
                        <tr>
                            <td align="center" color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">
                                <p color="" style="font-family: -apple-system, BlinkMacSystemFont, ;">&copy;'.$copyright.'</p>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </tbody>
</table>
    
    
    <hr style="border-top: 1px solid #00B9CD;" >
    
    FOR MORE INFORMATION : <br> CONTACT CUSTOMER CARE SERVICE ('.$cemail.') or DIAL ('.$cphone.') TO SPEAK WITH ONE OF OUR AGENTS.<br> Visit '.$url.', Thank You.
       
       
      
      
       
     
      
      
       ';
      
        $header = "From:". $cemail."\r\n";
       
        $header .= "MIME-Version: 1.0\r\n";
       
        $header .= "Content-Type: text/html; charset=UTF-8\r\n";
       
        if(@mail($to, $subject, $body, $header)){
            
             $sender = "PlamsLoan";
                        $mobile = validate_phone_number($phone);
                        $msg = 'Dear '.$name.', Your account has been credited with '.number_format($amount,2).' . Contact '.$cemail.' for any further Enquries or Visit. Thank You.
                                ';
                        sendBulkSMS($sender,$mobile, $msg);


            
            
            
        }
}


}
?>     
   
 
 
 
 



<!doctype html>
<html>

<!-- Mirrored from www.sparksuite.com/open-source/invoice.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 16 Jan 2021 14:29:32 GMT -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $title?></title>

<link rel="icon" href="img/favicon.png" type="image/x-icon">

<style>
	body{
		font-family:'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
		text-align:center;
		color:#777;
	}
	
	body h1{
		font-weight:300;
		margin-bottom:0px;
		padding-bottom:0px;
		color:#000;
	}
	
	body h3{
		font-weight:300;
		margin-top:10px;
		margin-bottom:20px;
		font-style:italic;
		color:#555;
	}
	
	body a{
		color:#06F;
	}
	
	.invoice-box{
		max-width:800px;
		margin:auto;
		padding:30px;
		border:1px solid #eee;
		box-shadow:0 0 10px rgba(0, 0, 0, .15);
		font-size:16px;
		line-height:24px;
		font-family:'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
		color:#555;
	}
	
	.invoice-box table{
		width:100%;
		line-height:inherit;
		text-align:left;
	}
	
	.invoice-box table td{
		padding:5px;
		vertical-align:top;
	}
	
	.invoice-box table tr td:nth-child(2){
		text-align:right;
	}
	
	.invoice-box table tr.top table td{
		padding-bottom:20px;
	}
	
	.invoice-box table tr.top table td.title{
		font-size:45px;
		line-height:45px;
		color:#333;
	}
	
	.invoice-box table tr.information table td{
		padding-bottom:40px;
	}
	
	.invoice-box table tr.heading td{
		background:#eee;
		border-bottom:1px solid #ddd;
		font-weight:bold;
	}
	
	.invoice-box table tr.details td{
		padding-bottom:20px;
	}
	
	.invoice-box table tr.item td{
		border-bottom:1px solid #eee;
	}
	
	.invoice-box table tr.item.last td{
		border-bottom:none;
	}
	
	.invoice-box table tr.total td:nth-child(2){
		border-top:2px solid #eee;
		font-weight:bold;
	}
	
	@media only screen and (max-width: 600px) {
		.invoice-box table tr.top table td{
			width:100%;
			display:block;
			text-align:center;
		}
		
		.invoice-box table tr.information table td{
			width:100%;
			display:block;
			text-align:center;
		}
	}
	</style>
</head>
<body>
<br>
<div class="invoice-box">
<table cellpadding="0" cellspacing="0">
<tr class="top">
<td colspan="2">
<table>
    
<tr>
<td class="title">
<img src="img/LOGO.png" style="width:100%; max-width:300px;">
</td>


    
            <?php
            
     $g = $_GET['id'];
            
 $ordsql = "SELECT * from deposit WHERE log_id = '$g' ORDER BY id DESC "; 
$ordres = mysql_query($ordsql);
$ordrow = mysql_fetch_assoc($ordres);
  echo"<td>
 #Ref ID: " . $ordrow['trans_id'] . "<br>
Created: " . $ordrow['date'] . "]<br>


</td>





</tr>



</table>
</td>
</tr>



  <tr class='information'>
<td colspan='2'>
<table>
    
    
<tr>
<td>
" . $ordrow['name'] . "<br>
" . $ordrow['phone'] . "<br>
" . $ordrow['email'] . "<br>

</td>






<td>

<a class='fancybox'>
<img  src='https://plamscircuit.com/accounts/upload/deposit/cash/" . $ordrow['log_id'] . "front.jpg' alt='" . $ordrow['username'] . "'  width='100' height='100' ></a>

<br>
</td>
</tr>



</table>
</td>
</tr>

<tr><td>

   
</td></tr>


<tr class='name'>
<td>
Deposit Method
</td>
<td>";

 if($ordrow['tran_type'] == 1)
          {

echo" Card Deposit #";
}

 elseif($ordrow['tran_type'] == 2)
          {
     echo" Cash Deposit #";         
          }    
echo"</td>
</tr>";




echo"
<tr class='heading'>
<td>
Total Amount
</td>
<td>
NGN". number_format($ordrow['amount'],2)."  
</td>
</tr>";




echo"
</table>
</div>
 <hr>

  <form class='form-horizontal' method='post' enctype='multipart/form-data' action=''>

<input name='name' type='hidden' class='form-control' value='" . $ordrow['name'] . "' readonly>

<input name='email' type='hidden' class='form-control' value='" . $ordrow['email'] . "' readonly>

<input name='wallet_id' type='hidden' class='form-control' value='" . $ordrow['wallet_id'] . "' readonly>

 <input name='phone' type='hidden' class='form-control' value='" . $ordrow['phone'] . "' readonly>

 
 
 <input name='amount' type='hidden' class='form-control' value='".($ordrow['amount'])."' readonly>
	
	<input name='date' type='hidden' class='form-control' value='" . $ordrow['date'] . "' readonly>
	

	
 <input name='agent' type='hidden' class='form-control' value='ADMIN' readonly>";
?>

        <?php 
if(isset($success)){
    echo $success;
}
?>






<!--<body>-->
<!--<a class="fancybox" href="js/fancybox/demo/1_b.jpg">-->
<!--    <img src="lib/fancybox/demo/1_b.jpg" alt="" height="400px" width="400px"/>-->
<!--</a> -->
<!--</body>-->




         
         
               <?php
  $orderssql = "SELECT * from settings  ORDER BY id DESC";
    $ordersres = mysql_query($orderssql);
    $numrows = mysql_num_rows($ordersres);
   

 while($row = mysql_fetch_assoc($ordersres))
     {


echo"<input type='hidden' class='form-control' name='cname' id='details'  value='".$row['domain_name']."'>

<input type='hidden' class='form-control' name='cemail' id='details'  value='".$row['email2']."'>

<input type='hidden' class='form-control' name='cphone' id='details'  value='".$row['phone']."'>

<input type='hidden' class='form-control' name='caddress' id='details'  value='".$row['address']."'>

<input type='hidden' class='form-control' name='copyright' id='details'  value='".$row['copyright']."'>
      
      
       
";

}
?> 

 <div class="toolbar hidden-print">
        <div class="text-right">
         
         
            <button type="submit" name="action" class="btn btn-info"><i class="fa fa-reply"></i> SEND DEPOSIT ALERT</button>
            
            </form>
            
<!--    <php -->
<!--     $ordsql = "SELECT * from logins WHERE id = " . $id; -->
<!--$ordres = mysql_query($ordsql);-->
<!--$ordrow = mysql_fetch_assoc($ordres);       -->
            
            
<!--           echo" <form action='' class='reservation-form mb-0 bg-silver-deep p-30' method='post' >-->
<!--            <input type='hidden' class='form-control' name='balance' id='details' step='0.0001' value='".$ordrow[balance]."'/>-->
            
            
<!--            <input type='hidden' class='form-control' name='deposit' id='details' step='0.0001' value='".$ordrow[deposit]."'/>-->
            
<!--            <input type='hidden' class='form-control' name='confirm' id='details'  value='2'/>-->

<!--            <button type='submit' name='action' class='btn btn-success' id='btn-mlogin' >CONFIRM DEPOSIT</button>-->
<!--            </form>-->
<!--           <br>";-->
           
<!--           ?>-->
            
            <a href="list_customers.php" class="btn btn-info"><i class="fa fa-reply"></i> Back</a>
           
           
            
            <button onclick='myFunction()' class='btn btn-info'>
<i class='fa fa-print'>&nbsp;Print</i></button>
            
            <!--<button class="btn btn-info"><i class="fa fa-file-pdf-o"></i> Export as PDF</button>-->
        </div>
       
    </div>

<script data-cfasync="false" src="cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script></body>

<!-- Mirrored from www.sparksuite.com/open-source/invoice.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 16 Jan 2021 14:29:34 GMT -->
</html>



<script>
function myFunction() {
  window.print(); }
</script>





<script>
    $(document).ready(function() {
        $('.fancybox').fancybox();
    });
</script>