<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Auth_Model * * @author Nafeesa */ if (!defined('BASEPATH')) exit('No direct script access allowed'); class Auth_Model extends MY_Model { function __construct() { parent::__construct(); } public function get_single_student($user_id){ $this->db->select('S.*, E.roll_no, E.class_id, E.section_id, U.role_id, C.name AS class_name, SE.name AS section'); $this->db->from('enrollments AS E'); $this->db->join('students AS S', 'S.id = E.student_id', 'left'); $this->db->join('users AS U', 'U.id = S.user_id', 'left'); $this->db->join('classes AS C', 'C.id = E.class_id', 'left'); $this->db->join('sections AS SE', 'SE.id = E.section_id', 'left'); $this->db->where('S.user_id', $user_id); return $this->db->get()->row(); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Ajax_Model.php | File | 3.75 KB | 0777 |
|
Auth_Model.php | File | 1.05 KB | 0777 |
|
Award_Model.php | File | 1.43 KB | 0777 |
|
Complain_Model.php | File | 1.47 KB | 0777 |
|
Dashboard_Model.php | File | 10.61 KB | 0777 |
|
Education_Model.php | File | 1.43 KB | 0777 |
|
Experience_Model.php | File | 1.44 KB | 0777 |
|
Membership_Model.php | File | 1.44 KB | 0777 |
|
Profile_Model.php | File | 3.15 KB | 0777 |
|
Publication_Model.php | File | 1.71 KB | 0777 |
|
Theme_Model.php | File | 198 B | 0777 |
|
Training_Model.php | File | 1.43 KB | 0777 |
|
Userleave_Model.php | File | 2.48 KB | 0777 |
|
Verify_Model.php | File | 1.82 KB | 0777 |
|
index.html | File | 131 B | 0777 |
|