<?php $this->load->view('header_frontinner'); ?> 
<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 Sectors</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">
                                        	<li>
                                                <div class="edit-filds">
                                                	<div class="row">
                                                    <div class="col-xs-6">
<form name="location" id="location" method="post" onsubmit="return update_location_form()"  action="<?php echo base_url();?>front_end/edit_can_sector"><?php 
foreach($query as $val)
{
/*echo "select * from njobn_jobs_category where jobs_category_id='".$val->industeries_id."'";*/
?>
<input type="hidden" name="sector_id" id="sector_id" value="<?php echo $val->id; ?>"/>
<!-- <link rel="stylesheet" href="<?php echo base_url();?>assets/docsupport/style.css">-->
<link rel="stylesheet" href="<?php echo base_url();?>assets/docsupport/prism.css">
  <link rel="stylesheet" href="<?php echo base_url();?>assets/docsupport/chosen.css">
 <select name="secters[]" data-placeholder="Choose Industry sectors..." class="chosen-select" multiple="multiple" style="width:525px;"  id="secters" >
		   <option value=""></option>
			
			 <?php
  $sel_industeries=mysql_query("select * from njobn_jobs_category");
  while($fethch_induteries=mysql_fetch_array($sel_industeries))
	{
	//select catgeiries id
	$sel_catids=mysql_query("select * from candidate_industeries where industeries_id='".$fethch_induteries['jobs_category_id']."' AND candidate_id='".$val->candidate_id."'");
	$fatch_arrya_data=mysql_fetch_array($sel_catids);
	?>
            <option value="<?php echo $fethch_induteries['jobs_category_id'];?>" <?php if($fatch_arrya_data['industeries_id']==$fethch_induteries['jobs_category_id']){?> selected="selected" <?php }?>><?php echo $fethch_induteries['jobs_category_title'];?></option>
     <?php }?>
          
          </select>

  <script src="<?php echo base_url();?>assets/docsupport/chosen.jquery.js" type="text/javascript"></script>
  <script src="<?php echo base_url();?>assets/docsupport/prism.js" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript">
    var config = {
      '.chosen-select'           : {},
      '.chosen-select-deselect'  : {allow_single_deselect:true},
      '.chosen-select-no-single' : {disable_search_threshold:10},
      '.chosen-select-no-results': {no_results_text:'Oops, nothing found!'},
      '.chosen-select-width'     : {width:"95%"}
    }
    for (var selector in config) {
      $(selector).chosen(config[selector]);
    }
  </script>
							</br></br>
	                        <input type="submit" name="update_location" id="update_location" value="Update Sector" class="submit-section" />
	<?php }?>
															</form>
  
                                                         </div>
                                                         
                                                     </div>
                                                </div>
                                        	</li>
                                        </ul>
                                    </div>
                            </div>
                        </div>
                    </div>
                    
                </div>
            </div>
        
        </div>
		<!--<script src="<?php echo base_url();?>assets_front/js/bootstrap.min.js"></script>
    <script src="<?php echo base_url();?>assets_front/js/owl.carousel.min.js"></script>
    <script src="<?php echo base_url();?>assets_front/js/script.js"></script>-->
	
<?php //$this->load->view('footer_front'); ?>