@@ -313,7 +313,9 @@ class Organizer_model extends CI_Model {
...
@@ -313,7 +313,9 @@ class Organizer_model extends CI_Model {
$cond.=(!empty($data['venue_id']))?" AND VNE.id='".$data['venue_id']."' ":"";
$cond.=(!empty($data['venue_id']))?" AND VNE.id='".$data['venue_id']."' ":"";
$cond.=(!empty($data['organiser_id']))?" AND VNE.provider_id='".$data['organiser_id']."' ":"";
$cond.=(!empty($data['organiser_id']))?" AND VNE.provider_id='".$data['organiser_id']."' ":"";
$sql="SELECT VNE.id AS venue_id,VNE.layout AS venue_images,VNE.layout_details AS seat_block,VNE.region_id,VNE.location AS venue_location,HST.host_category,VNE.location_lat,VNE.location_lng
$sql="SELECT VNE.id AS venue_id,VNE.layout AS venue_images,VNE.layout_details AS seat_block,
VNE.region_id AS venue_region_id,VNE.location AS venue_location,
HST.host_cat_id AS host_category_id,HST.host_category,VNE.location_lat,VNE.location_lng
FROM venue AS VNE
FROM venue AS VNE
INNER JOIN host_categories AS HST ON (HST.host_cat_id=VNE.host_cat_id)
INNER JOIN host_categories AS HST ON (HST.host_cat_id=VNE.host_cat_id)
WHERE $cond";
WHERE $cond";
...
@@ -322,12 +324,21 @@ class Organizer_model extends CI_Model {
...
@@ -322,12 +324,21 @@ class Organizer_model extends CI_Model {
$res=array('status'=>0,'message'=>'No Data Found','code'=>'ER06');
$res=array('status'=>0,'message'=>'No Data Found','code'=>'ER06');
return$res;
return$res;
}
}
$sql="SELECT TLOC.id,TLOC.locality_name AS locality_name
FROM locality AS LOC
INNER JOIN translator_locality AS TLOC ON (TLOC.locality_id = LOC.id)
WHERE TLOC.language_code='EN' AND LOC.region_id = '".$venueData['venue_region_id']."' AND