<?php $result = $this->Designation_model->ajax_company_designation_info($company_id);?>

<?php

?>



<div class="form-group">

  <select class="form-control" name="designation_id" data-plugin="select_hrm" data-placeholder="<?php echo $this->lang->line('xin_select_designation');?>">

    <option value=""></option>

    <?php foreach($result as $designation) {?>

    <option value="<?php echo $designation->designation_id?>"><?php echo $designation->designation_name?></option>

    <?php } ?>

  </select>

</div>

<?php

//}

?>

<script type="text/javascript">

$(document).ready(function(){	

	$('[data-plugin="select_hrm"]').select2($(this).attr('data-options'));

	$('[data-plugin="select_hrm"]').select2({ width:'100%' });

});

</script>