/home3/vehiclea/public_html/admin-appleiitfoundationschools-com/student_portalEdit.php
<?php
include('include/header.php');
if(!empty($_GET['edit']))
{
$select_student_registration=select_student_registration($_GET['edit']);
$student_data = mysqli_fetch_array($select_student_registration);
}
?>
<style type="text/css">
.text-center{
margin-top: 65px;
}
</style>
<main id="main" class="main">
<div class="pagetitle">
<h1>Apple IIT Schools</h1>
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item">Student Portal</li>
</ol>
</nav>
</div>
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<?php
if(!empty($_POST['submit'])){
student_editData();
}
?>
<form method="post" onsubmit=" return book_validation()" enctype="multipart/form-data">
<div class="row">
<h5 class="text-center"><strong>STUDENT BASIC DETAILS</strong></h5>
<div class="col-md-3 mt-4">
<b>Aadhar Num<span style="color: red;">*</span></b>
<input type="number" class="form-control noSpace" id="AadharNo" name="AadharNo" value="<?= $student_data['AadharNo']?>" placeholder="Enter Aadhar Num" >
</div>
<div class="col-md-3 mt-4">
<b>Sur Name<span style="color: red;">*</span></b>
<input type="text" class="form-control noSpace" value="<?= $student_data['Surname']?>" id="Surname" name="Surname" placeholder="Enter Student Name" >
</div>
<div class="col-md-3 mt-4">
<b>Student Name<span style="color: red;">*</span></b>
<div>
<input class="form-control" value="<?= $student_data['StudentName']?>" type="text" name="StudentName" id="StudentName" placeholder="Enter Student Name" >
</div>
</div>
<div class="col-md-3 mt-4">
<b>District<span style="color: red;">*</span></b>
<input type="text" class="form-control" value="<?= $student_data['District']?>" id="District" name="District" placeholder="Enter District">
</div>
<div class="col-md-3 mt-4">
<b>Mandal<span style="color: red;">*</span></b>
<input type="text" class="form-control" value="<?= $student_data['Mandal']?>" id="Mandal" name="Mandal" placeholder="Enter Mandal">
</div>
<div class="col-md-3 mt-4">
<b>Secretariat Name</b>
<input type="text" class="form-control" value="<?= $student_data['SecreName']?>" id="SecreName" name="SecreName" placeholder="Enter Secretariat Name">
</div>
<div class="col-md-3 mt-4">
<b>Door No</b>
<input type="text" class="form-control" value="<?= $student_data['DoorNo']?>" id="DoorNo" name="DoorNo" placeholder="Enter Door No">
</div>
<div class="col-md-3 mt-4">
<b>Land Mark</b>
<input type="text" class="form-control" value="<?= $student_data['LandMark']?>" id="LandMark" name="LandMark" placeholder="Enter Land Mark">
</div>
<div class="col-md-3 mt-4">
<b>PinCode</b>
<input type="number" class="form-control" value="<?= $student_data['PinCode']?>" id="PinCode" name="PinCode" placeholder="Enter Pin Code">
</div>
<div class="col-md-3 mt-4">
<b>DOB<span style="color: red;">*</span></b>
<input class="form-control" value="<?= $student_data['Dob']?>" id="datepicker" name="Dob" type="text" readonly placeholder="Select Date"/>
</div>
<div class="col-md-3 mt-4">
<b>Gender<span style="color: red;">*</span></b>
<input type="radio" id="Gender" name="Gender" value="male" <?php if($student_data['Gender']=='male'){ echo "checked";}?> checked>
<label for="male">Male</label>
<input type="radio" id="Gender" name="Gender" value="female" <?php if($student_data['Gender']=='female'){ echo "checked";}?>>
<label for="female">Female</label>
</div>
<div class="col-md-3 mt-4">
<b>Religion<span style="color: red;">*</span></b>
<select class="form-control" name="Religion" id="Religion">
<option value="">Please Select Religion</option>
<option value="Hindu" <?php if($student_data['Religion']=='Hindu'){ echo "selected";}?>>Hindu</option>
<option value="Christian" <?php if($student_data['Religion']=='Christian'){ echo "selected";}?>>Christian</option>
<option value="Muslim" <?php if($student_data['Religion']=='Muslim'){ echo "selected";}?>>Muslim</option>
</select>
</div>
<div class="col-md-3 mt-4">
<b>Caste<span style="color: red;">*</span></b>
<select class="form-control" name="Caste" id="Caste">
<option value="">Please Select Caste</option>
<option value="OC" <?php if($student_data['Caste']=='OC'){ echo "selected";}?>>OC</option>
<option value="BC" <?php if($student_data['Caste']=='BC'){ echo "selected";}?>>BC</option>
<option value="SC" <?php if($student_data['Caste']=='SC'){ echo "selected";}?>>SC</option>
<option value="ST"<?php if($student_data['Caste']=='ST'){ echo "selected";}?>>ST</option>
</select>
</div>
<div class="col-md-3 mt-4">
<b>Sub Caste</b>
<select class="form-control" name="SubCaste" id="SubCaste">
<option value="">Please Select Sub Caste</option>
<option value="A" <?php if($student_data['SubCaste']=='A'){ echo "selected";}?>>A</option>
<option value="B" <?php if($student_data['SubCaste']=='B'){ echo "selected";}?>>B</option>
<option value="C" <?php if($student_data['SubCaste']=='C'){ echo "selected";}?>>C</option>
</select>
</div>
<div class="col-md-3 mt-4">
<b>Student PHC</b>
<select class="form-control" name="StudentPhc" id="StudentPhc">
<option value="">Please Select SStudent PHC</option>
<option value="Yes" <?php if($student_data['StudentPhc']=='Yes'){ echo "selected";}?>>Yes</option>
<option value="No" <?php if($student_data['StudentPhc']=='No'){ echo "selected";}?>>No</option>
</select>
</div>
</div>
<div class="row mt-4">
<h5 class="text-center"><strong>PARENT/GUARDIAN BASIC & AADHAR DETAILS</strong></h5>
<div class="col-md-3 mt-4">
<!-- <label for="exampleInputEmail1" class="form-label"><span style="color:red;">*</span>SLECET PARENT STATUS</label> -->
<b>Parent Status</b>
<input type="text" name="ParentStatus" id="ParentStatus" class="form-control" placeholder="Enter Parent Status" value="<?= $student_data['ParentStatus']?>">
</div>
<div class="col-md-3 mt-4">
<b>Mother Name</b>
<input type="text" name="MotherName" value="<?= $student_data['MotherName']?>" id="MotherName" class="form-control" placeholder="Enter Mother Name">
</div>
<div class="col-md-3 mt-4">
<b>Mother Aadhar No</b>
<input type="number" name="MotherAadhar" value="<?= $student_data['MotherAadhar']?>" id="MotherAadhar" class="form-control" placeholder="Enter Mother Aadhar No">
</div>
<div class="col-md-3 mt-4">
<b>Mother Mobile No</b>
<input type="number" name="MotherMobile" value="<?= $student_data['MotherMobile']?>" id="MotherMobile" class="form-control" placeholder="Enter Mother Mobile No">
</div>
<div class="col-md-3 mt-4">
<b>Father Name</b>
<input type="text" name="FatherName" value="<?= $student_data['FatherName']?>" id="FatherName" class="form-control" placeholder="Enter Father Name">
</div>
<div class="col-md-3 mt-4">
<b>Father Aadhar No</b>
<input type="number" name="FatherAadhar" value="<?= $student_data['FatherAadhar']?>" id="FatherAadhar" class="form-control" placeholder="Enter Father Aadhar No">
</div>
<div class="col-md-3 mt-4">
<b>Father Mobile No</b>
<input type="number" name="FatherMobile" value="<?= $student_data['FatherMobile']?>" id="FatherMobile" class="form-control" placeholder="Enter Father Mobile No">
</div>
<div class="col-md-3 mt-4">
<b>Guardian Name</b>
<input type="text" name="GuardianName" value="<?= $student_data['GuardianName']?>" id="GuardianName" class="form-control" placeholder="Enter Guardian Name">
</div>
<div class="col-md-3 mt-4">
<input type="number" name="GuardianAadhar" value="<?= $student_data['GuardianAadhar']?>" id="GuardianAadhar" class="form-control" placeholder="Enter Guardian Aadhar No">
</div>
<div class="col-md-3 mt-4">
<b>Guardian Mobile No</b>
<input type="number" name="GuardianMobile" value="<?= $student_data['GuardianMobile']?>" id="GuardianMobile" class="form-control" placeholder="Enter Guardian Mobile No">
</div>
<div class="col-md-3 mt-4">
<b>Bank Account No</b>
<input type="text" name="BankNo" id="BankNo" value="<?= $student_data['BankNo']?>" class="form-control" placeholder="Enter Bank Account No">
</div>
<div class="col-md-3 mt-4">
<b>Confirm Bank Account No</b>
<input type="text" name="ConBankNo" value="<?= $student_data['ConBankNo']?>" id="ConBankNo" class="form-control" placeholder="Enter Confirm Bank Account No">
</div>
<div class="col-md-3 mt-4">
<b>Ifsc Code</b>
<input type="text" name="IfscCode" value="<?= $student_data['IfscCode']?>" id="IfscCode" class="form-control" placeholder="Enter Ifsc Code">
</div>
<div class="col-md-3 mt-4">
<b>Mother Tongue</b>
<input type="text" name="MotherTongue" value="<?= $student_data['MotherTongue']?>" id="MotherTongue" class="form-control" placeholder="Enter Mother Tongue">
</div>
<div class="col-md-3 mt-4">
<b>Parent Literacy</b>
<input type="text" name="Literacy" value="<?= $student_data['Literacy']?>" id="Literacy" class="form-control" placeholder="Enter Parent Literacy" >
</div>
</div>
<div class="row mt-4">
<h5 class="text-center"><strong>OTHER DETAILS </strong></h5>
<div class="col-md-3 mt-4">
<b>Blood Group</b>
<input type="text" name="Blood" id="Blood" class="form-control" placeholder="Enter Blood Group">
</div>
<div class="col-md-3 mt-4">
<b>Email Id</b>
<input type="email" name="Email" id="Email" class="form-control" placeholder="Enter Email Id">
</div>
<div class="col-md-3 mt-4">
<b>Caste Ceritificate No2</b>
<input type="text" name="CasteNo" id="CasteNo" class="form-control" placeholder="Enter Caste Ceritificate No">
</div>
<div class="col-md-3 mt-4">
<b>Mole 1</b>
<input type="text" name="Mole1" id="Mole1" class="form-control" placeholder="Enter Caste Mole 1">
</div>
<div class="col-md-3 mt-4">
<b>Mole 2</b>
<input type="text" name="Mole2" id="Mole2" class="form-control" placeholder="Enter Caste Mole 2">
</div>
</div>
<div class="row mt-4">
<h5 class="text-center"><strong>CLASS ENROLLMENT DETAILS </strong></h5>
<div class="col-md-3 mt-4">
<b>Admission Date<span style="color: red;">*</span></b>
<input class="form-control" id="datepicker1" value="<?= date('Y-m-d',strtotime($student_data['AdmissionDate']))?>" name="AdmissionDate" type="text" readonly placeholder="Select Date"/>
</div>
<div class="col-md-3 mt-4">
<b>Record No<span style="color: red;">*</span></b>
<input type="text" name="AdmissionNo" value="<?= $student_data['AdmissionNo']?>" id="AdmissionNo" class="form-control" placeholder="Enter Admission No">
</div>
<div class="col-md-3 mt-4">
<b>Admission No</b>
<input type="text" value="<?= $student_data['New_AdmissionNo']?>" name="New_AdmissionNo" id="New_AdmissionNo" class="form-control" placeholder="Enter Admission No" >
</div>
<div class="col-md-3 mt-4">
<b>Select Medium<span style="color: red;">*</span></b>
<input type="text" value="<?= $student_data['Medium']?>" class="form-control" name="Medium" id="Medium" readonly>
</div>
<div class="col-md-3 mt-4">
<b>Select Academic Year<span style="color:red;">*</span></b>
<select name="Academic_year" id="Academic_year" onChange="RollNo_change(); fee_amount()" class="form-control name21">
<option value="">Please Academic Year</option>
<?php
$select_academic = select_academic();
while($academic= mysqli_fetch_array($select_academic))
{
?>
<option value="<?= $academic['yearOf']?>" <?php if($academic['yearOf'] ==$student_data['Academic_year'] ){ echo 'selected';}?>><?= $academic['yearOf']?></option>
<?php
}
?>
</select>
<span class="error21"></span>
</div>
<div class="col-md-3 mt-4">
<b>Select Branch<span style="color:red;">*</span></b>
<select name="Branch" onChange="RollNo_change()" id="Branch" class="form-control name16">
<option value="">Please Select Class</option>
<?php
$select_branch = select_branch();
while($branch= mysqli_fetch_array($select_branch))
{
?>
<option value="<?= $branch['branch_code']?>" <?php if($branch['branch_code'] ==$student_data['Branch'] ){ echo 'selected';}?>><?= $branch['branch_name']?></option>
<?php
}
?>
</select>
<span class="error16"></span>
</div>
<div class="col-md-3 mt-4">
<b>Select Present Class<span style="color: red;">*</span></b>
<select name="PresentClass" id="PresentClass" onChange="change_section()" class="form-control" required>
<option value="">Please Select Class</option>
<?php
$select_class = select_class();
while($class= mysqli_fetch_array($select_class))
{
?>
<option value="<?= $class['name']?>" <?php if($class['name'] ==$student_data['PresentClass']){ echo 'selected';}?>><?= $class['name']?></option>
<?php
}
?>
</select>
</div>
<div class="col-md-3 mt-4">
<b>Select Section<span style="color: red;">*</span></b>
<select name="Section" id="Section" class="form-control">
<?php
$select_section = select_section();
while($section= mysqli_fetch_array($select_section))
{
?>
<option value="<?= $section['section']?>" <?php if($section['section'] == $student_data['Section'] ){ echo 'selected';}?>><?= $section['section']?></option>
<?php
}
?>
</select>
</div>
<div class="col-md-3 mt-4">
<b>Select Previous Class</b>
<select name="PreviousClass" id="PreviousClass" class="form-control">
<option value="">Please Select Class</option>
<?php
$select_class = select_class();
while($class= mysqli_fetch_array($select_class))
{
?>
<option value="<?= $class['name']?>" <?php if($class['name'] ==$student_data['PreviousClass']){ echo 'selected';}?>><?= $class['name']?></option>
<?php
}
?>
</select>
</div>
<div class="col-md-3 mt-4">
<b>Select Syllabus<span style="color:red;">*</span></b>
<select name="Syllabus" onChange="fee_amount()" id="Syllabus" class="form-control name19">
<option value="">Please Syllabus</option>
<?php
$select_Syllabus = select_SyllabusData();
while($Syllabus= mysqli_fetch_array($select_Syllabus))
{
?>
<option value="<?= $Syllabus['name']?>" <?php if($Syllabus['name'] == $student_data['syllabus'] ){ echo 'selected';}?>><?= $Syllabus['name']?></option>
<?php
}
?>
</select>
<span class="error19"></span>
</div>
<div class="col-md-3 mt-4">
<b>Which Admitted</b>
<input type="text" name="WhichAdmitted" value="<?= $student_data['WhichAdmitted']?>" id="WhichAdmitted" class="form-control" placeholder="Enter Which Admitted">
</div>
<div class="col-md-3 mt-4">
<b>Income Ceritificate No</b>
<input type="text" name="Income" value="<?= $student_data['Income']?>" id="Income" class="form-control" placeholder="Enter Income Ceritificate No">
</div>
</div>
<div class="row mt-4">
<h5 class="text-center"><strong>LANGUAGE MAPPING & SUBJECTS</strong></h5>
<div class="col-md-3 mt-4">
<b>First Language</b>
<input type="text" name="FirstLang" value="<?= $student_data['FirstLang']?>" id="FirstLang" class="form-control" placeholder="Enter First Language" >
</div>
<div class="col-md-3 mt-4">
<b>Second Language</b>
<input type="text" name="SecondLang" value="<?= $student_data['SecondLang']?>" id="SecondLang" class="form-control" placeholder="Enter Second Language">
</div>
<div class="col-md-3 mt-4">
<b>Third Language</b>
<input type="text" name="ThirdLang" value="<?= $student_data['ThirdLang']?>" id="ThirdLang" class="form-control" placeholder="Enter Third Language">
</div>
<div class="col-md-3 mt-4">
<b>Fourth Language</b>
<input type="text" name="FourthLang" value="<?= $student_data['FourthLang']?>" id="FourthLang" class="form-control" placeholder="Enter Fourth Language">
</div>
<div class="col-md-3 mt-4">
<b>Enter Math</b>
<input type="text" name="Maths" value="<?= $student_data['Maths']?>" id="Maths" class="form-control" placeholder="Enter Maths">
</div>
<div class="col-md-3 mt-4">
<b>Enter Science</b>
<input type="text" name="Science" value="<?= $student_data['Science']?>" id="Science" class="form-control" placeholder="Enter Science">
</div>
<div class="col-md-3 mt-4">
<b>Select Hostel</b>
<select name="Hostel" id="Hostel" class="form-control" onChange="hostel(this.value);fee_amount()">
<option value="">Plase Select Hostel</option>
<option value="Yes"<?php if($student_data['Hostel']=='Yes'){ echo "selected";}?>>Yes</option>
<option value="No"<?php if($student_data['Hostel']=='No'){ echo "selected";}?>>No</option>
</select>
</div>
<div class="col-md-3 mt-4">
<b>Select Transport</b>
<select name="Transport" id="Transport" class="form-control" onChange="transportData(this.value);fee_amount()">
<option value="">Plase Select Transport</option>
<option value="Yes"<?php if($student_data['Transport']=='Yes'){ echo "selected";}?>>Yes</option>
<option value="No"<?php if($student_data['Transport']=='No'){ echo "selected";}?>>No</option>
</select>
</div>
<div class="col-md-3 mt-4">
<b>Distance</b>
<input type="text" name="Distance" value="<?= $student_data['Distance']?>" id="Distance" class="form-control" placeholder="Enter Distance">
</div>
<div class="col-md-3 mt-4">
<b>Choose Image</b>
<img id="image_preview1" src="assets/img/user.png" style="height:100px;width:100px;" alt="Yor Image Preview" />
<input class="form-control" type="file" id="photo" name="photo">
<div class="error" id="err4" align="center" style="color:red;"></div>
<input type="hidden" name="fileimage" id="fileimage" value="<?= $student_data['photo']?>">
</div>
</div>
<div class="row mt-4">
<h5 class="text-center"><strong>PAYMENT DETAILSS</strong></h5>
<div class="col-md-3 mt-4" >
<b>Admission Amount</b>
<input type="text" name="Amount" value="<?= $student_data['Amount']?>" id="Amount" class="form-control noSpace" placeholder="Enter Admission Amount" onkeypress="return isNumber(event)" required>
</div>
<?php
if($student_data['Transport']=='Yes')
$sty = "";
else
$sty = "display: none";
?>
<div class="col-md-3 mt-4" style="<?= $sty?>" id="tAmount">
<b>Bus Amount</b>
<input type="text" name="BusAmount" value="<?= $student_data['BusAmount']?>" id="BusAmount" class="form-control noSpace" placeholder="Enter Bus Amount" onkeypress="return isNumber(event)">
<input type="hidden" name="Bus_actal_amount" id="Bus_actal_amount" id="hostel_actal_amount">
</div>
<?php
if($student_data['Hostel']=='Yes')
$sty = "";
else
$sty1 = "display: none";
?>
<div class="col-md-3 mt-4" id="hamount" style="<?= $sty1?>">
<b>Hostel Amount</b>
<input type="text" name="hostel_amount" value="<?= $student_data['hostel_amount']?>" id="hostel_amount" class="form-control noSpace" placeholder="Enter Hostel Amount" onkeypress="return isNumber(event)">
<input type="hidden" name="hostel_actal_amount" id="hostel_actal_amount">
</div>
<div class="col-md-3 mt-4">
<b>Study Amount</b>
<input type="text" name="study_amount" value="<?= $student_data['study_amount']?>" id="study_amount" class="form-control noSpace" placeholder="Enter Study Amount" onkeypress="return isNumber(event)" >
</div>
<div class="col-md-3 mt-4">
<b>Books Amount</b>
<input type="text" name="books_fee" value="<?= $student_data['books_fee']?>" id="books_fee" class="form-control noSpace" placeholder="Enter Books Amount" onkeypress="return isNumber(event)">
</div>
<div class="col-md-3 mt-4">
<b>Additional Amount</b>
<input type="text" name="add_amount" value="<?= $student_data['add_amount']?>" id="add_amount" class="form-control noSpace" placeholder="Enter Addtional Amount" onkeypress="return isNumber(event)">
</div>
</div>
<input type="hidden" name="editdata" value="<?= $student_data['id']?>">
<div class="mt-4">
<input type="submit" class="btn" style="background-color: #69F0AE; color: #000000;" value="Update" name="submit">
<a href="student_registration_report.php" style="background-color:#7E57C2; color: #ffff;" class="btn">Back</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
</main>
<script>
function readURL1(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function(e) {
$('#image_preview1').attr('src', e.target.result);
}
reader.readAsDataURL(input.files[0]);
}
}
$("#image1").change(function() {
readURL1(this);
});
function readURL2(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function(e) {
$('#image_preview2').attr('src', e.target.result);
}
reader.readAsDataURL(input.files[0]);
}
}
$("#image2").change(function() {
readURL2(this);
});
function readURL3(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function(e) {
$('#image_preview3').attr('src', e.target.result);
}
reader.readAsDataURL(input.files[0]);
}
}
$("#image3").change(function() {
readURL3(this);
});
</script>
<script>
$('.noSpace').keyup(function() {
this.value = this.value.replace(/\s/g,'');
});
</script>
<script>
function isNumber(evt,ref,len)
{
evt = (evt) ? evt : window.event;
var charCode = (evt.which) ? evt.which : evt.keyCode;
if(charCode == 8 || charCode == 9 ){
return true;
}
var ctrlDown = evt.ctrlKey||evt.metaKey // Mac support
if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode != 46 || charCode == 8 || charCode == 37 || charCode == 39 || ( ctrlDown && charCode==86)) {
return false;
}
else if(ref.val().length >= len){
return false;
}
return true;
}
</script>
<script>
function hostel(val)
{
if(val == "Yes")
{
$('#hamount').show();
}
else
{
$('#hamount').hide();
}
}
</script>
<script>
function transportData(val)
{
if(val == "Yes")
{
$('#tAmount').show();
}
else
{
$('#tAmount').hide();
}
}
function fee_amount()
{
var Syllabus = $('#Syllabus').val();
var Academic_year = $('#Academic_year').val();
var PresentClass = $('#PresentClass').val();
if(Syllabus !='' && Academic_year !='' && PresentClass !='')
{
$.ajax({
url : "student_data.php",
data : {Syllabus : Syllabus,Academic_year : Academic_year,type:15,PresentClass:PresentClass},
type : 'POST',
success : function(data) {
var response = JSON.parse(data);
$('#study_amount').val(response.studying_amount);
$('#study_actal_amount').val(response.studying_amount);
$('#Amount').val(response.admission_fee);
$('#actual_Amount').val(response.admission_fee);
$('#add_amount').val(response.addition_fee);
$('#add_actal_amount').val(response.addition_fee);
$('#hostel_amount').val(response.hostel_fee);
$('#hostel_actal_amount').val(response.hostel_fee);
$('#BusAmount').val(response.bus_fee);
$('#Bus_actal_amount').val(response.bus_fee);
$('#books_fee').val(response.books_fee);
$('#books_actal_amount').val(response.books_fee);
}
});
}
}
</script>
<script>
function change_section(){
var PresentClass = $('#PresentClass').val();
if(PresentClass !='')
{
$.ajax({
url : "subjectsData.php",
data : {type:3,PresentClass:PresentClass},
type : 'POST',
success : function(response) {
$('#Section').html(response);
}
});
}
}
</script>
<?php
include('include/footer.php');
?>
@LwBee Strong Bypass
Upload File
Create New File