Commit 50d97223 by Jansa Jose

getEventDetails

parent 45226fa0
...@@ -46,7 +46,7 @@ class Organizer_model extends CI_Model { ...@@ -46,7 +46,7 @@ class Organizer_model extends CI_Model {
try { try {
$organizer_id = $data['organiser_id']; $organizer_id = $data['organiser_id'];
$this->db->query("SET SESSION group_concat_max_len = 20000"); $this->db->query("SET SESSION group_concat_max_len = 20000");
$languages = getLanguages();
$sql = "SELECT EVT.has_payment,EVT.event_id,EVT.custom_seat_layout, $sql = "SELECT EVT.has_payment,EVT.event_id,EVT.custom_seat_layout,
EVT.seat_pricing,VNE.layout,VNE.layout_details,EVT.max_booking, EVT.seat_pricing,VNE.layout,VNE.layout_details,EVT.max_booking,
VNE.location,VNE.location_lat AS lat,VNE.location_lng AS lng,VNE.id AS venue_id, VNE.location,VNE.location_lat AS lat,VNE.location_lng AS lng,VNE.id AS venue_id,
...@@ -84,6 +84,19 @@ class Organizer_model extends CI_Model { ...@@ -84,6 +84,19 @@ class Organizer_model extends CI_Model {
$event_layout = $pricelist = json_decode($result->seat_pricing, TRUE); $event_layout = $pricelist = json_decode($result->seat_pricing, TRUE);
$price = $pricelist['price']; $price = $pricelist['price'];
//$event_layout = $result->seat_pricing; //$event_layout = $result->seat_pricing;
$priceArr = array();
foreach ($languages as $lang) {
if(!isset($event_layout['price_details_'.$lang])){
continue;
}
$sql = "SELECT country_id AS lang_id,language_code AS lang,language FROM country WHERE status='1' AND language_code='$lang'";
$langSql = $this->db->query($sql)->row_array();
$desc=(!empty($event_layout['price_details_'.$lang]))?$event_layout['price_details_'.$lang]:'';
$priceArr[] = array('lang'=>$lang,'desc'=>$desc,'language'=>$langSql['language'],'language_id'=>$langSql['lang_id']);
unset($event_layout['price_details_'.$lang]);
}
$event_layout['about_price_division'] = $priceArr;
} }
if($result->date_time != ''){ if($result->date_time != ''){
$dates = explode(',', $result->date_time); $dates = explode(',', $result->date_time);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment