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
547cf964
Commit
547cf964
authored
Feb 18, 2020
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
venue changes
parent
4f14a471
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
Organizer_model.php
application/models/Organizer_model.php
+9
-5
No files found.
application/models/Organizer_model.php
View file @
547cf964
...
...
@@ -330,13 +330,17 @@ class Organizer_model extends CI_Model {
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
LOC.status = '1'"
;
$localityData
=
$this
->
db
->
query
(
$sql
)
->
result_array
();
$venueData
[
'locality'
]
=
$this
->
db
->
query
(
$sql
)
->
result_array
();
$sql
=
"SELECT TVEN.venue_name AS name,TVEN.language_code AS lang
FROM venue AS VEN
INNER JOIN translator_venue AS TVEN ON (TVEN.venue_id = VEN.id)
WHERE VEN.id = '"
.
$venueData
[
'venue_id'
]
.
"'"
;
$venueData
[
'venue_names'
]
=
$this
->
db
->
query
(
$sql
)
->
result_array
();
$venueData
[
'locality'
]
=
$localityData
;
$venueData
[
'layout_type'
]
=
(
!
empty
(
$venueData
[
'venue_images'
]))
?
'1'
:
'2'
;
$rtlData
=
langTranslator
(
$venueData
[
'venue_id'
],
'VEN'
);
$venueData
[
'venue_names'
]
=
$rtlData
;
$venueData
[
'venue_name'
]
=
$rtlData
[
'venue_name_EN'
];
$rtlData
=
langTranslator
(
$venueData
[
'venue_id'
],
'VEN'
,
'EN'
);
$venueData
[
'venue_name'
]
=
$rtlData
[
'venue_name'
];
$rtlData
=
langTranslator
(
$venueData
[
'venue_region_id'
],
'REG'
,
'EN'
);
$venueData
[
'venue_region'
]
=
$rtlData
[
'region_name'
];
$res
=
array
(
'status'
=>
1
,
'data'
=>
$venueData
);
...
...
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