    <?php
session_start();
$mobile=$_REQUEST['flag'];


include("link/databaseconnection.php");
$sel10="select * from payment_fees where  billing_tel='$mobile' and order_status='Success'";
	$res10=mysqli_query($conn,$sel10);
	
	$row10=mysqli_fetch_array($res10,MYSQLI_BOTH);
	$mob=$row10['billing_tel'];
	if($row10)
	
		{
			header( 'Location: slip_adm.php?flag='.$mob);
			//echo "<script>alert('Your Registration Fees Already Paid');window.location.href='slip.php?flag=$mob;</script>";
		}
		else
	{
$sel="select * from  registration2 where mobile ='$mobile' order by id desc";
$res=mysqli_query($conn,$sel);
$row=mysqli_fetch_array($res,MYSQLI_BOTH);
$session=$row['session'];
$c_type=$row['c_type'];
$form_id=$row['id'];
if($row)
{
//echo"$app1";
?>

<!DOCTYPE html>
<html> 


<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<head>
<title>Welcome To SGN Govt. P. G. College Muhammdabad Gohana Mau</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<meta name="keywords" content="Curative a Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
<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;}
</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>-->
	<script>

	$(document).ready(function(){
	//alert('ok');
	$("#myform").submit(function(e){
		var app1=$("#app1").val();
		e.preventDefault();	
		$("#btn").prop("disabled",true);
		$.ajax({
					url:"code/registrationcode.php?flag=5",
					type:"POST",
					data:new FormData(this),
					contentType:false,
					processData:false,
					success:function(res){
						alert(res);
						if(res=="Submit")
						{
						window.location.href="shulk.php?flag="+app1;
						$("#myform").trigger("reset");
						}
					},
					error:function(){
						alert("error");
					}
				
				});
	});
	
	
});

	</script>
	<script>
	window.onload = function() {
		var d = new Date().getTime();
		document.getElementById("tid").value = d;
		
	};
</script>
	<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-->

<!--/banner-->
   <div class="gallery" id="gallery">
         <div class="container">
         <h3>एडमिशन शुल्क भुगतान - </h3>
            <div class="about-bottom  w3ls-team-info">
		             
            <form class="form-horizontal"  method="post" name="customerData"  action="ccavRequestHandler.php">
          <div class="col-md-12 w3ls_ar" style="background-color:#FFFFFF; padding:30px;">
         	<div class="form-group">
    <label  class="col-sm-4 control-label">Student Name<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="text" style='color:black' class="form-control" id="app1" value='<?php echo $row['name']?>' name="name" readonly />
    </div>
	
  </div>
  <div class="form-group">
    <label  class="col-sm-4 control-label">Father Name<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="text" style='color:black' class="form-control"  value='<?php echo $row['fname']?>' name="father" readonly />
    </div>
	
  </div>
  <div class="form-group">
    <label  class="col-sm-4 control-label">DOB<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="text" style='color:black' class="form-control"  value='<?php echo $row['dob']?>' name="dob" readonly />
    </div>
	
  </div>
  <div class="form-group">
    <label  class="col-sm-4 control-label">Course<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="text" style='color:black' class="form-control"  value='<?php echo $row['class']?>'  readonly />
    </div>
	
  </div>
  <div class="form-group">
    <label  class="col-sm-4 control-label">Subject For PHD<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="text" style='color:black' class="form-control"  value='<?php echo $row['choose_subject2']?>'  readonly />
       <input type="hidden" style='color:black' class="form-control" name='session' value='<?php echo $session ;?>'  readonly />
       <input type="hidden" style='color:black' class="form-control" name='form_id' value='<?php echo $form_id ;?>'  readonly />
    </div>
	
  </div>
  <div class="form-group">
    <label  class="col-sm-4 control-label">Amount<span style="color:red">*</span></label>
    <div class="col-sm-8">
	<?php 
	$t=$row['c_type'];
	if($c_type=='Regular')
	{
	    $amount='2000';
	}
	else
	{
	    $amount='10000';
	}
		
			
			$unique_id = hexdec(substr(uniqid(),0,20));
			$_SESSION['admin']=$unique_id;
			
			
			
	
	;?>
	<input type="hidden" name="tid" id="tid" readonly />
				
					<input type="hidden" name="merchant_id" value="266672"/>
		<input type="hidden" name="order_id" value="<?php echo $unique_id;?>" />
			
					
				
				
				<input type="hidden" name="currency" value="INR"/>
				 <input type="number" style='color:black' class="form-control"  min='2000' value='<?php echo $amount ;?>' name="amount" readonly />
				
				<input type="hidden" name="redirect_url" value="https://sgngovtcollegemau.org/ccavResponseHandler.php"/>
				
			 	
			 <input type="hidden" name="cancel_url" value="https://sgngovtcollegemau.org/ccavResponseHandler.php"/>
			
		<input type="hidden" name="language" value="EN"/>
     
    <input type="hidden" style='color:black' name='billing_name' value='<?php echo $row['name']?>' readonly />
    <input type="hidden" style='color:black' name='billing_address'value='<?php echo $row['village']?>'  readonly />
    <input type="hidden" style='color:black' name='billing_city' value='<?php echo $row['city']?>' readonly />
    <input type="hidden" style='color:black' name='billing_state' value='<?php echo $row['state']?>' readonly />
     <input type="hidden" style='color:black' name='billing_zip' value='<?php echo $row['pincode']?>' readonly />
    <input type="hidden" style='color:black' name='billing_country' value='<?php echo 'India' ;?>' readonly />
     <input type="hidden" style='color:black' name='billing_tel' value='<?php echo $row['mobile']?>'  readonly>
    <input type="hidden" style='color:black' name='billing_email' value='<?php echo $row['email']?>' readonly />
    

   <br/><br/>
	
	<button class='btn btn-primary'>Pay</button>
	</div>
	
  </div>
          </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>

<!-- Mirrored from kngpgc.ac.in/vissionmission.php by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 05 Jul 2020 06:48:30 GMT -->
</html> 
<?php
	}
	else
	{echo "<script>alert('Incorrect Data');window.location.href='login_success_student_adm_phd.php'</script>";}
	}

?>