| .. | |||||
| Admin_model.php | |||||
| Album_model.php | |||||
| Banner_model.php | |||||
| Category_model.php | |||||
| Contact_model.php | |||||
| Gallery_model.php | |||||
| Identity_model.php | |||||
| Ion_auth_model.php | |||||
| Menu_model.php | |||||
| My_model.php | |||||
| Posting_model.php | |||||
| Submenu_model.php | |||||
| index.html |
| Server IP : 103.169.32.36 / Your IP : 216.73.217.13 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/dpmptsp/public_html/newsigniter/application/models/ |
Upload File : |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Menu_model extends CI_Model {
protected $table = 'menu';
public function getMenu(){
$user = $this->db->where('user_id', $this->session->userdata('id'))->get('users_groups')->row();
if($user->group_id == 1){
$this->db->where('is_active', 'Y');
return $this->db->get($this->table)->result();
}
}
public function getSubmenu($id){
$this->db->select(['submenu.sub_title', 'submenu.sub_url', 'submenu.is_active']);
$this->db->from('submenu');
$this->db->join( $this->table, 'submenu.id_menu = menu.id');
$this->db->where('submenu.id_menu', $id);
$this->db->where('submenu.is_active', 'Y');
return $this->db->get()->result();
}
}
/* End of file Menu_model.php */
| .. | |||||
| Admin_model.php | |||||
| Album_model.php | |||||
| Banner_model.php | |||||
| Category_model.php | |||||
| Contact_model.php | |||||
| Gallery_model.php | |||||
| Identity_model.php | |||||
| Ion_auth_model.php | |||||
| Menu_model.php | |||||
| My_model.php | |||||
| Posting_model.php | |||||
| Submenu_model.php | |||||
| index.html |