<style>
/*.teacher_profile{*/
/*box-shadow:0 0 2px silver;margin-top:20px;float:left;width:100%;margin-bottom:20px;   */
/*}   */
.teacher-form{width:100%;height:auto;}
.personal-info{box-shadow:0 0 2px silver;margin-top:20px; width:100%;}

.academic-info{box-shadow:0 0 2px silver;margin-top:20px; width:100%;}

.contact-info{box-shadow:0 0 2px silver;margin-top:20px;width:100%;}

.bank-info{box-shadow:0 0 2px silver;margin-top:20px;width:100%;}

.form-group{padding:10px;}
input[type=radio]{margin-left:10px;}
.w50{width:50%; float:left;padding:20px;}

.w100{width:100%; float:left;padding:20px;border-top:1px solid #DFF0D8;}

.form-group label span{color:red;}
@media only screen and (max-width:767px){
.w50{width:100% !important; float:left;padding:10px;}    
}
.w100 label a{color:green; text-decoration:none;}
.w100 .btn{float:right;}
</style>
<style>
/* The container */
.form-group-1{
  display: block;
  position: relative;
  float:left;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width:30%;
  height:auto;
}

/* Hide the browser's default checkbox */
.form-group-1 input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  
}

/* On mouse-over, add a grey background color */
 .form-group-1:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
 .form-group-1 input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
 .form-group-1 input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
 .form-group-1 .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}



</style>
<div class="container mt-3 mb-3 bg-white pt-3 pb-3">
    <div class="row">
        <div class="col-sm-12 ">
            <ul class="breadcrumb">
                <li class="breadcrumb-item"><?php echo $this->session->userdata('ac_year'); ?></li> 
                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>Welcome">Home</a></li>
                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>Welcome">Profile</a></li>
                <li class="breadcrumb-item">Update Profile</li>   
                <li class="breadcrumb-item">Update Basic Information</li>
            </ul>
            
            
            <div class="teacher_profile">
                
                    <?php if($success){ ?>
                <p style='color:green;font-weight:bolder;'> <?php echo $success; ?></p>
                <?php } ?>
                <?php if($error){ ?>
                <p style='color:red;font-weight:bolder;'> <?php echo $error; ?></p>
                <?php } ?>

                <div class="teacher-form">
                <?php
                if($this->session->userdata('tid')){ $tid=$this->session->userdata('tid'); }
                    $teacher_profile_data =$this->SchoolModel->teacher_profile($tid);

                    if($teacher_profile_data){
                        foreach($teacher_profile_data as $records){ 
                ?>    
                        <form action="" method="post">
    
<div class="w50">

<div class="personal-info">
<ul class="breadcrumb">
<li>Personal Information</li>    
</ul>    
<input type="hidden" value="<?php echo $records['id'];?>" name="id">
<div class="form-group">
<label>Salutation : <span><?php echo form_error('salutation');?></span></label>    
<select class="form-control" name="salutation" required>
<option value="">Select</option>    
<option value="Mr." <?php if($records['salutation'] == "Mr."){echo "selected";} ?>>Mr.</option>    
<option value="Mrs." <?php if($records['salutation'] == "Mrs."){echo "selected";} ?>>Mrs.</option>
<option value="Ms." <?php if($records['salutation'] == "Ms."){echo "selected";} ?>>Ms.</option>
<option value="Dr." <?php if($records['salutation'] == "Dr."){echo "selected";} ?>>Dr.</option>
</select>
</div> 

<div class="form-group">
<label>Name : <span><?php echo form_error('name');?></span></label>
<input type="text" name="teacher_name" value="<?php echo $records['name'];?>" class="form-control" placeholder="Your Name">
</div>

<div class="form-group">
<label>Father's Name : <span><?php echo form_error('father_name');?></span></label>
<input type="text" name="father_name" value="<?php echo $records['father_name'];?>" class="form-control">
</div>

<div class="form-group">
<label>D.O.B. : <span><?php echo form_error('dob');?></span></label>
<input type="date" name="dob" value="<?php echo $records['dob'];?>" class="form-control">
</div>

<div class="form-group">
<label>Marital Status : <span><?php echo form_error('marital_status');?></span></label>

<input type="radio" id="marital_status" name="marital_status" value="Married" <?php if($records['marital_status']=='Married'){echo "checked";}?>>
<label for="Married">Married</label>

<input type="radio" id="marital_status" name="marital_status" value="Unmarried" <?php if($records['marital_status']=='Unmarried'){echo "checked";}?>>
<label for="Unarried" value="Married" <?php if($records['marital_status']=='Married'){echo "checked";}?>>Unmarried</label>
</div>


<div class="form-group">
<label>Gender :  <span><?php echo form_error('gender');?></span></label>

<input type="radio" id="gender" name="gender" value="Male" <?php if($records['gender']=='Male'){echo "checked";}?>>
<label for="Male">Male</label>

<input type="radio" id="gender" name="gender" value="Female" <?php if($records['gender']=='Female'){echo "checked";}?>>
<label for="Female">Female</label>
</div>

<div class="form-group">
<label>Aadhar Number : <span><?php echo form_error('aadhar_no');?></span></label>    
<input type="number" name="aadhar_no" id="aadhar_no" value="<?php echo $records['aadhar_no']; ?>" class="form-control">
</div>
</div>  


<div class="contact-info">
<ul class="breadcrumb">
<li>Contact Information</li>    
</ul>    

<div class="form-group">
<label>Mobile No : <span><?php echo form_error('mobile_number');?></span></label>
<input type="number" name="mobile_number" value="<?php echo $records['mobile_number'];?>" class="form-control">
</div>



<div class="form-group">
<label>Alternate Mobile No : <span><?php echo form_error('alt_mobile_number');?></span></label>
<input type="number" name="alt_mobile_number" value="<?php echo $records['alt_mobile_number'];?>" class="form-control">
</div>

<div class="form-group">
<label>Email : <span><?php echo form_error('email');?></span></label>
<input type="email" name="email" value="<?php echo $records['email'];?>" class="form-control">
</div>

<div class="form-group">
<label>Current Address : <span><?php echo form_error('address');?></span></label>
<textarea name="address" id="address" rows="4" class="form-control" value="<?php echo $records['address'];?>"><?php echo $records['address'];?></textarea>

</div> 

<div class="form-group">
<label>Permanent Address : <span><?php echo form_error('permanent_address');?></span></label>
<textarea name="permanent_address" id="permanent_address" rows="4" class="form-control" value="<?php echo $records['permanent_address'];?>"><?php echo $records['permanent_address'];?></textarea>

</div> 

</div>
    
</div>

<div class="w50">

<div class="academic-info">
<ul class="breadcrumb"><li>Academic Qualification </li>
<li>Experience</li>
</ul>   

<div class="form-group">
<label>Educational Qualifications : <span><?php echo form_error('educational_qualification_1');?></span></label>    

<input type="text" class="form-control" name="educational_qualification_1" id="educational_qualification_1" value="<?php echo $records['educational_qualification1'];?>">
<label><span><?php echo form_error('educational_qualification_2');?></span></label>
<input type="text" class="form-control" name="educational_qualification_2" id="educational_qualification_2" value="<?php echo  $records['educational_qualification2'];?>">

<label><span><?php echo form_error('educational_qualification_3');?></span></label>
<input type="text" class="form-control" name="educational_qualification_3" id="educational_qualification_3" value="<?php echo $records['educational_qualification3'];?>">
</div>

<div class="form-group">
<label>Highest Academic Qualification : <span><?php echo form_error('highest_qualification');?></span></label>    
<select  name="highest_qualification" id="highest_qualification" class="form-control">
<option value="">Select</option>    
<option value="B.Ed."  <?php if($records['highest_qualification']=='B.Ed.'){echo "selected";}?>>B.Ed.</option>
<option value="M.Ed." <?php if($records['highest_qualification']=='M.Ed.'){echo "selected";}?>>M.Ed.</option>

</select>
</div>

<div class="form-group">
<label>Date of Joining : <span><?php echo form_error('date_of_joining');?></span></label>
<input type="date" name="date_of_joining" id="date_of_joining" class="form-control" value="<?php echo $records['date_of_joining']; ?>" />
</div>

<div class="form-group">
<label>Total Teaching Experience : <span><?php echo form_error('total_teaching_experience');?></span></label>    
<input type="number" class="form-control"  name="total_teaching_experience" id="total_teachiing_experience" value="<?php echo $records['total_teaching_experience'];?>">
</div>
<div class="form-group">
<label>Designation :</label>    
<label><span><?php echo form_error('designation');?></span></label>
<input type="text" class="form-control" id="designation" value="<?php echo $records['designation'];?>" name="designation">
</div>

<div class="form-group">
<label>Teaching Classes : <span><?php echo form_error('teaching_classes');?></span></label> 

<select name="teaching_classes" id="teaching_classes" class="form-control">
<option value="">Select</option>    
<option value="ISC" <?php if($records['teaching_classes']=='ISC'){echo "selected";}?>>ISC</option>    
<option value="ICSE" <?php if($records['teaching_classes']=='ICSE'){echo "selected";}?>>ICSE</option>    
<option value="6-8" <?php if($records['teaching_classes']=='6-8'){echo "selected";}?>>6-8</option>    
<option value="PRIMARY" <?php if($records['teaching_classes']=='PRIMARY'){echo "selected";}?>>PRIMARY</option>    
<option value="PRE-PRIMARY" <?php if($records['teaching_classes']=='PRE-PRIMARY'){echo "selected";}?>>PRE-PRIMARY</option>    
</select>
</div>

<div class="form-group">
<label>Employment Nature  : <span><?php echo form_error('emp_nature');?></span></label>  

<select name="emp_nature" id="emp_nature" class="form-control">
<option value="">Select</option>
<option value="Permanent" <?php if($records['employee_nature']=='Permanent'){echo "selected";}?>>Permanent</option>    
<option value="Temporary" <?php if($records['employee_nature']=='Temporary'){echo "selected";}?>>Temporary</option>
<option value="Contractual" <?php if($records['employee_nature']=='Contractual'){echo "selected";}?>>Contractual</option>
<option value="Probation" <?php if($records['employee_nature']=='Probation'){echo "selected";}?>>Probation</option>
</select>
</div>

<div class="form-group">
<label>Staff Category : <span><?php echo form_error('staff_category');?></span></label>   

<select name="staff_category" id="staff_category" class="form-control">
<option value="">Select</option>
<option value="teaching-staff" <?php if($records['staff_category']=='teaching-staff'){echo "selected";}?>>Teaching Staff</option>
<option value="non-teaching-staff" <?php if($records['staff_category']=='non-teaching-staff'){echo "selected";}?>>Non Teaching Staff</option>
</select>
</div>


<div class="form-group">
<label>Subject Taught:</label> <br>
<label><span><?php echo form_error('subject1');?></span></label>
<select name="subject1" id="subject1" class="form-control">
<option value="">Select Subject 1</option>
<option value="English" <?php if($records['subject_taught1']=='English'){echo "selected";}?>>English</option>
<option value="Hindi" <?php if($records['subject_taught1']=='Hindi'){echo "selected";}?>>Hindi</option>
<option value="Maths" <?php if($records['subject_taught1']=='Maths'){echo "selected";}?>>Maths</option>
<option value="Science" <?php if($records['subject_taught1']=='Science'){echo "selected";}?>>Science</option>
<option value="Social-Science" <?php if($records['subject_taught1']=='Social-Science'){echo "selected";}?>>Social-Science</option>
<option value="Sanskrit" <?php if($records['subject_taught1']=='Sanskrit'){echo "selected";}?>>Sanskrit</option>
<option value="Art" <?php if($records['subject_taught1']=='Art'){echo "selected";}?>>Art</option>
<option value="Sports" <?php if($records['subject_taught1']=='Sports'){echo "selected";}?>>Sports and Physical Education</option>
<option value="Yoga" <?php if($records['subject_taught1']=='Yoga'){echo "selected";}?>>Yoga</option>
</select>

<label><span><?php echo form_error('subject2');?></span></label>
<select name="subject2" id="subject2" class="form-control">
<option value="">Select Subject 2</option>
<option value="English" <?php if($records['subject_taught2']=='English'){echo "selected";}?>>English</option>
<option value="Hindi" <?php if($records['subject_taught2']=='Hindi'){echo "selected";}?>>Hindi</option>
<option value="Maths" <?php if($records['subject_taught2']=='Maths'){echo "selected";}?>>Maths</option>
<option value="Science"  <?php if($records['subject_taught2']=='Science'){echo "selected";}?>>Science</option>
<option value="Social-Science" <?php if($records['subject_taught2']=='Social-Science'){echo "selected";}?>>Social-Science</option>
<option value="Sanskrit">Sanskrit</option>
<option value="Art">Art</option>
<option value="Sports">Sports and Physical Education</option>
<option value="Yoga">Yoga</option>
</select>

<label><span><?php echo form_error('subject3');?></span></label>
<select name="subject3" id="subject3" class="form-control">
<option value="">Select Subject 3</option>
<option value="English" <?php if($records['subject_taught1']=='English'){echo "selected";}?>>English</option>
<option value="Hindi" <?php if($records['subject_taught3']=='Hindi'){echo "selected";}?>>Hindi</option>
<option value="Maths">Maths</option>
<option value="Science">Science</option>
<option value="Social-Science">Social-Science</option>
<option value="Sanskrit">Sanskrit</option>
<option value="Art">Art</option>
<option value="Sports">Sports and Physical Education</option>
<option value="Yoga">Yoga</option>
</select>

</div>


</div>



<div class="bank-info">
<ul class="breadcrumb">
<li>Bank Information</li>    
</ul>
<div class="form-group">
<label>Bank Name : <span><?php echo form_error('bank_name');?></span></label>    
<input type="text" class="form-control" id="bank-name" name="bank_name" value="<?php echo $records['bank_name'];?>">
</div>
<div class="form-group">
<label>IFSC  Code : <span><?php echo form_error('ifsc_code');?></span></label>    
<input type="text" class="form-control" id="ifsc_code" name="ifsc_code" value="<?php echo $records['ifsc'];?>">
</div>
<div class="form-group">
<label>Account Number : <span><?php echo form_error('account_number');?></span></label>
<input type="number" class="form-control" id="account_number" name="account_number" value="<?php echo $records['account_no'];?>">
</div>

<div class="form-group">
<label>Branch Address <span><?php echo form_error('branch_address');?></span></label> 
<textarea type="text" name="branch_address" rows="2" id="branch_address" class="form-control" value="<?php echo $records['branch_address'];?>"><?php echo $records['branch_address'];?></textarea>
</div>

</div>

</div>

<div class="w100">

<label><a href="<?php echo base_url();?>school/profile">DISCARD</a></label>
<input type="submit" name="update_profile" class="btn btn-success" value="SAVE CHANGES">    
</div>





</form> 
<? } } ?>
</div>
</div    

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