<?php
include("../code.php");
authorize();
$name=$_SESSION['admin_name'];
$bcode=$_SESSION['branchcode'];

if(isset($_GET['teller']))
$teller=$_GET['teller'];
if(isset($_GET['date']))
$date=$_GET['date'];
if(isset($_GET['time']))
$time=$_GET['time'];
$datetime=date('Y-m-d H:i:s');

$sql = "SELECT * FROM invoice where BranchCode='$bcode' and date='$date' and ticket='$teller' and time='$time'";
	$rst = mysqli_query($link,$sql);
	$row_just = mysqli_fetch_assoc($rst);
	$cusname=$row_just['customer'];
	$mode=$row_just['mode'];
	$ticket=$row_just['ticket'];
	$imei=$row_just['imei'];
	$num=mysqli_num_rows($rst);


function gettotamnt($bcode,$date,$teller,$link,$time){
		$result=mysqli_query($link,"SELECT * FROM invoice where BranchCode='$bcode' and date='$date' and ticket='$teller' and time='$time'");
		$tot=0;
		while($reply = mysqli_fetch_array($result)){
			$ids=$reply['total'];
			$tot+=$ids;
		}
		return $tot;
	}

function getamntpaid($bcode,$date,$teller,$link){
		$result=mysqli_query($link,"SELECT * FROM payment where BranchCode='$bcode' and date='$date' and transid='$teller'");
		$row_just = mysqli_fetch_assoc($result);
		$tot=$row_just['amount'];
		return $tot;
		
		
	}

?>

<!DOCTYPE html>
<!-- saved from url=(0037)https://my.mobilevtu.com.ng/index.php -->
<html lang="en" class="js flexbox flexboxlegacy canvas canvastext webgl no-touch geolocation postmessage websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers no-applicationcache svg inlinesvg smil svgclippaths"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Phone Ethics | Receipt ::</title>

    <!-- Bootstrap -->
    <link href="./Mobilevtu.com_files/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="./Mobilevtu.com_files/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="./Mobilevtu.com_files/font-awesome.min(1).css">
    <!-- NProgress -->
    <link href="./Mobilevtu.com_files/nprogress.css" rel="stylesheet">
    <!-- iCheck -->
    <link href="./Mobilevtu.com_files/green.css" rel="stylesheet">
	
    <!-- bootstrap-progressbar -->
    <link href="./Mobilevtu.com_files/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
    <!-- JQVMap -->
    <link href="./Mobilevtu.com_files/jqvmap.min.css" rel="stylesheet">
    
    <link href="./Mobilevtu.com_files/featherlight.min.css" rel="stylesheet">
    <link href="./Mobilevtu.com_files/select2.min.css" rel="stylesheet">

    <!-- bootstrap-daterangepicker -->
    <link href="./Mobilevtu.com_files/daterangepicker.css" rel="stylesheet">
	<link href="./Mobilevtu.com_files/sweetalert.css" rel="stylesheet" type="text/css"> 
    
	<link rel="stylesheet" href="./Mobilevtu.com_files/leaflet.css">
	<script type="text/javascript" async="" src="./Mobilevtu.com_files/recaptcha__en.js.download" crossorigin="anonymous" integrity="sha384-cIN2qskPjCnyJJulsKDG+cD5Wi3buGp1YQMnWMCuYOOtMHvU/xRFNjwulcPURQ69"></script><script src="./Mobilevtu.com_files/leaflet.js.download"></script>
    <!-- Custom Theme Style -->
    <link href="./Mobilevtu.com_files/custom.min.css" rel="stylesheet">
    <meta name="theme-color" content="#036">
    <meta name="msapplication-TileColor" content="#036">   
    
    <link rel="shortcut icon" type="image/png" href="https://my.mobilevtu.com.ng/files/favicon.png">
  <style>
.se-pre-con {
	position: fixed;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	z-index: 9999;
	background: url(files/Preloader_3.gif) center no-repeat #fff;
	background-size: 120px 120px !important;
}
</style><link id="load-css-button.min.css" rel="stylesheet" type="text/css" href="./Mobilevtu.com_files/button.min.css"></head>



	
       <!-- Popup for view entry -->
<div id="single_view" style="display: block; overflow-x: hidden; width: 99.99%; height: 99.99%;  background: rgba(0,0,0,0.5);">
    	 <div class="row"><br><br>
           <div class="col-md-1 col-sm-1 col-xs-12"> </div>
           <div class="col-md-10 col-sm-10 col-xs-12">
               <div class="x_panel">
                 <div class="x_content">
                 	<h3>Invoice #<?php echo $ticket; ?></h3>
                     <div class="ln_solid"></div>
				  	  <!-- Invoice Items view -->
                        <div class="row" id="printable" style="margin-bottom: 30px;">
                        	<div class="col-xs-12">
	                          

<style>

.clearfix:after { content: ""; display: table;  clear: both;}

a { color: #0087C3; text-decoration: none;}bodies { position: relative; width: 794px;    min-height: 1123px;   margin: 0 auto;   color: #555555;  background: #FFFFFF;   font-family: Arial, sans-serif;   font-size: 14px;   font-family: SourceSansPro;}

	header {  padding: 10px 0;  margin-bottom: 20px;  border-bottom: 1px solid #AAAAAA;}

	#logo {  float: left;  margin-top: 8px;}

	#logo img {  height: 60px;}

	#signature {   margin-top: 8px;margin-bottom: 20px;}

	#signature img {  height: 60px;}

	#company {  float: right;  text-align: right; }

	#details {  margin-bottom: 50px;}

	#client {  padding-left: 6px;  border-left: 6px solid #0087C3;  float: left;}

	#client .to {  color: #777777;}

	h2.name {  font-size: 1.4em;  font-weight: normal;  margin: 0;}

	#invoice {  float: right;  text-align: right;}

	#invoice h2 {  color: #0087C3;  font-size: 1.8em;  line-height: 1em;  font-weight: normal;  margin: 0  0 5px 0;}

	#invoice h1 {  color: #000;  font-size: 2.2em;  line-height: 1em;  font-weight: bold;  margin: 0  0 10px 0;}

	#invoice .date {  font-size: 1.1em;  color: #777777;}table {  width: 100%;  border-collapse: collapse;  border-spacing: 0;  margin-bottom: 20px;}

table.inv th, table.inv td {  padding: 10px;  background: #EEEEEE;  text-align: center;  border-bottom: 1px solid #FFFFFF;}

table.inv th {  white-space: nowrap;          font-weight: normal;}

table.inv td {  text-align: right;}

table.inv td h3{  color: #57B223;  font-size: 1.2em;  font-weight: normal;  margin: 0 0 0.2em 0;}

table.inv .no {  color: #FFFFFF;  font-size: 1.2em;  background: rgba(0,51,102,1);}

table.inv .desc {  text-align: left;}

table.inv .unit {  background: #DDDDDD;}

table.inv .qty {}

table.inv .total {  background: rgba(0,51,102,1);  color: #FFFFFF;}

table.inv td.unit,table td.qty,table td.total {  font-size: 1.2em;}

table.inv tbody tr:last-child td {  border: none;}

table.inv tfoot td {  padding: 10px 20px;  background: #FFFFFF;  border-bottom: none;  font-size: 1.2em;  white-space: nowrap;   border-top: 1px solid #AAAAAA; }

table.inv tfoot tr:first-child td {  border-top: none; }

table.inv tfoot tr:last-child td {  color: rgba(0,51,102,1); font-weight:bold; font-size: 1.4em;  border-top: 1px solid rgba(0,51,102,1); }

table.inv tfoot tr td:first-child {  border: none;}

#thanks{  font-size: 1.5em;  margin-bottom: 10px;}

#notices{  padding-left: 6px;  border-left: 6px solid #0087C3;  }

#notices .notice {  font-size: 1.2em;}

</style>

<bodies>

	<header class="clearfix">

      <div id="logo">

        <img src="./Mobilevtu.com_files/ynet.png">

      </div>

      <div id="company">

        <h2 class="name">Phone Ethics Nig Ltd</h2>

        <div>100, Folagbade Street, Ijebu-Ode Ogun State Nigeria.</div>

        <div>08079667880,08055150575</div>

        <div><a href="mailto:care@phoneethics.com.ng">care@phoneethics.com.ng</a></div>

      </div>

      </header></bodies></div>

    

    <main>

      <div id="details" class="clearfix">

        <div id="client">

          <div class="to">INVOICE TO:</div><h2 class="name"><?php echo $cusname; ?></h2>
          <div class="address">IMEI: <?php echo $imei; ?> </div>
          <div class="email"></div>
		  <div class="email">faccomputers@yahoo.com</div></div>

        <div id="invoice">

          <h2>Invoice <?php echo $ticket; ?></h2>

          <div class="date" style="margin-bottom:10px;">Due Date: 21 Nov, 2020</div>
          
         <div class="date" style="margin-bottom:10px;">Due Time: <?php echo $time;  ?></div>

          <h1 style="color:green">PAID</h1>

		  <h2 style="color:#000;margin-top:10px;">Payment Mode: <?php echo $mode;  ?></h2>

        </div>

      </div>

      <table border="0" cellspacing="0" cellpadding="0" class="inv">

        <thead>

          <tr>

            <th class="no"><strong>#</strong></th>

            <th class="desc"><strong>DESCRIPTION</strong></th>

            <th class="unit"><strong>UNIT PRICE</strong></th>

            <th class="qty"><strong>QUANTITY</strong></th>

            <th class="total"><strong>TOTAL</strong></th>

          </tr>

        </thead>

        <tbody>
        <?php $num = 1; do { ?>
        <tr>

            <td class="no"><?php echo $num; ?></td>

            <td class="desc"><?php echo $row_just['name']; ?></td>

            <td class="unit">₦<?php echo $row_just['price']; ?></td>

            <td class="qty"><?php echo $row_just['quantity']; ?></td>

            <td class="total">₦<?php echo $row_just['total']; ?>.00</td>

          </tr>
           <?php $num++; } while ($row_just = mysqli_fetch_assoc($rst)); ?>
          </tbody>
 <tfoot>

          <tr>

            <td colspan="2"></td>

            <td colspan="2">SUBTOTAL</td>

            <td>₦<?php echo gettotamnt($bcode,$date,$teller,$link,$time);  ?>.00</td>

          </tr><tr>

            <td colspan="2"></td>

            <td colspan="2">SALES ATTENDANT </td>

            <td> <?php echo $name; ?></td>

          </tr> <tr>

            <td colspan="2"></td>

            <td colspan="2">GRAND TOTAL</td>

            <td>₦<?php echo gettotamnt($bcode,$date,$teller,$link,$time);  ?>.00</td>
            
            

          </tr>
          
		  </tfoot>
		  </tfoot></table></main>
          
            <div class="to">Goods bought in good condition are not returnable nor cast refundable.</div>
                     <div class="to">Test and Confirm your stock before leaving the sales point.</div>
                     <div class="to">Warranty implies return to service centre for technical attention.</div>
                    <div class="to">Accessories are not covered by warranty.</div>
                    <h2><center> Thanks For Your Patronage</center></h2>

 <bodies>                          	</bodies></div>
                        </div>	
                      <!--footer -->  
                      <div class="form-group">
                          <div class="col-xs-12">
                             <button type="button" onclick="$(&#39;#single_view&#39;).hide(&#39;slow&#39;);" class="btn btn-danger"><i class="fa fa-times"></i> Close View</button>
                             <button type="button" onclick="window.print()" class="btn btn-default"><i class="fa fa-print"></i> Print Invoice</button>
                           </div>
                      </div>
                  </div>
               </div>                  
           </div>
           <div class="col-md-1 col-sm-1 col-xs-12"> </div>
       </div>            	
</div>

  


<!-- Popup for data -->

   <div id="buy_data" style="display:none; overflow-x: hidden; width: 99.99%; height: 99.99%; z-index: 99999; position: fixed; top: 0; left: 0; background: rgba(0,0,0,0.5);">

    	 <div class="row"><br><br>

           <div class="col-lg-3 col-md-2 col-sm-1 col-xs-12"> </div>

           <div class="col-lg-6 col-md-8 col-sm-10 col-xs-12">

           	    <div class="popup_closer">

                  <button type="button" onclick="$(&#39;#buy_data&#39;).fadeOut(&#39;slow&#39;);" class="pull-right btn btn-danger"><i class="fa  fa-times"></i></button>

               </div>

               <div class="x_panel">

                 <div class="x_content">

                 	<h3>Buy Data</h3>

                     <div class="ln_solid"></div>

                        <form method="post" id="dpayform" action="https://my.mobilevtu.com.ng/index.php" data-parsley-validate="" class="form-horizontal form-label-left">							

                       	<input type="hidden" id="dhash" value="ba895bb38ae495515851321c00d5647f:ZWjIH8vUDVaJWinRjHwSMGIGf1XFMSWs">

                        <input type="hidden" id="demail" value="faccomputers@yahoo.com">

                        <input type="hidden" id="damount" value="0.00">

                        <input type="hidden" id="dvalue_amount2" value="">

                        <div class="form-group doperator_logo" style="display:none">

                        	<center><img id="doperator_logo" src="./dashboard_files/ajax-loader.gif" style="width:70px;border-radius:5px;"></center>

                        </div>

                        

                        <div class="form-group">

                            <label for="dnumber" class="control-label col-md-3 col-sm-3 col-xs-12">Mobile Number</label>

                            <div class="col-md-8 col-sm-8 col-xs-12">

                                <input id="dnumber" required="required" placeholder="E.g: 2348031234567" class="form-control col-md-7 col-xs-12" type="number" value="">

                            </div>

                        </div>

                        

	                    <div class="form-group dshow_operator" style="display:none">

                        	<label class="control-label col-md-3 col-sm-3 col-xs-12">Select Operator</label>

                            <div class="col-md-8 col-sm-8 col-xs-12">

                                <select id="doperator" style="width:100%;" required="" class="select2a form-control col-md-7 col-xs-12">

								   <option disabled="" selected="" value="">Choose Network Operator</option>

                                   
										<option value="MTN">MTN Nigeria </option>

                                     
										<option value="Glo">Glo Mobile Nigeria </option>

                                     
										<option value="9mobile">9Mobile Nigeria </option>

                                     
										<option value="Airtel">Airtel Nigeria </option>

                                        

                               </select>

                            </div>

                        </div> 

                        

                        <div class="form-group show_when_op" style="display:none">

                            <label class="control-label col-md-3 col-sm-3 col-xs-12">Select Data Package</label>

                            <div class="col-md-8 col-sm-8 col-xs-12">

                                <select id="dvalue_amount" style="width:100%;" required="" class="select2a form-control col-md-7 col-xs-12">

								   <option disabled="" selected="" value="">Choose a Package</option>

                               </select>

                            </div>

                        </div>

                        

                        <div class="form-group">

                            <label for="damount2" class="control-label col-md-3 col-sm-3 col-xs-12">You Pay</label>

                            <div class="col-md-8 col-sm-8 col-xs-12">

                                <span id="damount2" class="form-control col-md-7 col-xs-12" style="border-color:#eee;">₦0.00</span>

                            </div>

                        </div>

                      

                    <div class="ln_solid"></div>

                    <div class="form-group">

                      <div class="col-md-9 col-sm-9 col-xs-12 col-md-offset-3">

                         <button type="button" id="dpaystack" onclick="payDataPaystack()" class="acting btn btn-primary"><i class="fa fa-cc-mastercard"></i> Pay Online</button>

                         <button type="button" id="dwalletpay" onclick="payDataLocal()" class="acting btn btn-pup"><i class="fa  fa-money"></i> Use My Wallet</button>

                       </div>

                     </div>

                    </form> 

                 </div>

               </div>                  

           </div>

           <div class="col-lg-3 col-md-8 col-sm-1 col-xs-12"> </div>

       </div>            	

   </div>



      </div>

    </div>

    <!-- jQuery -->

    <script src="./dashboard_files/jquery.min.js.download"></script>

    <!-- Bootstrap -->

    <script src="./dashboard_files/bootstrap.min.js.download"></script>

    <!-- FastClick -->

    <script src="./dashboard_files/fastclick.js.download"></script>

    <!-- NProgress -->

    <script src="./dashboard_files/nprogress.js.download"></script>

    <!-- Chart.js -->

    <script src="./dashboard_files/Chart.min.js.download"></script>

    <!-- gauge.js -->

    <script src="./dashboard_files/gauge.min.js.download"></script>

    <!-- bootstrap-progressbar -->

    <script src="./dashboard_files/bootstrap-progressbar.min.js.download"></script>

    <!-- iCheck -->

    <script src="./dashboard_files/icheck.min.js.download"></script>

    <!-- Skycons -->

    <script src="./dashboard_files/skycons.js.download"></script>

    <!-- Flot -->

    <script src="./dashboard_files/jquery.flot.js.download"></script>

    <script src="./dashboard_files/jquery.flot.pie.js.download"></script>

    <script src="./dashboard_files/jquery.flot.time.js.download"></script>

    <script src="./dashboard_files/jquery.flot.stack.js.download"></script>

    <script src="./dashboard_files/jquery.flot.resize.js.download"></script>

    <!-- Flot plugins -->

    <script src="./dashboard_files/jquery.flot.orderBars.js.download"></script>

    <script src="./dashboard_files/jquery.flot.spline.min.js.download"></script>

    <script src="./dashboard_files/curvedLines.js.download"></script>

    <!-- DateJS -->

    <script src="./dashboard_files/date.js.download"></script>

    <!-- JQVMap -->

    <script src="./dashboard_files/jquery.vmap.js.download"></script>

    <script src="./dashboard_files/jquery.vmap.world.js.download"></script>

    <script src="./dashboard_files/jquery.vmap.sampledata.js.download"></script>

    <!-- bootstrap-daterangepicker -->

    <script src="./dashboard_files/moment.min.js.download"></script>

    <script src="./dashboard_files/daterangepicker.js.download"></script>

    <!-- morris.js -->

    <script src="./dashboard_files/raphael.min.js.download"></script>

    <script src="./dashboard_files/morris.min.js.download"></script>

    <script src="./dashboard_files/sweetalert.min.js.download"></script>



    <script src="./dashboard_files/featherlight.min.js.download"></script>

    <!-- Custom Theme Scripts -->

    <script src="./dashboard_files/custom.js.download"></script>

	<script src="./dashboard_files/tinymce.min.js.download"></script>

    <script src="./dashboard_files/api.js.download"></script>

    <script src="./dashboard_files/select2.min.js.download"></script>

	<script src="./dashboard_files/modernizr.js.download"></script>

	 <script src="./dashboard_files/inline.js.download"></script> 

    <script src="./dashboard_files/flwpbf-inline.js.download"></script>

    <script src="./dashboard_files/google.js.download"></script>

<script>

$(document).ready(function() {

	

});

		

		

/* Initiate Functions - */

	$(document).ready(function() {				

		init_sparklines();

		init_flot_chart();

		init_sidebar();

		init_wysiwyg();

		init_InputMask();

		init_JQVmap();

		init_cropper();

		init_knob();

		init_IonRangeSlider();

		init_ColorPicker();

		init_TagsInput();

		init_parsley();

		init_SmartWizard();

		init_EasyPieChart();

		init_charts();

		init_echarts();

		init_morris_charts();

		init_skycons();

		init_select2();

		init_validator();

		init_DataTables();

		init_chart_doughnut();

		init_gauge();

		init_PNotify();

		init_starrr();

		init_calendar();

		init_compose();

		init_CustomNotification();

		init_autosize();

		init_autocomplete();		

	});	

</script>

	

        

  



</div><iframe frameborder="0" allowtransparency="true" id="GggF2" name="paystack-checkout-background-GggF2" style="z-index: 2147483647; background: rgba(0, 0, 0, 0.75); border: 0px none transparent; overflow: hidden; margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; transition: opacity 0.3s ease 0s; visibility: hidden; display: none;" src="./dashboard_files/saved_resource.html"></iframe><iframe frameborder="0" allowtransparency="true" allowpaymentrequest="true" id="9bOl3" name="paystack-checkout-9bOl3" src="./dashboard_files/popup.html" style="z-index: 2147483647; background: transparent; border: 0px none transparent; overflow: hidden; margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; visibility: hidden; display: none;"></iframe></body></html>