22 lines
493 B
PHP
22 lines
493 B
PHP
<?php
|
|
|
|
class Tmc_model extends CI_Model {
|
|
|
|
function __construct() {
|
|
parent::__construct();
|
|
}
|
|
|
|
function get_user($con = null){
|
|
if($con)
|
|
$this->db->where($con);
|
|
return $this->db->get('users');
|
|
}
|
|
|
|
function get_corp($con=null,$c_id = null,$is_active = null){
|
|
if($c_id)
|
|
$con['c_id'] = $c_id;
|
|
if($is_active)
|
|
$con['c_isactive'] = 1;
|
|
return $this->db->get_where('corporates',$con);
|
|
}
|
|
} |