[ Avaa Bypassed ]




Upload:

Command:

www-data@18.216.67.249: ~ $
<?php

defined('BASEPATH') OR exit('No direct script access allowed');

/* * *****************Employee.php**********************************
 * @product name    : University Management System Express
 * @type            : Class
 * @class name      : Generate
 * @description     : Manage all type of system employee listing.  
 * @author          : Farid Ahmed, Webmaster, BDU 	
 * @url             : https://bdu.ac.bd/      
 * @support         : farid0001@bdu.ac.bd	
 * @copyright       : BDU ICT Team	 	
 * ********************************************************** */

class Employee extends MY_Controller {

    public $data = array();
      
   public function __construct() {
        parent::__construct();
                
        $this->load->model('Employee_Model', 'employee', true);                
    }

  

   

    /*****************Function index**********************************
     * @type            : Function
     * @function name   : index
     * @description     : Load user filtering interface                 
     *                      
     * @param           : null
     * @return          : null 
     * ********************************************************** */
    public function index(){
        
        
        check_permission(VIEW);
        
        $this->data['employees'] = '';
        
         if ($_POST) {
             
            $school_id = $this->input->post('school_id'); 
            $employee_id = $this->input->post('employee_id');
            $this->data['cards'] = $this->employee->get_employee_list($school_id, $employee_id);
            $this->data['school'] = $this->employee->get_school_by_id($school_id);
            $this->data['setting'] = $this->employee->get_single('id_card_settings', array('school_id'=>$school_id));
            $this->data['school_id'] = $school_id;
            $this->data['employee_id'] = $employee_id;
         }
         
        $condition = array();
        $condition['status'] = 1;        
        if($this->session->userdata('role_id') != SUPER_ADMIN){            
            $condition['school_id'] = $this->session->userdata('school_id');             
            $this->data['employees'] = $this->employee->get_list('employees', $condition, '','', '', 'id', 'ASC');
        }
        
        $this->layout->title($this->lang->line('generate_employee_id_card') .' ' . $this->lang->line('card') .' | ' . SMS);
        $this->layout->view('employee/index', $this->data);         
    }    

}

Filemanager

Name Type Size Permission Actions
Admit.php File 3.28 KB 0777
Admitsetting.php File 14.95 KB 0777
Card.php File 4.31 KB 0777
Employee.php File 2.44 KB 0777
Idsetting.php File 14.71 KB 0777
Schooladmitsetting.php File 13.66 KB 0777
Schoolidsetting.php File 13.53 KB 0777
Student.php File 2.7 KB 0777
Teacher.php File 2.39 KB 0777
index.html File 131 B 0777