예제 #1
0
 function input()
 {
     $sess_id = $this->session->userdata('user_id');
     $nik = get_nik($sess_id);
     if (!$this->ion_auth->logged_in()) {
         //redirect them to the login page
         redirect('auth/login', 'refresh');
     } elseif (!is_spv($nik) && !is_admin() && !is_admin_bagian()) {
         return show_error('You must be an administrator to view this page.');
     } else {
         $this->data['jurusan'] = getAll('recruitment_jurusan', array('is_deleted' => 'where/0'));
         $this->data['ipk'] = getAll('ipk', array('is_deleted' => 'where/0'));
         $this->data['toefl'] = getAll('toefl', array('is_deleted' => 'where/0'));
         $this->data['status'] = getAll('recruitment_status', array('is_deleted' => 'where/0'));
         $this->data['urgensi'] = getAll('recruitment_urgensi', array('is_deleted' => 'where/0'));
         $this->data['jenis_kelamin'] = getAll('jenis_kelamin', array('is_deleted' => 'where/0'));
         $this->data['pendidikan'] = getAll('recruitment_pendidikan', array('is_deleted' => 'where/0'));
         $this->data['komputer'] = getAll('recruitment_komputer', array('is_deleted' => 'where/0'));
         $this->data['brevet'] = getAll('recruitment_brevet', array('is_deleted' => 'where/0'));
         $this->data['sess_id'] = $this->session->userdata('user_id');
         $this->data['all_users'] = getAll('users', array('active' => 'where/1', 'username' => 'order/asc'), array('!=id' => '1'));
         $this->get_bu();
         $this->get_user_atasan();
         $this->_render_page('form_recruitment/input', $this->data);
     }
 }
 public function input()
 {
     $user_id = $this->data['sess_id'] = $this->session->userdata('user_id');
     $sess_id = $this->session->userdata('user_id');
     $nik = get_nik($sess_id);
     if (!$this->ion_auth->logged_in()) {
         //redirect them to the login page
         redirect('auth/login', 'refresh');
     } elseif (!is_spv($nik) && !is_admin() && !is_admin_bagian()) {
         return show_error('You must be an administrator to view this page.');
     } else {
         $sess_id = $this->data['sess_id'] = $this->session->userdata('user_id');
         $this->data['sess_nik'] = get_nik($sess_id);
         $this->data['all_users'] = $this->ion_auth->where('id != ', 1)->users();
         $this->get_user_atasan();
         $this->get_penerima_tugas();
         $this->get_penerima_tugas_satu_bu();
         $this->_render_page('form_spd_dalam_group/input', $this->data);
     }
 }
예제 #3
0
?>
">Training</a> </li>          
          <li > <a href="<?php 
echo site_url('form_training_group');
?>
">Training (Group)</a> </li>
          <li > <a href="<?php 
echo site_url('form_resignment');
?>
">Resignment</a> </li>
          <li > <a href="<?php 
echo site_url('form_exit');
?>
">Exit clearance</a> </li>             
          <?php 
if (is_spv($nik) || is_admin() || is_admin_bagian()) {
    ?>
<li > <a href="<?php 
    echo site_url('form_medical');
    ?>
">Medical</a> </li><?php 
}
?>
    
          </ul>
      </li>
      <!--<li class=""> <a href="javascript:;"> <i class="icon-custom-form"></i> <span class="title">Analisis & Laporan</span> <span class="arrow "></span> </a>
        <ul class="sub-menu">
          <li > <a href="grids_simple.html">Laporan</a> </li>
          <li > <a href="grids_draggable.html">Analisa </a> </li>
        </ul>
 public function input()
 {
     $user_id = $this->data['sess_id'] = $this->session->userdata('user_id');
     $sess_id = $this->session->userdata('user_id');
     $nik = get_nik($sess_id);
     if (!$this->ion_auth->logged_in()) {
         //redirect them to the login page
         redirect('auth/login', 'refresh');
     } elseif (!is_spv($nik) && !is_admin() && !is_admin_bagian()) {
         return show_error('You must be an administrator to view this page.');
     } else {
         $sess_id = $this->data['sess_id'] = $this->session->userdata('user_id');
         $this->data['sess_nik'] = get_nik($sess_id);
         $this->data['all_users'] = $this->ion_auth->where('id != ', 1)->users();
         $this->data['selected'] = getValue('id', 'users', array('id' => 'where/' . $sess_id));
         $this->data['biaya_tambahan'] = getAll('pjd_biaya', array('type_grade' => 'where/0'));
         $this->get_penerima_tugas();
         $this->get_penerima_tugas_satu_bu();
         $this->get_user_atasan();
         $this->data['transportation_list'] = getAll('transportation', array('is_deleted' => 'where/0'))->result();
         $this->data['tl_num_rows'] = getAll('transportation', array('is_deleted' => 'where/0'))->num_rows();
         $this->data['city_list'] = getAll('city', array('is_deleted' => 'where/0'))->result();
         $this->data['cl_num_rows'] = getAll('city', array('is_deleted' => 'where/0'))->num_rows();
         $this->_render_page('form_spd_luar_group/input', $this->data);
     }
 }
예제 #5
0
 public function input()
 {
     $sess_id = $this->session->userdata('user_id');
     $nik = get_nik($sess_id);
     if (!$this->ion_auth->logged_in()) {
         //redirect them to the login page
         redirect('auth/login', 'refresh');
     } elseif (!is_spv($nik) && !is_admin() && !is_admin_bagian()) {
         return show_error('You must be an administrator to view this page.');
     } else {
         $sess_id = $this->data['sess_id'] = $this->session->userdata('user_id');
         $this->data['sess_nik'] = get_nik($sess_id);
         $this->data['all_users'] = getAll('users', array('active' => 'where/1', 'username' => 'order/asc'), array('!=id' => '1'));
         //render transportation
         $this->data['transportation_list'] = getAll('transportation')->result();
         $this->data['tl_num_rows'] = getAll('transportation')->num_rows();
         // render city
         $this->data['city_list'] = getAll('city')->result();
         $this->data['cl_num_rows'] = getAll('city')->num_rows();
         $this->data['biaya_tambahan'] = getAll('pjd_biaya', array('type_grade' => 'where/0'));
         //$this->data['biaya_fix'] = getAll('pjd_biaya', array('type_grade'=>'where/1'));
         $this->get_user_atasan();
         $this->get_penerima_tugas();
         $this->_render_page('form_spd_luar/input', $this->data);
     }
 }