<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<?php init_head(); ?>
<div id="wrapper">
 <div class="content">
    <div class="row">  
   <div class="col-md-3">
    <ul class="nav navbar-pills navbar-pills-flat nav-tabs nav-stacked">
      <?php
      $i = 0;
      foreach($tab as $group){

        ?>
        <li<?php if($i == 0){echo " class='active'"; } ?>>
        <a href="<?php echo admin_url('recruitment/setting?group='.$group); ?>" data-group="<?php echo new_html_entity_decode($group); ?>">
          <?php echo _l($group); ?></a>
        </li>
        <?php $i++; } ?>
      </ul>
  </div>
  <div class="col-md-9">
    <div class="panel_s">
     <div class="panel-body">
        <?php $this->load->view($tabs['view']); ?>        
     </div>
  </div>
</div>
<div class="clearfix"></div>
</div>
<?php echo form_close(); ?>
<div class="btn-bottom-pusher"></div>
</div>
</div>
<div id="new_version"></div>
<?php init_tail(); ?>
<?php require('modules/recruitment/assets/js/company_js.php'); ?>


<script>
  if($('select[name="criteria_type"]').val() == 'criteria'){
        $('select[name="group_criteria"]').attr('required','');
        $('#select_group_criteria').removeClass('hide');
    }else{
        $('select[name="group_criteria"]').removeAttr('required');
        $('select[name="group_criteria"]').val('').change();
        $('#select_group_criteria').addClass('hide');
    }
</script>
</body>
</html>
