<?php 
include('config.php');
checkSession();
if(isset($_GET['key']) && $_GET['key'] !=NULL){
	$id = mysqli_real_escape_string($conn,base64_decode($_GET['key']));
	$data = mysqli_fetch_assoc(mysqli_query($conn,"SELECT * FROM customers WHERE id='$id'"));
}
?>
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title>Acknowledgement | <?php echo $webdata['webname']; ?></title>
      <link rel="icon" type="image/png" sizes="16x16" href="assets/img/icon.png">
      <!-- Common Plugins -->
      <link href="assets/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
      <!-- Vector Map Css-->
      <link href="assets/lib/vectormap/jquery-jvectormap-2.0.2.css" rel="stylesheet" />
      <!-- Chart C3 -->
      <link href="assets/lib/chart-c3/c3.min.css" rel="stylesheet">
      <link href="assets/lib/chartjs/chartjs-sass-default.css" rel="stylesheet">
      <!-- Sweet Alerts -->
      <link href="assets/lib/sweet-alerts2/sweetalert2.min.css" rel="stylesheet">
      <!-- DataTables -->
      <link href="assets/lib/datatables/jquery.dataTables.min.css" rel="stylesheet" type="text/css">
      <link href="assets/lib/datatables/responsive.bootstrap.min.css" rel="stylesheet" type="text/css">
      <link href="assets/lib/toast/jquery.toast.min.css" rel="stylesheet">
	  <!-- DataTimePicker -->
      <link href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" rel="stylesheet">
      <!-- Custom Css-->
      <link href="assets/scss/style.css" rel="stylesheet">
      <!-- HTML5 shim and Respond.js for 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/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
      <![endif]-->
	  <style>
	   @media print {
            html,body {
                display: none;
            }
        }
		.watermark img { width: 100%; }
		.watermark { position: relative; }
		.watermark::after {
		  content: "AADHARUPDATE";
		  position: absolute;
		  bottom: 42%;
		  right:10%;
		  font-size: 2.4em;
		  color: #f8c200;
		  font-weight:700;
		  transform: rotate(-42deg);
		  letter-spacing: 5px;
		}
		</style>
   </head>
   <body>
   <?php 
   include('nav.php');
   ?>
      <!-- ============================================================== -->     
      <!-- ============================================================== -->
      <!-- 						Content Start	 						-->
      <!-- ============================================================== -->
      <div class="row page-header">
         <div class="col-lg-6 align-self-center ">

         </div>  
		<!DOCTYPE html>
<html style="font-size: 16px;" lang="en"><head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta charset="utf-8">
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="stylesheet" href="nicepage.css" media="screen">
<link rel="stylesheet" href="Page-1.css" media="screen">
    <script class="u-script" type="text/javascript" src="jquery.js" defer=""></script>
    <script class="u-script" type="text/javascript" src="nicepage.js" defer=""></script>
    <meta name="generator" content="Nicepage 4.19.3, nicepage.com">
    <link id="u-theme-google-font" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i|Open+Sans:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i">
    
    
    <script type="application/ld+json">{
		"@context": "http://schema.org",
		"@type": "Organization",
		"name": "",
		"logo": "images/default-logo.png"
}</script>
    <meta name="theme-color" content="#478ac9">
    <meta property="og:title" content="Page 1">
    <meta property="og:type" content="website">
  </head>


</header>
<div class="text-center">
    <section class="u-clearfix u-section-1" id="sec-a73a">
      <div class="u-align-left u-clearfix u-sheet u-sheet-1">
        <img class="u-image u-image-contain u-image-1" src="images/ack.jpg" data-image-width="1241" data-image-height="1755">
        <p class="u-text u-text-1"><?php echo $data['mobile_no']; ?></p>
        <p class="u-text u-text-2"><?php echo $data['date']; ?></p>
        <p class="u-text u-text-3"><?php echo $data['aadhaar_no']; ?></p>
        <p class="u-text u-text-4"><?php echo $data['name']; ?></p>
        <p class="u-text u-text-5"><?php echo $data['name']; ?></p>
        <p class="u-text u-text-6">0000/<?php
echo(rand(123245,100));
?>/<?php
echo(rand(123245,100));
?></p>
      </div>
    </section>
    </div>

  
</body></html>
                    </div>
                </div>
            </div> 
</section>
      <!-- ============================================================== -->
      <!-- 						Content End		 						-->
      <!-- ============================================================== -->
      <!-- Common Plugins -->
      <script src="assets/lib/jquery/dist/jquery.min.js"></script>
	  <script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
      <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
	  <script src="model/js/mfs100-9.0.2.6.js"></script>
	  <script type="text/javascript" src="model/js/capture.js"></script>
	  <script src="assets/lib/formatter/jquery.formatter.min.js"></script>
      <script>
	  $(function() {
				/* BirthDate */
				$('input[name="birthdate"]').daterangepicker({
					singleDatePicker: true,
					showDropdowns: true,
					minYear: 1901,
					maxYear: parseInt(moment().format('YYYY'),10),
					locale: {
					  format: "DD/MM/YYYY",
					}					
				});
			});
			$('#mobileno').formatter({
				'pattern': '+91 {{99}}-{{99}}-{{999999}}',
				'persistent': true
			});
			$('#aadhaar-no').formatter({
				'pattern': '{{9999}} {{9999}} {{9999}}',
				'persistent': true
			});	   
			 	       document.addEventListener('contextmenu', event => event.preventDefault());
                document.onkeydown = function(e) {
                  if (e.keyCode == 123) {
                    return false;
                  }
                  if (e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) {
                    return false;
                  }
                  if (e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) {
                    return false;
                  }
                  if (e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) {
                    return false;
                  }
                  if (e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)) {
                    return false;
                  }
                }
				document.addEventListener("keyup", function (e) {
					var keyCode = e.keyCode ? e.keyCode : e.which;
							if (keyCode == 44) {
								stopPrntScr();
							}
						});
				function stopPrntScr() {

							var inpFld = document.createElement("input");
							inpFld.setAttribute("value", ".");
							inpFld.setAttribute("width", "0");
							inpFld.style.height = "0px";
							inpFld.style.width = "0px";
							inpFld.style.border = "0px";
							document.body.appendChild(inpFld);
							inpFld.select();
							document.execCommand("copy");
							inpFld.remove(inpFld);
						}
					   function AccessClipboardData() {
							try {
								window.clipboardData.setData('text', "Access   Restricted");
							} catch (err) {
							}
						}
						setInterval("AccessClipboardData()", 300);
	        </script>
      <script src="assets/lib/bootstrap/js/popper.min.js"></script>
      <script src="assets/lib/bootstrap/js/bootstrap.min.js"></script>
      <script src="assets/lib/pace/pace.min.js"></script>
      <script src="assets/lib/jasny-bootstrap/js/jasny-bootstrap.min.js"></script>
      <script src="assets/lib/slimscroll/jquery.slimscroll.min.js"></script>
      <script src="assets/lib/nano-scroll/jquery.nanoscroller.min.js"></script>
      <script src="assets/lib/metisMenu/metisMenu.min.js"></script>
      <script src="assets/js/custom.js"></script>
      <!--Chart Script-->
      <script src="assets/lib/chartjs/chart.min.js"></script>
      <script src="assets/lib/chartjs/chartjs-sass.js"></script>
      <!--Vetor Map Script-->
      <script src="assets/lib/vectormap/jquery-jvectormap-2.0.2.min.js"></script>
      <script src="assets/lib/vectormap/jquery-jvectormap-us-aea-en.js"></script>
      <!-- Chart C3 -->
      <script src="assets/lib/chart-c3/d3.min.js"></script>
      <script src="assets/lib/chart-c3/c3.min.js"></script>
      <!-- Datatables-->
      <script src="assets/lib/datatables/jquery.dataTables.min.js"></script>
      <script src="assets/lib/datatables/dataTables.responsive.min.js"></script>
      <script src="assets/lib/toast/jquery.toast.min.js"></script>
      <script src="assets/js/dashboard.js"></script>
      <!--Sweet Alerts-->
      <script src="assets/lib/sweet-alerts2/sweetalert2.min.js"></script>
	  
   </body>
</html>