Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TimeOut
TimeOutAdmin
Commits
50d97223
Commit
50d97223
authored
5 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getEventDetails
parent
45226fa0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
Organizer_model.php
application/models/Organizer_model.php
+14
-1
No files found.
application/models/Organizer_model.php
View file @
50d97223
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment