Example #1
0
 public function history($year = 0)
 {
     if ($year == 0) {
         $year = date("Y");
     }
     $config = array('user_id' => $this->user_id, 'year' => $year);
     $empsal = new Employeesalary($config);
     $data = array('history' => $empsal->history_salary(), 'year' => $year);
     parent::setHeader("ประวัติการจ่ายเงินเดือน", "Salary");
     $this->load->view("Userprofile/Usersalaryhistory", $data);
     parent::setFooter();
 }
Example #2
0
 public function salary_history($emp_id, $year = 0)
 {
     $this->load->library('Employeesalary');
     $this->_set_emp_detail($emp_id);
     $data = array('emp_id' => $emp_id, 'year' => $year);
     if ($year == 0) {
         $year = date("Y");
     }
     $config = array('user_id' => $this->emp_detail['UserID'], 'year' => $year);
     $empsal = new Employeesalary($config);
     $data['history'] = $empsal->history_salary();
     $this->_load_views('salary_history', $data);
 }