tamilmaran : ps
This commit is contained in:
parent
baf49c22c0
commit
63807e595e
@ -2299,7 +2299,7 @@ class PD_Model extends SPARQ_Model {
|
||||
|
||||
//Get SMC CityWise Agency
|
||||
function getCityWiseSMCAgency($city){
|
||||
$this->db->select('AGENCYLIST.agency_id as entity_id, AGENCYLIST.agency_name as full_name as name,AGENCYLIST.agency_name as full_name, AGENCYLIST.agency_abbr as short_name,AGENCYLIST.fk_city_id,AGENCYLIST.mail_id');
|
||||
$this->db->select('AGENCYLIST.agency_id as entity_id, AGENCYLIST.agency_name as name,AGENCYLIST.agency_name as full_name, AGENCYLIST.agency_abbr as short_name,AGENCYLIST.fk_city_id,AGENCYLIST.mail_id');
|
||||
$this->db->from(AGENCYLIST.' as AGENCYLIST');
|
||||
$this->db->where('AGENCYLIST.isactive',1);
|
||||
if($city!=""){
|
||||
@ -2324,7 +2324,7 @@ class PD_Model extends SPARQ_Model {
|
||||
$this->db->where_in('USERPROFILEROLES.user_role',$role);
|
||||
// if(!empty($entity)){ $this->db->where('USERPROFILE.fk_entity_id',$entity); }
|
||||
$result = $this->db->get()->result_array();
|
||||
print_r($this->db->last_query());die();
|
||||
// print_r($this->db->last_query());die();
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user