<?php include("parent/callMe.php"); ?>
<?php  include("sessioncheck.php"); 
// unsetting the value of 
unset($_SESSION['AddStudent_Step']);
?>



<?php
$branchID=$_SESSION['branch'];
$query="SELECT ref_no FROM edu_student_details WHERE branch_id='$branchID' order by ref_no DESC";
$max =  $m->query($query);





?>
<!DOCTYPE html>
<html lang="en">
  <head>
   
    <title> Add Student | EduPortal </title>
    <?php include('RootMe/css_links.php');?>
    <style type="text/css">
 

  .tile-stats .icon i{
    font-size: 35px; 
  }

    .vl {
  border-left: 1px solid lightgray;
  height: 40px;
  position: absolute;
  left: 50%;
  margin-left: -3px;
  margin-top: 24px;
}
    </style>


  </head>
<script type="text/javascript">
function getCity(str)
{
  //alert(str);
   if(str=="")
      alert("Please select any State");
  else
     var ajx;  // The variable that makes Ajax possible!
  
  if(window.XMLHttpRequest)
  ajx=new XMLHttpRequest();
  ajx.onreadystatechange = function()
  {

    if(ajx.readyState == 4)
    {
          //alert(ajx.responseText); 
         document.getElementById("city").innerHTML= ajx.responseText;
    }
  }
  ajx.open("GET", "get_city.php?state="+str);
  ajx.send(); 

}

function readURL(input) {
  if (input.files && input.files[0]) {
      var reader = new FileReader();

      reader.onload = function (e) {
          $('#preview')
              .attr('src', e.target.result)
              .width(170)
              .height(180);
      };

      reader.readAsDataURL(input.files[0]);
  }
}
  
</script>
  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
     
        <?php include('RootMe/sidebar.php');?>

        <?php include('RootMe/header.php');?>
     
     
        <!-- page content -->
        <div class="right_col" role="main">
       
          
            <div class="row">

              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>Add New Student </h2>
                  
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
<?php 

   if(isset($_REQUEST['student'])){

    $m->where("student_id", $_REQUEST['student']);
    $student = $m->get("edu_student_details");
  }


?>

                    <!-- Smart Wizard -->
                    <div id="wizard" class="form_wizard wizard_horizontal">
                      <ul class="wizard_steps">
                        <li>
                          <a href="#step-1" >
                            <span class="step_no">1</span>
                            <span class="step_descr">
                                  Step 1<br />
                                  <small> Basic Information</small>
                              </span>
                          </a>
                        </li>
                        <li>
                          <a href="#step-2" class="disabled">
                            <span class="step_no">2</span>
                            <span class="step_descr">
                                  Step 2<br />
                                  <small>Save Fee Plan </small>
                              </span>
                          </a>
                        </li>
                        <li>
                          <a href="#step-3"  class="disabled">
                            <span class="step_no">3</span>
                            <span class="step_descr">
                                Step 3<br />
                                <small>Print Voucher</small>
                            </span>
                          </a>
                        </li>
                       
                      </ul>
                      <div id="step-1"  >

                 <?php  if(isset($_SESSION['error_msg'])){?>


            <div class="alert alert-danger" id="msg">
             <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
              <strong>Danger!</strong> Record is Already Added...
            </div>


          <?php  unset($_SESSION['error_msg']); } ?>
                  
                 <form action="<?php echo DOMAIN.AgentDirectory; ?>parent/InsertMe.php" method="post" enctype="multipart/form-data" class="form-horizontal form-label-left">

                      <input type="hidden" name="action" value="AddStudent"  />
                      <div class="col-md-10">
                        <h4>Student Information</h4>
                      <div class="col-md-4 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['first_name']; ?>" required class="form-control has-feedback-left" name="fname" id="fname" placeholder="Student Name">
                        <span class="fa fa-user form-control-feedback left" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-4 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['urdu_name']; ?>" class="form-control has-feedback-left" name="urdu_name" id="urdu_name" placeholder="Name In Urdu">
                        <span class="fa fa-user form-control-feedback left" aria-hidden="true"></span>
                      </div>
                    

                      <div class="col-md-4 col-sm-6 col-xs-12 form-group has-feedback">
                        <select id="gender" name="gender" class="form-control">

                          <option value="">Select Gender </option>
                          <option <?php if($student[0]['gender']=="Male"){echo "Selected";} ?> value="Male">Male</option>
                          <option <?php if($student[0]['gender']=="Female"){echo "Selected";} ?> value="Female">Female</option>                    
                                                                
                          </select> 
                      </div>

                      <div class="col-md-4 col-sm-6 col-xs-12 form-group has-feedback">
                        <select id="religion" name="religion" class="form-control">

                          <option value="">Select Religion </option>
                          <option <?php if($student[0]['religion']=="Muslim"){echo "Selected";} ?> value="Muslim">Muslim</option>
                          <option <?php if($student[0]['religion']=="Hinduism"){echo "Selected";} ?> value="Hinduism">Hindu</option>                    
                          <option <?php if($student[0]['religion']=="Sikhism"){echo "Selected";} ?> value="Sikhism">Sikh</option>
                          <option <?php if($student[0]['religion']=="Christian"){echo "Selected";} ?> value="Christian">Christian</option>  
                          <option <?php if($student[0]['religion']=="Ahmadi"){echo "Selected";} ?> value="Ahmadi">Ahmadi</option>                                      
                                                
                          </select> 
                      </div>

                      <div class="col-md-4 col-sm-6 col-xs-12 form-group has-feedback">

                        <input type="date"  class="form-control" name="dob" id="dob" placeholder="Date of Birth" value="<?php echo $student[0]['dob']; ?>">
                        <span class="form-control-feedback right" aria-hidden="true">DOB</span>
                      </div>

                     <div class="col-md-4 col-sm-6 col-xs-12 form-group has-feedback">

                        <input type="date" class="form-control" name="date_of_adms" id="date_of_adms" placeholder="Date of Admission" value="<?php echo $student[0]['date_of_adms']; ?>">
                        <span class="form-control-feedback right" aria-hidden="true">DOA</span>
                      </div>


                     <div class="col-md-4 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['formBNo']; ?>" class="form-control has-feedback-left" name="formBNo" id="formBNo" placeholder="Form-B No">
                        <span class="fa fa-sort-numeric-asc form-control-feedback left" aria-hidden="true"></span>
                      </div>

                      

                       <div class="col-md-4 col-sm-6 col-xs-12 form-group has-feedback">

                        <input type="text" value="<?php echo $student[0]['cast']; ?>" class="form-control" name="cast" id="cast" placeholder="Cast">
                        <span class="fa fa-cloud form-control-feedback right" aria-hidden="true"></span>
                      </div>

                       <div class="col-md-4 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="file" class="form-control has-feedback-left" onchange="readURL(this);" name="img_file" id="img_file" />
                        <span class="form-control-feedback right" aria-hidden="true">PIC</span>
                      </div>

                       

                    </div>

  <div class="col-md-2"> 

   <?php if($student[0]['image']!=NULL){ ?>
      
      <img src="<?php echo DOMAIN;?>Production/students_pics/<?php echo $student[0]['image'];?>" id="preview" class="img-thumbnail" style="width:180px;height:170px;"   />

   <?php }else { ?>   

       <img src="<?php echo DOMAIN;?>Production/images/upload.png" id="preview" height="170px" class="img-thumbnail" width="180px"  />


   <?php } ?>   

   </div>

          <div class="col-md-12"><h4>Academic and Contact Informations</h4></div>

          
          <!--  <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <select id="admission_option" name="admission_option" class="form-control">

                          <option value="">Admission Option </option>
                          <option <?php if($student[0]['admission_option']=="1st admission"){echo "Selected";} ?> value="1st admission">1st admission</option>
                          <option <?php if($student[0]['admission_option']=="Re admission"){echo "Selected";} ?> value="Re admission">Re admission</option>                 
                                   
                          </select> 
              </div> -->

          <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['ref_no']; ?>" class="form-control" name="ref_no" id="ref_no" placeholder="Last Admission No <?php echo $max[0]['ref_no'];?>">
                        <span class="fa fa-sort-numeric-asc form-control-feedback right" aria-hidden="true"></span>
              </div>
              
              <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <select id="optionalSub" name="optionalSub" class="form-control">

                          <option value="">Optional Subjects </option>
                          <option <?php if($student[0]['optional_subject']=="Biology Chemistry Physics"){echo "Selected";} ?> value="Biology Chemistry Physics">Biology Chemistry Physics</option>
                          <option <?php if($student[0]['optional_subject']=="Math Chemistry Physics"){echo "Selected";} ?> value="Math Chemistry Physics">Math Chemistry Physics</option>                 
                          <option <?php if($student[0]['optional_subject']=="Math Computer Physics"){echo "Selected";} ?> value="Math Computer Physics">Math Computer Physics</option>
                          <option <?php if($student[0]['optional_subject']=="Genral Science"){echo "Selected";} ?> value="Genral Science">Genral Science</option>
                          <option <?php if($student[0]['optional_subject']=="Arts"){echo "Selected";} ?> value="Arts">Arts</option>                                        
                                                
                          </select> 
              </div>

               <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <select id="selection" name="selection" class="form-control">

                          <option value="">Select Category </option>
                          <option <?php if($student[0]['selection']=="Handicapped"){echo "Selected";} ?> value="Handicapped">Handicapped</option>
                          <option <?php if($student[0]['selection']=="Teacher Son/Daughter"){echo "Selected";} ?> value="Teacher Son/Daughter">Teacher's Son/Daughter</option>                 
                          <option <?php if($student[0]['selection']=="Hafiz e Quran"){echo "Selected";} ?> value="Hafiz e Quran">Hafiz e Quran</option>
                          <option <?php if($student[0]['selection']=="Orphan"){echo "Selected";} ?> value="Orphan">Orphan</option>
                                                                          
                          </select> 
              </div>

              <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <select id="sibling" name="sibling" class="form-control">

                          <option value="">Have Siblings? </option>
                          <option <?php if($student[0]['sibling']=="YES"){echo "Selected";} ?> value="YES">YES</option>
                          <option <?php if($student[0]['sibling']=="NO"){echo "Selected";} ?> value="NO">NO</option>                 
                                                                                                   
                        </select> 
              </div>

             
            



                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        
                         <select name="session" id="session" class="form-control" >  
                         <option value="">Select Session</option>          
                                <?php
                                 $match;
                                  if(!isset($student[0]['session_id'])){
                                    $match=$_SESSION['current_session'];
                                  }else { $match=$student[0]['session_id']; }
                                 
                                $WorkAssignList = $m->get("edu_session_config");
                                foreach($WorkAssignList as $WorkAssignListVal)
                                { ?>

                                   <option <?php if($match==$WorkAssignListVal['session_id']){echo "selected";} ?> value="<?php echo $WorkAssignListVal['session_id']; ?>"><?php echo $WorkAssignListVal['session_year']; ?></option>

                                  <?php } ?>

                            </select>

                      </div>


                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <select name="class" id="class" class="form-control" onChange="getSection(this.value)" required  >
                                <option value="">Select Class</option>

                                <?php
                                $m->where("branch_id", $_SESSION['branch']);
                                $WorkAssignList = $m->get("edu_class_config");
                                foreach($WorkAssignList as $WorkAssignListVal)
                                { ?>

                                   <option <?php if($student[0]['class_id']==$WorkAssignListVal['class_id']){echo "selected";} ?> value="<?php echo $WorkAssignListVal['class_id']; ?>"><?php echo $WorkAssignListVal['Class_Name']; ?></option>


                                        <?php
                                } ?>

                            </select>
                      </div>


                     <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                       <select name="section" id="txt_section" class="form-control" required>
                                  

                              <?php
                              if($_REQUEST['student']!='')
                              { 

                              $m->where("section_id", $student[0]['section_id']);    

                              $secondLevel = $m->get("edu_adm_section_detail");
                              
                              foreach($secondLevel as $secondLevel_val)
                              {
                              
                               ?>
                                <option <?php if($student[0]['section_id']==$secondLevel_val['section_id']){echo "selected";} ?> value="<?php echo $secondLevel_val['section_id']; ?>"><?php echo trim(utf8_encode_all($secondLevel_val['section_name'])); ?></option>
                                <?php }   ?>
                                
                                <?php } ?>


                              </select> 
                      </div>

                  <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <select id="medium" name="medium" class="form-control">

                          <option value="">Select Medium  </option>
                          <option <?php if($student[0]['medium']=="english"){echo "Selected";} ?> value="english">English</option>
                          <option <?php if($student[0]['medium']=="urdu"){echo "Selected";} ?> value="urdu">Urdu</option>                    
                                                                
                        </select> 
                      </div>

                      

                 <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['p_code']; ?>" class="form-control" name="postal" id="postal" placeholder="Postal Code">
                        <span class="fa fa-envelope form-control-feedback right" aria-hidden="true"></span>
                      </div>
            
                
                     <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['email']; ?>" class="form-control" name="email" id="email" placeholder="Email">
                        <span class="fa fa-envelope form-control-feedback right" aria-hidden="true"></span>
                      </div>
                       
                   <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <select name="state" id="state" class="form-control" required onChange="getCity(this.value)" >
                                <option value="">Select State</option>
                                <?php
                                
                                $m->where("Country_Id", 1);    

                                $secondLevel = $m->get("eduportal_state_config");
                                if($secondLevel[0]>0){
                                foreach($secondLevel as $secondLevel_val)
                                {
                                if(is_array($secondLevel_val)){
                                 ?>
                                  <option <?php if($student[0]['State_Id']==$secondLevel_val['State_Id']){echo "selected";} ?>  value="<?php echo $secondLevel_val['State_Id']; ?>"><?php echo trim(utf8_encode_all($secondLevel_val['State_Name'])); ?></option>
                                  <?php } } } ?>
                                  
                                
                                </select>

                      </div>



            
                   <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        
                         <select name="city" id="city" class="form-control">

                               <?php
                              if($_REQUEST['student']!='')
                              { 

                              $m->where("City_Id", $student[0]['City_Id']);    

                              $secondLevel = $m->get("eduportal_city_config");
                              
                              foreach($secondLevel as $secondLevel_val)
                              {
                              
                               ?>
                                <option <?php if($student[0]['City_Id']==$secondLevel_val['City_Id']){echo "selected";} ?> value="<?php echo $secondLevel_val['City_Id']; ?>"><?php echo trim(utf8_encode_all($secondLevel_val['City_Name'])); ?></option>
                                <?php }   ?>
                                
                                <?php } ?>

                          </select>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['chronical_disease'];?>" class="form-control"  name="chronical_disease" id="chronical_disease" placeholder="Any Chronical Disease">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['doctor_name'];?>" class="form-control"  name="doctor_name" id="doctor_name" placeholder="Doctor Name">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['doctor_cell'];?>" class="form-control"  name="doctor_cell" id="doctor_cell" placeholder="Doctor Cell Number">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['whatsapp_number'];?>" class="form-control"  name="whatsapp_number" id="whatsapp_number" placeholder="Whatsapp Number">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-12"><h4>Contact Informations</h4></div>

                     <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['cell_no']; ?>" class="form-control" required name="cellno" id="cellno" placeholder="Number/ Reporting SMS">
                        <span class="fa fa-phone form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['father_cellno']; ?>" class="form-control"  name="father_cellno" id="father_cellno" placeholder="Father Cell No">
                        <span class="fa fa-phone form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['mother_cell'];?>" class="form-control"  name="mother_cell" id="mother_cell" placeholder="Mother Cell Number">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['home_number'];?>" class="form-control"  name="home_number" id="home_number" placeholder="Home PTCL Number">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>


                      <div class="col-md-12"><h4>Family Informations</h4></div>

                      
                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['family_code'];?>" class="form-control"  name="family_code" id="family_code" placeholder="Family Code">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['last_name'];?>" class="form-control" required name="lname" id="lname" placeholder="Father Name">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                       <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['cnic']; ?>" class="form-control" name="cnic" id="cnic" placeholder="CNIC">
                        <span class="fa fa-cc-mastercard form-control-feedback right" aria-hidden="true"></span>
                      </div>

                    <!--   <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['grand_paa'];?>" class="form-control"  name="grand_paa" id="grand_paa" placeholder="Grand Pa’s Name">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div> -->

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['father_qualification'];?>" class="form-control"  name="Fqualification" id="Fqualification" placeholder="Father Qualification">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>                     

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['father_occupation'];?>" class="form-control"  name="father_occupation" id="father_occupation" placeholder="Father Occupation">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                       <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['father_designation'];?>" class="form-control"  name="father_designation" id="father_designation" placeholder="Father Designation">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['father_Bnumber'];?>" class="form-control"  name="father_Bnumber" id="father_Bnumber" placeholder="Father Business Number">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      

                       <div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['Fbusiness_address']; ?>" class="form-control" name="Fbusiness_address" id="Fbusiness_address" placeholder="Father Business Address">
                        <span class="fa fa-home form-control-feedback right" aria-hidden="true"></span>
                      </div>


                     <!--   <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['father_income'];?>" class="form-control"  name="Fincome" id="Fincome" placeholder="Income">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div> -->

                     

                      

                       

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['mother_name']; ?>" class="form-control"  name="mother_name" id="mother_name" placeholder="Mother Name">
                        <span class="fa fa-phone form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['mother_qualification']; ?>" class="form-control"  name="mother_qualification" id="mother_qualification" placeholder="Mother Qualification">
                        <span class="fa fa-phone form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <select id="mother_activity" name="mother_activity" class="form-control">

                          <option value="">Mother Activities  </option>
                          <option <?php if($student[0]['mother_activity']=="House Lady"){echo "Selected";} ?> value="House Lady">House Lady</option>
                          <option <?php if($student[0]['mother_activity']=="Job Holder"){echo "Selected";} ?> value="Job Holder">Job Holder</option>                 
                                                                                                   
                          </select> 
                 </div>

                 <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['mother_designation'];?>" class="form-control"  name="mother_designation" id="mother_designation" placeholder="Mother Designation">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <!-- <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['mother_Bnumber'];?>" class="form-control"  name="mother_Bnumber" id="mother_Bnumber" placeholder="Mother Business Number">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div> -->

                      

                      <!-- <div class="col-md-9 col-sm-12 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['mother_Baddress'];?>" class="form-control"  name="mother_Baddress" id="mother_Baddress" placeholder="Mother Business Address">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div> -->

                      <div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['address']; ?>" class="form-control" name="address" id="address" placeholder="Family Home Address">
                        <span class="fa fa-home form-control-feedback right" aria-hidden="true"></span>
                      </div>


                       <div class="col-md-12"><h4>Guardian Informations (this part will be filled in case of death of father)</h4></div>

            
                       <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['gardian_name']; ?>" class="form-control has-feedback-left" name="gname" id="gname" placeholder="Guardian Name">
                        <span class="fa fa-user form-control-feedback left" aria-hidden="true"></span>
                      </div>

                     <!--   <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['gardian_no']; ?>" class="form-control" required name="forSMS" id="forSMS" placeholder=" Cell No For SMS">
                        <span class="fa fa-phone form-control-feedback right" aria-hidden="true"></span>
                      </div> -->

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['gardian_no']; ?>" class="form-control"  name="Gcellno" id="Gcellno" placeholder="Gardian Cell No">
                        <span class="fa fa-phone form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['gardian_qualification'];?>" class="form-control"  name="Gqualification" id="Gqualification" placeholder="Gardian Qualification">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>                     

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['gardian_occupation'];?>" class="form-control"  name="Goccupation" id="Goccupation" placeholder="Gardian Occupation">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['gardian_designation'];?>" class="form-control"  name="gardian_designation" id="gardian_designation" placeholder="Gardian Designation">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['gardian_Bnumber'];?>" class="form-control"  name="gardian_Bnumber" id="gardian_Bnumber" placeholder="Gardian Business Number">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                       <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['gardian_income'];?>" class="form-control"  name="Gincome" id="Gincome" placeholder="Gardian Income">
                        <span class="fa fa-user form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['gardian_cnic']; ?>" class="form-control" name="Gcnic" id="Gcnic" placeholder="Gardian CNIC">
                        <span class="fa fa-cc-mastercard form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['gardian_email']; ?>" class="form-control" name="gardian_email" id="gardian_email" placeholder="Gardian Email">
                        <span class="fa fa-cc-mastercard form-control-feedback right" aria-hidden="true"></span>
                      </div>

                       <div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['gardian_address']; ?>" class="form-control" name="Gaddress" id="Gaddress" placeholder="Gardian Address">
                        <span class="fa fa-home form-control-feedback right" aria-hidden="true"></span>
                      </div>

                       <div class="col-md-12"><h4>Admission Test Details</h4></div>

                        <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['old_class']; ?>" class="form-control" name="old_class" id="old_class" placeholder="Previous Class">
                        <span class="fa fa-check form-control-feedback right" aria-hidden="true"></span>
                    </div>
            

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['old_school']; ?>" class="form-control" name="old_school" id="old_school" placeholder="Previous Institute">
                        <span class="fa fa-institution form-control-feedback right" aria-hidden="true"></span>
                      </div>
            

                     <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['old_tmarks']; ?>" class="form-control" name="old_tmarks" id="old_tmarks" placeholder="Total Marks">
                        <span class="fa fa-pencil-square-o form-control-feedback right" aria-hidden="true"></span>
                      </div>
            

                      <div class="col-md-3 col-sm-6 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['old_obtmarks']; ?>" class="form-control" name="old_obtmarks" id="old_obtmarks" placeholder="Obtained Marks">
                        <span class="fa fa-pencil-square-o form-control-feedback right" aria-hidden="true"></span>
                      </div>

                      <div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback">
                        <input type="text" value="<?php echo $student[0]['school_leaving']; ?>" class="form-control" name="school_leaving" id="school_leaving" placeholder="Reason of Previous School Leaving">
                        <span class="fa fa-pencil-square-o form-control-feedback right" aria-hidden="true"></span>
                      </div>

                     <div class="col-md-2 col-sm-6 col-xs-12 form-group">
                        <input type="submit" value="Save & Next" class="form-control btn btn-primary" name="submit" />
                      </div>
       


                        </form>





                      </div>  <!--   ending step 1 -->



                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->

    <!-- jQuery -->
    <script src="js/ajax_functions.js"></script>  

    <?php include('RootMe/js_linksscript.php');?>

  </body>
</html>
