    
<!DOCTYPE html>
<?php 
session_start();
 include('link/databaseconnection.php');
 $flag=$_REQUEST['flag'];
  $session=$_REQUEST['flag2'];
 $sel2="select * from registration2 where id='$flag' and session='$session'  ";
	$res2=mysqli_query($conn,$sel2);
	
	$row2=mysqli_fetch_array($res2,MYSQLI_BOTH);
 
 $session=$row2['session'];
  $form_id=$row2['id'];
 $mobile=$row2['mobile'];
 //$fees=$row2['fees'];
 $num_sub=$row2['num_sub'];
 $fees='350';
 // echo $mobile;
 $sel10="select * from payment_fees_computer where  billing_tel='$mobile' and order_status='Success' and session='$session' and form_id='$form_id'";
	$res10=mysqli_query($conn,$sel10);
	
	$row10=mysqli_fetch_array($res10,MYSQLI_BOTH);
	$mob=$row10['billing_tel'];
	$or=$row10['order_id'];

$sel="select * from registration2 where id='$flag' and session='$session' and id='$form_id' order by id desc";
	$res=mysqli_query($conn,$sel);
	
	$row=mysqli_fetch_array($res,MYSQLI_BOTH);
	if($row)
	{
	   
?>
<html> 

<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<head>
<title>Welcome To SGN Govt. P. G. College</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<meta name="keywords" content="sant ganinath college muhammdabad mau,muhamdabad degree college mau,degree college muhammdabad,sant ganinath degree college ,mau degrre college" />
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" media="all">
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" media="all">
<link rel="stylesheet" href="css/owl.carousel.css" type="text/css" media="all">
<link href="css/owl.theme.css" rel="stylesheet">
<link rel="stylesheet" href="css/jquery-ui.css" type="text/css" media="all" />
<link type="text/css" rel="stylesheet" href="css/cm-overlay.css" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="all"/>
<link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link href="http://fonts.googleapis.com/css?family=Abel" rel="stylesheet">
<link href="http://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="../cdn.datatables.net/1.10.19/css/dataTables.bootstrap.min.css" rel="stylesheet" type="text/css">
</head>
<body>

<style>
	.marginBottom-0 {margin-bottom:0;}

.dropdown-submenu{position:relative;}
.dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;-webkit-border-radius:0 6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px 6px;}
.dropdown-submenu>a:after{display:block;content:" ";float:right;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#cccccc;margin-top:5px;margin-right:-10px;}
.dropdown-submenu:hover>a:after{border-left-color:#555;}
.dropdown-submenu.pull-left{float:none;}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px;}
input{background-color:black;color:white;font-weight:bold}
</style>
<!-- Header -->
	<!--<div class="header-top">
		<div class="container">
			<div class="bottom_header_left">
			<div class="w3_fr">
				<a href="#">Email Us</a>
				<a href="#contact" class="scroll">How to find us</a>
				
				</div>
			</div>
			<div class="bottom_header_right">
				<div class="bottom-social-icons">
					<a class="facebook" href="#">
						<span class="fa fa-facebook"></span>
					</a>
					<a class="twitter" href="#">
						<span class="fa fa-twitter"></span>
					</a>
					<a class="pinterest" href="#">
						<span class="fa fa-pinterest-p"></span>
					</a>
					<a class="linkedin" href="#">
						<span class="fa fa-linkedin"></span>
					</a>
				</div>
				<div class="head-search">
				<form action="#" method="post">
					<div class="formborder">
						<input type="text" placeholder="Search..." name="Search..." required="">
						<input type="submit" value="">
					</div>
				</form>
			</div>


				
				
				<div class="clearfix"> </div>
			</div>
			<div class="clearfix"> </div>
		</div>
	</div>-->




	<div class="header" style="background:url(images/ch13.jpg) repeat;">
		<div class="content white">
			<nav class="navbar navbar-default">
				<div class="container">
					<div class="navbar-header">
						
						
								<img src="images/name.png" width="100%">
						
					</div>
					
					<!--/.navbar-->
				</div>
			</nav>
		</div>
	</div>
	<div class="headerdown">
	<div class="container">
    
<?php include('link/menu.php');?>
        
	<div class="clearfix"></div>
	</div>
	</div>
<!-- /Header--> 
<!-- banner-->
<script>
	window.onload = function() {
		var d = new Date().getTime();
		document.getElementById("tid").value = d;
		var anyString=Math.floor(Math.random() * 1000000000);
		

		document.getElementById("order_id").value = anyString;
	};
</script>
<script>
	$(document).ready(function(){
	
	$("#myform").submit(function(e){
		
			
		$("#btn").prop("disabled",true);
	
	});
	
	
});
</script>
<!--/banner-->
   <div class="gallery" id="gallery">
         <div class="container">
         <h3>Computer Fees  </h3>
         <h5 style='color:red'>नीचे फीस जमा करने की बटन है कृपया उसपर क्लिक करे , यदि फीस पहले से जमा रहेगी तो रसीद प्रिंट हो जाएगी , यदि पहले से नही जमा रहेगी तो पेमेंट पर चले जायेंगे  | </h5>
            <div class="about-bottom  w3ls-team-info">
		             
            <form class="form-horizontal" method="post" name="customerData" id='myform' action="ccavRequestHandler_computer.php">
          <div class="col-md-12 w3ls_ar" style="background-color:#33b5e5; padding:30px;">
		
					<input type="hidden" name="tid" id="tid" readonly />
				
					<input type="hidden" name="merchant_id" value="266672"/>
	<?php
			
			$unique_id = hexdec(substr(uniqid(),0,20));
			$_SESSION['admin']=$unique_id;
			
				$_SESSION['amn']=$fees;
			?>
			<input type="hidden" name="order_id" value="<?php echo $unique_id;?>" />
			
					<input type="hidden" name="amount" value="<?php echo $_SESSION['amn'];?>" />
				
				
				<input type="hidden" name="currency" value="INR"/>
				
				<input type="hidden" name="redirect_url" value="https://sgngovtcollegemau.org/ccavResponseHandler_computer.php"/>
				
			 	
			 <input type="hidden" name="cancel_url" value="https://sgngovtcollegemau.org/ccavResponseHandler_computer.php"/>
			
		<input type="hidden" name="language" value="EN"/>
				
         	<div class="form-group">
    <label  class="col-sm-4 control-label">Student's Name.<span style="color:red">*</span></label>
    <div class="col-sm-4">
	
<input type="hidden" style='color:black' name='session' value='<?php echo $session?>' readonly />
      <input type="text" style='color:black' name='billing_name' value='<?php echo $row['name']?>' readonly />
      <input type="hidden" style='color:black' name='form_id' value='<?php echo $form_id ?>' readonly />
    </div>
    </div>
		<div class="form-group">
    <label  class="col-sm-4 control-label">Father's Name.<span style="color:red">*</span></label>
    <div class="col-sm-4">
	

      <input type="text" style='color:black'  readonly value='<?php echo $row['fname']?>' />
    </div>
    </div>
    <div class="form-group">
    <label  class="col-sm-4 control-label">Class<span style="color:red">*</span></label>
    <div class="col-sm-4">
	

      <input type="text" style='color:black'  readonly value='<?php echo $row['class']?>' />
    </div>
    </div>
		<div class="form-group">
    <label  class="col-sm-4 control-label">DOB.<span style="color:red">*</span></label>
    <div class="col-sm-4">
	

      <input type="text" style='color:black' readonly value='<?php echo $row['dob']?>' />
    </div>
    </div>
		<div class="form-group">
    <label  class="col-sm-4 control-label">Address.<span style="color:red">*</span></label>
    <div class="col-sm-4">
	

      <input type="text" style='color:black' name='billing_address'value='<?php echo $row['village']?>'  readonly />
    </div>
    </div>
		<div class="form-group">
    <label  class="col-sm-4 control-label">City.<span style="color:red">*</span></label>
    <div class="col-sm-4">
	

      <input type="text" style='color:black' name='billing_city' value='<?php echo $row['city']?>' readonly />
    </div>
    </div>
	<div class="form-group">
    <label  class="col-sm-4 control-label">State.<span style="color:red">*</span></label>
    <div class="col-sm-4">
	

      <input type="text" style='color:black' name='billing_state' value='<?php echo $row['state']?>' readonly />
    </div>
    </div>
	<div class="form-group">
    <label  class="col-sm-4 control-label">Pincode.<span style="color:red">*</span></label>
    <div class="col-sm-4">
	

      <input type="text" style='color:black' name='billing_zip' value='<?php echo $row['pincode']?>' readonly />
    </div>
    </div>
	<div class="form-group">
    <label  class="col-sm-4 control-label">Country.<span style="color:red">*</span></label>
    <div class="col-sm-4">
	

      <input type="text" style='color:black' name='billing_country' value='<?php echo 'India' ;?>' readonly />
    </div>
    </div>
	<div class="form-group">
    <label  class="col-sm-4 control-label">Mobile.<span style="color:red">*</span></label>
    <div class="col-sm-4">
	

      <input type="text" style='color:black' name='billing_tel' value='<?php echo $row['mobile']?>'  readonly>
    </div>
    </div>
	<div class="form-group">
    <label  class="col-sm-4 control-label">Email.<span style="color:red">*</span></label>
    <div class="col-sm-4">
	

      <input type="text" style='color:black' name='billing_email' value='<?php echo $row['email']?>' readonly />
    </div>
    </div>
    
    	<div class="form-group">
    <label  class="col-sm-4 control-label"> Fees.<span style="color:red">*</span></label>
    <div class="col-sm-4">
	

      <input type="text" style='color:black'  value='<?php echo $fees;?>' readonly />
    </div>
    </div>
	 <div class="col-sm-12">
      <center><button class='btn btn-primary' id='btn'>भुगतान करें</button></center>
    </div>
  </div>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.26/jquery.form-validator.min.js"></script>
<script>
  $.validate({
    modules : 'html5',
	modules : 'file'
  });
</script>
          </div>
        </form>
		  
            </div>
        </div>
	</div>

<!-- footer -->
	<?php include('link/footer.php');?>
	<!-- //footer -->
	
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>

<script src="../cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script src="../cdn.datatables.net/1.10.19/js/dataTables.bootstrap.min.js"></script>

<script  src="js/move-top.js"></script>
<script  src="js/easing.js"></script>
<script  src="js/SmoothScroll.min.js"></script>	
	<!-- for testimonials slider-js-file-->
			<script src="js/owl.carousel.js"></script>
	<!-- //for testimonials slider-js-file-->
		<script>
		$(document).ready(function() { 
		$("#owl-demo").owlCarousel({
 
			autoPlay: 3000, //Set AutoPlay to 3 seconds
			autoPlay:true,
			items : 3,
			itemsDesktop : [640,5],
			itemsDesktopSmall : [414,4]
		});
		}); 
</script>
<!-- for testimonials slider-js-script-->

 <!--script-->
<script src="js/easyResponsiveTabs.js" type="text/javascript"></script>
		    <script type="text/javascript">
			    $(document).ready(function () {
			        $('#horizontalTab').easyResponsiveTabs({
			            type: 'default', //Types: default, vertical, accordion           
			            width: 'auto', //auto or any width like 600px
			            fit: true   // 100% fit in a container
			        });
			    });
				
</script>
<!--script-->
<!-- Calendar -->
<script src="js/jquery-ui.js"></script>
	<script>
		$(function() {
		$( "#datepicker,#datepicker1" ).datepicker();
		});
	</script>
<!-- //Calendar -->
<!-- /gallery -->
    <script src="js/jquery.tools.min.js"></script>
    <script src="js/jquery.mobile.custom.min.js"></script>
    <script src="js/jquery.cm-overlay.js"></script>

	<!--multi level menu-->
    	<script>
			$(document).ready(function(){
			$('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) {
			  event.preventDefault(); 
			  event.stopPropagation(); 
			  $(this).parent().siblings().removeClass('open');
			  $(this).parent().toggleClass('open');
			});
		  });

		</script>
    <!--multi level menu end-->

    <script>
        $(document).ready(function () {
            $('.cm-overlay').cmOverlay();
        });
    </script>
    <!-- //gallery -->
<!-- start-smoth-scrolling -->
	<script type="text/javascript">
		$(document).ready(function() {
			/*
				var defaults = {
				containerID: 'toTop', // fading element id
				containerHoverID: 'toTopHover', // fading element hover id
				scrollSpeed: 1200,
				easingType: 'linear' 
				};
			*/
								
			$().UItoTop({ easingType: 'easeOutQuart' });
								
			});
	</script>
<!-- scrolling script -->
<script type="text/javascript">
	jQuery(document).ready(function($) {
		$(".scroll").click(function(event){		
			event.preventDefault();
			$('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
		});
	});
</script> 
<!-- //scrolling script -->
<!--//start-smoth-scrolling -->

</body>


</html> 
<?php
}
else
	
	{
		echo "<script>alert('Invalid  ');window.location.href='index.php';</script>";
	}
	


?>
