    <?php
		session_start();
	include("link/databaseconnection.php");
	$id=$_REQUEST['flag'];
	$app=$_REQUEST['flag2'];
	if(!$id)
{
	header('check_student.php');
}
	error_reporting(0);
	?>
	
<!DOCTYPE html>
<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>
input{color:black;}
	.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');
	$("#check").change(function(){
		var c=$("#city").val();
		var v=$("#village").val();
		var po=$("#postoffice").val();
		var d=$("#dist").val();
		var s=$("#state").val();
		var m=$("#mobile").val();
		var pi=$("#pincode").val();
		if($(this).prop("checked")==true)
		{
			$("#city1").val(c);
			$("#village1").val(v);
			$("#postoffice1").val(po);
			$("#dist1").val(d);
			$("#state1").val(s);
			$("#mobile1").val(m);
			$("#pincode1").val(pi);
		}
		else
		{
			$("#city1").val("");
			$("#village1").val("");
			$("#postoffice1").val("");
			$("#dist1").val("");
			$("#state1").val("");
			$("#mobile1").val("");
			$("#pincode1").val("");
		}
		
	});
	
	
	
	
});
$(document).ready(function(){
	$("#chek").change(function(){
		
		if($(this).prop("checked")==true)
		{
			$("#show").css("display","none");
		    $("#btn").prop("disabled",false);
		
		}
		else
		{
			$("#show").css("display","inline-block");
			$("#btn").prop("disabled",true);
		
		}
	
	});

		
	});
	$(document).ready(function(){
		$("#omark").keyup(function(){
			
			var o=$("#omark").val();
			var t=$("#tmark").val();
			var result1=o/t*100;
			var result=parseInt(result1);
			$("#per").val(result);
		});
		
		
		
	});
	$(document).ready(function(){
		$("#omark_12").keyup(function(){
			
			var o1=$("#omark_12").val();
			var t1=$("#tmark_12").val();
			var result11=o1/t1*100;
			var result12=parseInt(result11);
			$("#per_12").val(result12);
		});
		
		
		
	});
	$(document).ready(function(){
		$("#omark_ba1").keyup(function(){
			
			var oba1=$("#omark_ba1").val();
			var tba1=$("#tmark_ba1").val();
			var resultba11=oba1/tba1*100;
			var resultba1=parseInt(resultba11);
			$("#per_ba1").val(resultba1);
		});
		
		
		
	});
	$(document).ready(function(){
		$("#omark_ba2").keyup(function(){
			
			var oba2=$("#omark_ba2").val();
			var tba2=$("#tmark_ba2").val();
			var resultba12=oba2/tba2*100;
			var resultba2=parseInt(resultba12);
			$("#per_ba2").val(resultba2);
		});
		
		
		
	});
	$(document).ready(function(){
	
	$("#myform").submit(function(e){
		var app1=$("#app1").val();
		e.preventDefault();	
		$("#btn").prop("disabled",true);
		$.ajax({
					url:"code/registrationcode.php?flag=501",
					type:"POST",
					data:new FormData(this),
					contentType:false,
					processData:false,
					success:function(res){
						alert(res);
						if(res=="Submit")
						{
						window.location.href="registration_slip_area_adm.php?flag="+app1;
						$("#myform").trigger("reset");
						}
						
						
					},
					error:function(){
						alert("error");
					}
				
				});
	});
	
	
});
$(document).ready(function(){
		
			//alert('ok');
			var classc=$("#course").val();
		$.ajax({
			url:"code/registrationcode.php?flag=49494920",
			type:"POST",
			data: {class12:classc},
			success:function(res){
				//alert(res);
				$("#sel12").html(res);
				
			},
			error:function(){
				alert("error");
			}
		});
		
	});
	
	$(document).ready(function(){
		var class1=$("#class").val();
		$("#sel12").change(function(){
			//alert('ok');
			var subject1 =$(this).val();
				var alot =$('#alot').val();
		$.ajax({
			url:"code/registrationcode.php?flag=49494930",
			type:"POST",
			data: {class12:subject1},
			success:function(res){
		//	alert(res);
			$("#sel122").html(res);
				
			},
			error:function(){
				alert("error");
			}
		});
		});
	});
	
	

		$(document).ready(function(){
		$("#sel122").change(function(){
			//alert('ok');
			var subject2 =$('#sel122').val();
			var subject1 =$('#sel12').val();
			 
		$.ajax({
			url:"code/registrationcode.php?flag=444",
			type:"POST",
			data: {class12:subject1,class123:subject2},
			
			success:function(res){
				//alert(res);
				$("#sel1223").html(res);
				
			},
			error:function(){
				alert("error");
			}
		});
		});
	});
		$(document).ready(function(){
		$("#sel1267").change(function(){
			//alert('ok');
			var subject2 =$('#sel1267').val();
			var subject1 =$('#sel1267').val();
			var form =$('#form').val();
			 
		$.ajax({
			url:"code/registrationcode.php?flag=44467",
			type:"POST",
			data: {class12:subject1,class123:subject2,form:form},
			
			success:function(res){
			//	alert(res);
				$("#sel12289").html(res);
				
			},
			error:function(){
				alert("error");
			}
		});
		});
	});
	
	$(document).ready(function(){
		
		
        var class1=$("#class").val();
		if(class1=='B.Sc II')
		{
			//alert(class1);
			$("#sel1223").attr("disabled", "true");
		}
		if(class1=='BA II')
		{
			//alert(class1);
			$("#sel1223").attr("disabled", "true");
			
		}
		if(class1=='M.A I')
		{
			//alert(class1);
			$("#sel1223").attr("disabled", "true");
			$("#sel122").attr("disabled", "true");
		}
		if(class1=='M.Sc I')
		{
			//alert(class1);
			$("#sel1223").attr("disabled", "true");
			$("#sel122").attr("disabled", "true");
		}
		
		
});
	</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');

$sel="select * from registration2 where id='$id' and alot_number!='' and application='$app' order by id desc ";
	$res=mysqli_query($conn,$sel);
	
	$row=mysqli_fetch_array($res,MYSQLI_BOTH);
if($row)
{
?>
        
	<div class="clearfix"></div>
	</div>
	</div>
<!-- /Header--> 
<!-- banner-->

<!--/banner-->
   <div class="gallery" id="gallery">
         <div class="container">
        <h3>ऑनलाइन आवेदन फॉर्म  (द्वितीय /तृतीय  वर्ष  )</h3>
       <marquee behavior="alternate" style='font-weight:bold;color:red'>विद्यार्थियों को सूचित किया जाता है कि , अपना विषय , कटेगरी , जेंडर इत्यादि  सही भरे  , गलत  होने पर विद्यार्थी  खुद जिम्मेदार होंगे  |</marquee>
            <div class="about-bottom  w3ls-team-info">
            
            
          <div class="col-md-12 w3ls_ar" style='background-color:#33b5e5;color:black;'><br/>
      <form class="form-horizontal" id='myform'>
	 <!--phli row open--->
	  <div class="col-sm-6">
	   <div class="form-group">
    <label  class="col-sm-4 control-label">Previous SR No<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="alot" value='<?php echo $row['alot_number']?>'  name="record" required style="color:black" readonly />
    </div>
  </div>
  <br/> 
   <div class="form-group">
    <label  class="col-sm-4 control-label">Previous Form No<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="text" class="form-control"  value='<?php echo $row['id']?>'  name="form_no"  id='form' required style="color:black" readonly />
    </div>
  </div>
   <div class="form-group">
    <label  class="col-sm-4 control-label">Enrollment No<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="name"   value='<?php echo $row['enrollment_no']?>' name="enrollment_no" required style="color:black"  />
    </div>
  </div>
  <br/> 
   <div class="form-group">
    <label  class="col-sm-4 control-label">Roll No.<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="name"   value='<?php echo $row['roll_no']?>'name="roll_no" required style="color:black"  />
    </div>
  </div>
  <br/> 
  <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" class="form-control" id="name" value='<?php echo $row['name']?>' placeholder="Student Name" name="name" required style="color:black" data-validation="custom" data-validation-regexp="^([a-zA-Z\s]+)$" data-validation-error-msg="Use Only Alphabet" readonly />
    </div>
  </div>
  <br/>
	  <div class="form-group">
    <label  class="col-sm-4 control-label">Mother Name<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="mother" value='<?php echo $row['mname']?>' name="mother" required data-validation="custom" data-validation-regexp="^([a-zA-Z\s]+)$" data-validation-error-msg="Use Only Alphabet" >
    </div>
  </div>
	    <br/>
	 
	   <div class="form-group">
  
    <label  class="col-sm-4 control-label">Gender<span style="color:red">*</span></label>
    <div class="col-sm-8">
	
	<select class="form-control"  name="gender" required data-validation="required">
	<option value="">---select---</option>
	<option <?php if($row['gender']=='Male'){echo 'selected';};?>>Male</option>
	<option <?php if($row['gender']=='Female'){echo 'Selected';};?>>Female</option>
	
	</select>
	</div>
	</div>
	  <br/>
	   <div class="form-group">

    <label  class="col-sm-4 control-label">Category<span style="color:red">*</span></label>
    <div class="col-sm-8">
	
	<select class="form-control"  name="category" required data-validation="required">
	<option value="">---select---</option>
	<option <?php if($row['category']=='GEN'){echo 'selected';};?>>GEN</option>
	<option <?php if($row['category']=='OBC'){echo 'selected';};?>>OBC</option>
	<option <?php if($row['category']=='ST'){echo 'selected';};?>>ST</option>
	<option <?php if($row['category']=='SC'){echo 'selected';};?>>SC</option>
	<option <?php if($row['category']=='OTHER'){echo 'selected';};?>>OTHER</option>
	
	</select>
	</div>
	</div>
	<br/>
	 <div class="form-group">

    <label  class="col-sm-4 control-label">Sub Category<span style="color:red">*</span></label>
    <div class="col-sm-8">
	 <input type="text" class="form-control"  placeholder="Sub Category" value='<?php echo $row['sub_category']?>' name="sub_category" required data-validation="custom" data-validation-regexp="^([a-zA-Z\s]+)$" data-validation-error-msg="Use Only Alphabet">
	 <input type="hidden" class="form-control"  value='<?php echo $row['class']?>' id='class'>
	
	</div>
	</div><br/>
	<div class="form-group">

    <label  class="col-sm-4 control-label">Minority<span style="color:red">*</span></label>
    <div class="col-sm-8">
	
	<select class="form-control"  name="minority" required>
	<option value="">---select---</option>
	<option <?php if($row['minority']=='No'){echo 'selected';};?>>No</option>
	<option <?php if($row['MINORITY']=='Yes'){echo 'selected';};?>>Yes</option>
	
	
	</select>
	</div>
	</div><br/>
	 <div class="form-group">
   <label  class="col-sm-4 control-label">Choose Course<span style="color:red">*</span></label>
   <div class="col-sm-8">
   
	 <select class="form-control"  name="course"  required >
	
	<option><?php if($row['class']=='BA I') {echo 'BA II';}if($row['class']=='BA II') {echo 'BA III';}if($row['class']=='B.Sc I') {echo 'B.Sc II';}if($row['class']=='B.Sc II') {echo 'B.Sc III';}if($row['class']=='MA I') {echo 'M.A II';}if($row['class']=='M.Sc I') {echo 'M.Sc II';}?></option>


	
	
	</select>
	  </div>
	  </div>
	    <?php
		if($row['class']=='B.Sc II')
	{
	$c='3';
	}
	if($row['class']=='BA II')
	{
	$c='1';
	}
	if( $row['class']=='B.Sc II' or $row['class']=='BA II')
	{
	
	?>
	<input type='hidden' value='<?php echo $c?>' id='course'>
	  <div class="form-group" >
  
    <label  class="col-sm-4 control-label">Major First <span style="color:red">*</span></label>
    <div class="col-sm-8" >
	
	<select class="form-control" id="sel1267" name="choose_subject1" required >
<option value="">---select---</option>
	<option><?php echo $row['choose_subject1']?></option>
	<option><?php echo $row['choose_subject2']?></option>
	<option><?php echo $row['choose_subject3']?></option>
	
	
	
	
	</select>
		<span style='color:red'>कृपया अपनी विषय सही चुने |</span>

	</div>
	 
	</div>
	<div class="form-group" >
  
    <label  class="col-sm-4 control-label">Major Second <span style="color:red">*</span></label>
    <div class="col-sm-8" >
	<select class="form-control" id="sel12289" name="choose_subject2" required >
	<option value="">---select---</option>
	</select>
	
	</div>
	
	 
	</div>
	<?php
	
	}
	
	?>
	  
  <?php
	if($row['class']=='B.Sc I' or $row['class']=='BA I' or $row['class']=='MA I' or $row['class']=='M.Sc I')
	
	{
	
	?>
	 <div class="form-group" >
  
    <label  class="col-sm-4 control-label">Major First <span style="color:red">*</span></label>
    <div class="col-sm-8" >
	
	<select class="form-control"  id="sel1267" name="choose_subject1" required >

		<option>---select---</option>
	<option><?php echo $row['choose_subject1']?></option>
	<option><?php echo $row['choose_subject2']?></option>
	<option><?php echo $row['choose_subject3']?></option>
	
	
	
	</select>
	
	</div>
	
	 
	</div>
	 
	
	<?php
	}
	
	?>
	<?php
	if($row['class']=='B.Sc I' or $row['class']=='BA I')
	{
	
	?>
	
	  <div class="form-group" >
  
    <label  class="col-sm-4 control-label">Major Second <span style="color:red">*</span></label>
    <div class="col-sm-8" >
	
	<select class="form-control"   id="sel12289"  name="choose_subject2" required >

	
	<option>---select---</option>
	<option><?php echo $row['choose_subject1']?></option>
	<option><?php echo $row['choose_subject2']?></option>
	<option><?php echo $row['choose_subject3']?></option>
	
	
	</select>
	
	</div>
	
	 
	</div>
	
	<?php
	}
	
	?>
	<?php
	if($row['class']=='B.Sc I' or $row['class']=='BA I' )
	{
	
	?>
	 <div class="form-group" id='remove'>
  
    <label  class="col-sm-4 control-label">Major Third <span style="color:red">*</span></label>
    <div class="col-sm-8" >
	<select class="form-control"  name="choose_subject3"  >

	<option>No</option>
	
	
	</select>
	
	</div>
	
	 
	</div>
	<?php
	
	}
	
	?>
	<?php
	if($row['class']=='B.Sc I' or $row['class']=='BA I' or $row['class']=='MA I' or $row['class']=='M.Sc I')
	{
	
	?>
	<div class="form-group" >
  
    <label  class="col-sm-4 control-label">Minor/Elective Paper<span style="color:red">*</span></label>
    <div class="col-sm-8" >
	<select class="form-control"   name="minor"  required>
		<?php if($row['minor']==''){?>
		<option>No</option>
		<?php } else{?>
		<option><?php echo $row['minor']?></option>
		<?php }?>


	
	</select>
	
	</div>
	
	 
	</div>
	
	<?php }?>
	<?php
	if($row['class']=='B.Sc I' or $row['class']=='BA I' )
	{
	
	?>
	 <div class="form-group" id='remove'>
  
    <label  class="col-sm-4 control-label">Skill Development Sem III <span style="color:red">*</span></label>
    <div class="col-sm-8" >
	<select class="form-control"  name="skill"  >

	<option>YOGA</option>
	
	
	</select>
	
	</div>
	
	 
	</div>
	 <div class="form-group" id='remove'>
  
    <label  class="col-sm-4 control-label">Co-Curi. Activities Sem III <span style="color:red">*</span></label>
    <div class="col-sm-8" >
	<select class="form-control"  name="curricular"  >

	<option>HUMAN VALUES AND ENVIRONMENT STUDIES</option>
	
	
	</select>
	
	</div>
	
	 
	</div>
	 <div class="form-group" id='remove'>
  
    <label  class="col-sm-4 control-label">Skill Development Sem IV  <span style="color:red">*</span></label>
    <div class="col-sm-8" >
	<select class="form-control"  name="skill_2"  >

	<option>HELTH CARE AND GENERAL DUTY ASSISTANT</option>
	
	
	</select>
	
	</div>
	
	 
	</div>
	 <div class="form-group" id='remove'>
  
    <label  class="col-sm-4 control-label">Co-Curi. Activities Sem IV  <span style="color:red">*</span></label>
    <div class="col-sm-8" >
	<select class="form-control"  name="curricular_2"  >

	<option>PHYSICAL EDUCATION AND YOGA</option>
	
	
	</select>
	
	</div>
	
	 
	</div>
	<?php }?>
	<?php
	if($row['class']=='B.Sc II' or $row['class']=='BA II' )
	{
	
	?>
	 <div class="form-group" id='remove' style='display:none'>
  
    <label  class="col-sm-4 control-label">Skill Development  <span style="color:red">*</span></label>
    <div class="col-sm-8" >
	<select class="form-control"  name="skill"  >

	<option></option>
	
	
	</select>
	
	</div>
	
	 
	</div>
	 <div class="form-group" id='remove'>
  
    <label  class="col-sm-4 control-label">Co-Curi. Activities Sem V <span style="color:red">*</span></label>
    <div class="col-sm-8" >
	<select class="form-control"  name="curricular"  >

	<option>ANALYTICAL ABILITY & DIGITAL AWARENESS</option>
	
	
	</select>
	
	</div>
	
	 
	</div>
	 <div class="form-group" id='remove' style='display:none'>
  
    <label  class="col-sm-4 control-label">Skill Development Sem VI  <span style="color:red">*</span></label>
    <div class="col-sm-8" >
	<select class="form-control"  name="skill_2"  >

	<option></option>
	
	
	</select>
	
	</div>
	
	 
	</div>
	 <div class="form-group" id='remove'>
  
    <label  class="col-sm-4 control-label">Co-Curi. Activities Sem VI  <span style="color:red">*</span></label>
    <div class="col-sm-8" >
	<select class="form-control"  name="curricular_2"  >

	<option>COMMUNICATION SKILL & PERSONALITY DEVELOPMENT</option>
	
	
	</select>
	
	</div>
	
	 
	</div>
	<?php
	
	}
	
	?>
	   <div class="form-group">
   <label  class="col-sm-4 control-label">Staff Quota<span style="color:red"></span></label>
   <div class="col-sm-8">
   
	 <select class="form-control"  name="quota" id='quota' required >
	
	<option>No</option>
	<option>Yes</option>
	
	
	</select>
	  </div>
	  </div><br/>
	 <div class="form-group">
    <label  class="col-sm-4 control-label">Email Id<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="email" class="form-control" id="" data-validation="email" value='<?php echo $row['email'] ;?>' placeholder="Email Id" name="email"  required />
    </div>
  </div>
	    <br/>
	  <div class="form-group">
    <label  class="col-sm-4 control-label">Annual Income<span style="color:red"></span></label>
    <div class="col-sm-8">
      <input type="number" class="form-control" id="" placeholder="Annual Income" value='<?php echo $row['income'] ;?>' name="income"  >
    </div>
  </div>
	    <br/>
	  	  <div class="form-group">
    <label  class="col-sm-4 control-label">Nationality<span style="color:red"></span></label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="" value='Indian' placeholder="Nationality" value='<?php echo $row['nationality'] ;?>' name="nationality"  >
    </div>
  </div>
	    <br/>
	  </div>
	  <!--phli row close--->
	  <!--dusri row open--->
	  <div class="col-sm-6">
	  
  
	  <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" class="form-control" id="father" value='<?php echo $row['fname']?>' style='color:black'placeholder="Father Name" name="father" required data-validation="custom" data-validation-regexp="^([a-zA-Z\s]+)$" data-validation-error-msg="Use Only Alphabet" readonly >
    </div>
  </div>
    <br/>
  <div class="form-group">
    <label  class="col-sm-4 control-label">Date Of Birth<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="dob" data-validation="date" value='<?php echo $row['dob'] ;?>' required data-validation-format="dd/mm/yyyy" data-validation-error-msg="Use Only dd/mm/yyyy format" placeholder='DD/MM/YYYY' name="dob"><span></span>
    </div>
  </div>
    <br/>
  <div class="form-group">
 
    <label  class="col-sm-4 control-label">Session <span style="color:red">*</span></label>
    <div class="col-sm-8">
	<?php
		
	$sel21="select * from session order by id desc   ";
	$res21=mysqli_query($conn,$sel21);
	$row21=mysqli_fetch_array($res21,MYSQLI_BOTH);
		?>
	<select class="form-control"  name="session" data-validation="required">
	
	<option><?php echo $row21['session']?></option>
	
	</select>
	</div>
	</div>
	<br/>
  <div class="form-group">
    <label  class="col-sm-4 control-label">Aadhaar No.<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="father" placeholder="Adhar Number" value='<?php echo $row['adhar'] ;?>' required name="adhar" data-validation="custom" data-validation-regexp="^([0-9\s]+)$" data-validation-error-msg="Use Only Number" maxlength='12'>
    </div>
  </div><br/>
   <div class="form-group">
   <label  class="col-sm-4 control-label">NCC Certificate<span style="color:red"></span></label>
   <div class="col-sm-8">
   
	 <select class="form-control"  name="ncc" id='ncc' required >
	
	<option <?php if($row['ncc']=='No'){echo 'selected';};?> >No</option>
	<option <?php if($row['ncc']=='A'){echo 'selected';};?> >A</option>
	<option <?php if($row['ncc']=='B'){echo 'selected';};?>>B</option>
	<option <?php if($row['ncc']=='C'){echo 'selected';};?>>C</option>
	
	
	</select>
	  </div>
	  </div><br/>
	   <div class="form-group">
   <label  class="col-sm-4 control-label">NSS Certificate<span style="color:red"></span></label>
   <div class="col-sm-8">
   
	 <select class="form-control"  name="nss" id='nss' required >
	
	<option <?php if($row['nss']=='No'){echo 'selected';};?> >No</option>
	<option <?php if($row['nss']=='Yes'){echo 'selected';};?>>Yes</option>
	
	
	</select>
	  </div>
	  </div><br/>
	   <div class="form-group">
   <label  class="col-sm-4 control-label">Sport Certificate<span style="color:red"></span></label>
   <div class="col-sm-8">
   
	 <select class="form-control"  name="game" id='game' required >
	
	<option <?php if($row['game']=='No'){echo 'selected';};?>>No</option>
	<option <?php if($row['game']=='>District Level'){echo 'selected';};?>>District Level</option>
	<option  <?php if($row['game']=='>State Level'){echo 'selected';};?>>State Level</option>
	
	
	</select>
	  </div>
	  </div><br/>
	  <div class="form-group">
   <label  class="col-sm-4 control-label">Rovers/Rangers Certificate<span style="color:red"></span></label>
   <div class="col-sm-8">
   
	 <select class="form-control"  name="rovers"  required >
	
	<option <?php if($row['rovers']=='>No'){echo 'selected';};?>>No</option>
	<option <?php if($row['rovers']=='>Yes'){echo 'selected';};?>>Yes</option>
	
	
	</select>
	  </div>
	  </div><br/>
	   <div class="form-group">
   <label  class="col-sm-4 control-label">Handicapped Certificate<span style="color:red"></span></label>
   <div class="col-sm-8">
   
	 <select class="form-control"  name="handicapped"  required >
	
	<option>No</option>
	<option>Yes</option>
	
	
	</select>
	  </div>
	  </div><br/>
	  	  <div class="form-group">
    <label  class="col-sm-4 control-label">Religion<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="father" placeholder="Religion" value='<?php echo $row['religion'];?>' name="religion" data-validation="custom" data-validation-regexp="^([a-zA-Z\s]+)$" data-validation-error-msg="Use Only Alphabet">
    </div>
  </div>
    <br/>
	
     <div class="form-group">
   <label  class="col-sm-4 control-label">Marrital Status<span style="color:red"></span></label>
   <div class="col-sm-8">
   
	 <select class="form-control"  name="marrital"  required >
	
	<option>Unmarried</option>
	<option>Married</option>
	
	
	</select>
	  </div>
	  </div><br/>
	  <!--dusri row
	  <!--dusri row close--->
	  
	<input type="hidden" value="<?php echo strtoupper(substr(md5(uniqid()),0,30));?>" id='app1' name="app1">
			
			</div>
			
	 
	  <!-- one div-subject open--->
	  <!-- one div-subject close--->
	  
	  <!-- second div-subject open--->

	 
	
	  
	  
	  <div class="row">
	 
	
	  
	  </div>
	  <!-- second div-subject close--->
	  <input type="hidden" value="<?php echo rand(10000,99999);?>">
	  
	  <div class="col-sm-6">
	  <h4 class="text-center" style="color:black">Corresponding Address</h4>
	  <hr/>
  <div class="form-group">
    <label  class="col-sm-4 control-label">City<span style="color:red"></span></label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="city"  value='<?php echo $row['city']?>'placeholder="city" name="city">
    </div>
  </div>
	  <div class="form-group">
    <label  class="col-sm-4 control-label">Village<span style="color:red">*</span></label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="village" value='<?php echo $row['village']?>' placeholder="Village" name="village" data-validation="custom" data-validation-regexp="^([a-zA-Z\s]+)$" data-validation-error-msg="Use Only Alphabet">
    </div>
  </div>
  <div class="form-group">
    <label  class="col-sm-4 control-label">Post Office<span style="color:red"></span></label>
    <div class="col-sm-8">
     <input type="text" class="form-control" id="postoffice" value='<?php echo $row['postoffice']?>' placeholder="Post Office" name="postoffice">
    </div>
  </div>
	  
	   <div class="form-group">
    <label  class="col-sm-4 control-label">Dist<span style="color:red">*</span></label>
    <div class="col-sm-8">
     <input type="text" class="form-control" id="dist" placeholder="Dist" name="dist" value='<?php echo $row['dist']?>'data-validation="custom" data-validation-regexp="^([a-zA-Z\s]+)$" data-validation-error-msg="Use Only Alphabet">
    </div>
  </div>
  <div class="form-group">
    <label  class="col-sm-4 control-label">State<span style="color:red">*</span></label>
    <div class="col-sm-8">
     <input type="text" class="form-control" id="state" placeholder="State" value='UTTAR PRADESH' name="state" >
    </div>
  </div>
  <div class="form-group">
    <label  class="col-sm-4 control-label">Mobile<span style="color:red"  >*</span></label>
    <div class="col-sm-8">
     <input type="text" class="form-control" id="mobile" data-validation="number"required="required" value='<?php echo $row['mobile']?>' maxlength="10" name="mobile" placeholder='Mobile' data-validation-error-msg="Only Use Number" />
    </div>
  </div>
  <div class="form-group">
    <label  class="col-sm-4 control-label">Pincode</label>
    <div class="col-sm-8">
     <input type="text" class="form-control" id="pincode" placeholder="Pincode" name="pincode"  value='<?php echo $row['pincode']?>' data-validation="number"required="required" maxlength="7"  data-validation-error-msg="Only Use Number" required>
    </div>
  </div>
  
	 <script>
  function readURL(input) {
  if (input.files && input.files[0]) {
    var reader = new FileReader();
    
    reader.onload = function(e) {
      $('#blah').attr('src', e.target.result);
    }
    
    reader.readAsDataURL(input.files[0]);
  }
}

$("#sign").change(function() {
  readURL(this);
});</script>
   <div class="form-group">
    <label  class="col-sm-4 control-label">Picture<span style="color:red">*</span></label>
    <div class="col-sm-2">
     <img id="blah" alt="Student Picture" width="100" height="100" />

<input type="file" name="picture" required   data-validation="mime size" data-validation-allowing="jpg, png, jpeg"  data-validation-max-size="50kb" data-validation-error-msg-size="You can not upload Picture larger than 50kb" onchange="document.getElementById('blah').src = window.URL.createObjectURL(this.files[0])"><span style='color:red'>Max Size 50KB</span>
    </div>
  </div>
	   
	  </div>
	  
	   <div class="col-sm-6">
	  <h4 class="text-center" style="color:black">Personally Address</h4>
	  <hr/>
  <div class="form-group">
    <label  class="col-sm-4 control-label"><span><input type="checkbox" id="check">&nbsp;Same address&emsp;</span>City</label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="city1" placeholder="city" value='<?php echo $row['city1']?>' name="city1">
    </div>
  </div>
	  <div class="form-group">
    <label  class="col-sm-4 control-label">Village</label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="village1" placeholder="Village" value='<?php echo $row['village1']?>' name="village1">
    </div>
  </div>
  <div class="form-group">
    <label  class="col-sm-4 control-label">Post Office</label>
    <div class="col-sm-8">
     <input type="text" class="form-control" id="postoffice1" placeholder="Post Office" value='<?php echo $row['postoffice1']?>' name="postoffice1">
    </div>
  </div>
	  
	   <div class="form-group">
    <label  class="col-sm-4 control-label">Dist</label>
    <div class="col-sm-8">
     <input type="text" class="form-control" id="dist1" placeholder="Dist" value='<?php echo $row['dist1']?>' name="dist1">
    </div>
  </div>
  <div class="form-group">
    <label  class="col-sm-4 control-label">State</label>
    <div class="col-sm-8">
     <input type="text" class="form-control" id="state1" placeholder="State" value='<?php echo $row['state1']?>' name="state1">
    </div>
  </div>
  <div class="form-group">
    <label  class="col-sm-4 control-label">Mobile</label>
    <div class="col-sm-8">
     <input type="number" class="form-control" id="mobile1" placeholder="mobile" value='<?php echo $row['mobile1']?>' name="mobile1" >
    </div>
  </div>
  <div class="form-group">
    <label  class="col-sm-4 control-label">Pincode</label>
    <div class="col-sm-8">
     <input type="number" class="form-control" id="pincode1" placeholder="Pincode" value='<?php echo $row['pincode']?>' name="pincode1">
    </div>
  </div>
  
  
	 <script>
  function readURL(input) {
  if (input.files && input.files[0]) {
    var reader = new FileReader();
    
    reader.onload = function(e) {
      $('#blah').attr('src', e.target.result);
    }
    
    reader.readAsDataURL(input.files[0]);
  }
}

$("#sign").change(function() {
  readURL(this);
});</script>
 <script>
  function readURL(input) {
  if (input.files && input.files[0]) {
    var reader = new FileReader();
    
    reader.onload = function(e) {
      $('#blah').attr('src', e.target.result);
    }
    
    reader.readAsDataURL(input.files[0]);
  }
}

$("#sign").change(function() {
  readURL(this);
});</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
	
	   <div class="form-group">
    <label  class="col-sm-4 control-label" style='text-align:right'>Signature<span style="color:red">*</span></label>
    <div class="col-sm-2">
     <img id="sign" alt="Student Signature" width="100" height="100" />

<input type="file" name="signature" data-validation="mime size" data-validation-allowing="jpg, png, jpeg"  data-validation-max-size="50kb" data-validation-error-msg-size="You can not upload Signature larger than 50kb" required onchange="document.getElementById('sign').src = window.URL.createObjectURL(this.files[0])"><span style='color:red'>Max Size 50KB</span>
    </div>
  </div>
	  </div>
	  
	
  <br/><br/>
  <span style="margin-left:100px;font-size:17px"><input type="checkbox" id="chek"/>&emsp;I have read and agree to the <a href="#">terms and conditions.</a></span><br/>
	  <center>
	 <span id="show" style="color:red">Please Check Box</span>
	 <button class="btn btn-success"  id="btn" disabled id="sub" >Submit</button>&emsp;&emsp;
	  <button class="btn btn-success" value="reset">Reset</button>
	 
	  </center>
			<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></div>
</div>

</div>
</div>
</section>

      
    </form>
          </div>
        
		  
            </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('Aadhaar or DOB  Incorrect');window.location.href='check_student.php';</script>";
	}


?>