<script src="<?php echo base_url();?>assets/js/jquery.js"></script>
<script src="<?php echo base_url();?>assets/js/jquery-ui.min.js"></script> 
<script src="<?php echo base_url();?>assets_front/js/frontendvalidations.js"></script>
<style>
.reg_error
{
color: #FF0000;
margin-top: 28px;
font-size: 14px;
font-family: sans-serif;
margin-top: 6px;
margin-bottom: 17px;
}
#fname_error ,#lname_error,#email_error,#email_error_valid,#pass_error,#location_error,#job_title_error,#secters_error,#pass_must,#address_can_error,#phone_error
{
display:none;
}
.ui-autocomplete { z-index:2147483647!important; }
</style>
<div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel" style="text-align:center;">Update Work History</h4>
      </div>
            	<div class="container">
                    <div class="profile-wrap margin-top-30">
                        <div class="row">
                            <div class="col-sm-9">
                                <div class="tab-content">
                                    <div role="tabpanel" class="tab-paneas">
                                        <ul class="looking-for">
<?php
foreach($query as $val)
{
?>
<form name="work"  method="post" action="<?php echo base_url();?>front_end/update_qualifications" onsubmit="return qualification_work()">
<input type="hidden" name="qualifications_id" id="qualifications_id" value="<?php echo $val->qualifications_id;?>"/>
                                        	 <li>
                                                <div class="edit-cntnts margin-bottom-20">
                                                    <h3>Type</h3>
												</div>
                                                <div class="edit-filds">
                                                	<div class="row">
                                                        <div class="col-xs-12">
							<select class="form-control"  name="type" id="type">
                                                               <option value="">Select One</option>
                                                <option value="1" <?php if($val->type==1){?> selected="selected" <?php }?>>Non-Matriculation</option>
												<option value="2" <?php if($val->type==2){?> selected="selected" <?php }?>>Matriculation/O-Level</option>
												<option value="3" <?php if($val->type==3){?> selected="selected" <?php }?>>Intermediate/A-Level</option>
												<option value="4" <?php if($val->type==4){?> selected="selected" <?php }?>>Bachelors</option>
												<option value="5" <?php if($val->type==5){?> selected="selected" <?php }?>>Masters</option>
												<option value="6" <?php if($val->type==6){?> selected="selected" <?php }?>>MPhil/MS</option>
												<option value="7" <?php if($val->type==7){?> selected="selected" <?php }?>>PHD/Doctorate</option>
												<option value="8" <?php if($val->type==8){?> selected="selected" <?php }?>>Certification</option>
												<option value="9" <?php if($val->type==9){?> selected="selected" <?php }?>>Diploma</option>
												<option value="10" <?php if($val->type==10){?> selected="selected" <?php }?>>Short Course</option>
                                                            </select>
                                                         </div>
                                                     </div>
                                                </div>
                                        	</li>
                                        	<li>
                                                <div class="edit-cntnts margin-bottom-20">
                                                    <h3>School or College</h3>
												</div>
                                                <div class="edit-filds">
                                                	<div class="row">
                                                        <div class="col-xs-12">
                                              <input type="text" name="school_name" value="<?php echo $val->school_name;?>" id="school_name" class="form-control" placeholder="School / College name">
                                                         </div>
                                                         
                                                     </div>
                                                </div>
                                        	</li>
                                            <li>
                                                <div class="edit-cntnts margin-bottom-20">
                                                    <h3>From</h3>
												</div>
                                                <div class="edit-filds">
                                                	<div class="row">
                                                        <div class="col-xs-6">
                                                            <select class="form-control"  name="fyear" id="fyear">
                                                          <?php
                                                      for($fy=2001;$fy<2020;$fy++)
                                                        {?>
                            <option value="<?php echo $fy ;?>" <?php if($val->fyear==$fy){?> selected="selected" <?php }?>><?php echo $fy ;?></option>
                                                           <?php }?> 
                                                            </select>
                                                         </div>
                                                         <div class="col-xs-6">
                                                            <select class="form-control"  name="tyear" id="tyear">
                                                            <?php
                                                            for($ty=2001;$ty<2020;$ty++)
                                                            {?>
                                                            <option value="<?php echo $ty ;?>" <?php if($val->tyear==$ty){?> selected="selected" <?php }?>><?php echo $ty ;?></option>
                                                             <?php }?> 
                                                            </select>
                                                         </div>
                                                     </div>
                                                </div>
                                                
                                        	</li>
                                            
                                            <li>
                                                <div class="edit-cntnts margin-bottom-20">
                                                    <h3>Subject</h3>
												</div>
                                                <div class="edit-filds">
                                                	<div class="row">
                                                       <div class="col-xs-12">
                                                <input type="text" value="<?php echo $val->subject;?>" name="subject" class="form-control" id="subject" placeholder="Subject">
                                                         </div>
                                                     </div>
                                                </div>
                                                <div class="edit-cntnts-bg margin-bottom-20">
                                                    <h3>Grade</h3>
												</div>
                                                <div class="edit-filds dit-fild-cont">
                                                	<div class="row">
                                                        <div class="col-xs-12">
                                                            <select class="form-control" id="grade" name="grade" style="width: 140px;">
                                                              <option value="1" <?php if($val->grade==1){?> selected="selected" <?php }?>>A</option>
                                                              <option value="2" <?php if($val->grade==2){?> selected="selected" <?php }?>>B</option>
                                                              <option value="3" <?php if($val->grade==3){?> selected="selected" <?php }?>>C</option>
                                                              <option value="4" <?php if($val->grade==4){?> selected="selected" <?php }?>>D</option>
                                                              <option value="5" <?php if($val->grade==5){?> selected="selected" <?php }?>>F</option>
                                                            </select>
                                                         </div>
                                                     </div>
                                                </div>
                                                
                                                
                                        	</li>
                                            
                                            <!--<li>
                                                <div class="edit-cntnts margin-bottom-0">
                                                    <h5><i class="fa fa-plus-circle" aria-hidden="true"></i>Add another A Level</h5>
												</div>

                                        	</li>-->
                                             <li>
                                                <div class="edit-cntnts margin-bottom-20">
                                                    <h3>Description</h3>
												</div>
                                                <div class="examp-section">
    <textarea class="form-control" style="width: 71%;" id="qualifications_details" rows="3" name="qualifications_details"><?php echo $val->qualifications_details;?></textarea>
                                                   
                                                 </div>
                                        	</li>
                                              <div class="butten-section" style="    margin-top: 10px;margin-bottom: 20px;">
                                                <input type="submit" name="update_qula" id="update_qula" value="Update Qualifications">
                                                <!--<input class="right-cont" type="button" value="Save & add another">-->
                                              <!--  <input class="right" type="reset"  name="reset" id="reset" value="Cancel">-->
                                        	</div>
											
                                            </form>
											<?php }?>
                                        </ul>
                                    </div>
                            </div>
                        </div>
                    </div>
                    
                </div>
            </div>
        
        </div>
		<script src="<?php echo base_url();?>assets_front/js/bootstrap.min.js"></script>
   
<?php //$this->load->view('footer_front'); ?>