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
e6f08bc6
Commit
e6f08bc6
authored
Nov 01, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
10b41505
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Event.php
application/controllers/Event.php
+2
-2
Api_model.php
application/models/Api_model.php
+1
-1
No files found.
application/controllers/Event.php
View file @
e6f08bc6
...
@@ -109,7 +109,7 @@ class Event extends CI_Controller {
...
@@ -109,7 +109,7 @@ class Event extends CI_Controller {
'weekend_price'
=>
$_POST
[
'weekend_price'
][
$i
]);
'weekend_price'
=>
$_POST
[
'weekend_price'
][
$i
]);
}
}
$_POST
[
'custom_seat_layout'
]
=
json_encode
(
$cstmSeatLayout
);
$_POST
[
'custom_seat_layout'
]
=
json_encode
(
$cstmSeatLayout
);
}
else
if
(
isset
(
$_POST
[
'price'
])
&&
!
empty
(
$_POST
[
'price'
])
&&
}
else
if
(
isset
(
$_POST
[
'price'
])
&&
$_POST
[
'price'
]
!=
''
&&
isset
(
$_POST
[
'capacity'
])
&&
!
empty
(
$_POST
[
'capacity'
])){
isset
(
$_POST
[
'capacity'
])
&&
!
empty
(
$_POST
[
'capacity'
])){
$seatPriceArr
=
array
(
'price'
=>
$_POST
[
'price'
],
'capacity'
=>
$_POST
[
'capacity'
]);
$seatPriceArr
=
array
(
'price'
=>
$_POST
[
'price'
],
'capacity'
=>
$_POST
[
'capacity'
]);
foreach
(
$language
AS
$lang
)
{
foreach
(
$language
AS
$lang
)
{
...
@@ -290,7 +290,7 @@ class Event extends CI_Controller {
...
@@ -290,7 +290,7 @@ class Event extends CI_Controller {
'weekend_price'
=>
$_POST
[
'weekend_price'
][
$i
]);
'weekend_price'
=>
$_POST
[
'weekend_price'
][
$i
]);
}
}
$_POST
[
'custom_seat_layout'
]
=
json_encode
(
$cstmSeatLayout
);
$_POST
[
'custom_seat_layout'
]
=
json_encode
(
$cstmSeatLayout
);
}
else
if
(
isset
(
$_POST
[
'price'
])
&&
!
empty
(
$_POST
[
'price'
])
&&
}
else
if
(
isset
(
$_POST
[
'price'
])
&&
$_POST
[
'price'
]
!=
''
&&
isset
(
$_POST
[
'capacity'
])
&&
!
empty
(
$_POST
[
'capacity'
])){
isset
(
$_POST
[
'capacity'
])
&&
!
empty
(
$_POST
[
'capacity'
])){
$seatPriceArr
=
array
(
'price'
=>
$_POST
[
'price'
],
'capacity'
=>
$_POST
[
'capacity'
]);
$seatPriceArr
=
array
(
'price'
=>
$_POST
[
'price'
],
'capacity'
=>
$_POST
[
'capacity'
]);
foreach
(
$language
AS
$lang
)
{
foreach
(
$language
AS
$lang
)
{
...
...
application/models/Api_model.php
View file @
e6f08bc6
...
@@ -1100,7 +1100,7 @@ class Api_model extends CI_Model {
...
@@ -1100,7 +1100,7 @@ class Api_model extends CI_Model {
INNER JOIN event_date_time ON events.event_id=event_date_time.event_id
$case
INNER JOIN event_date_time ON events.event_id=event_date_time.event_id
$case
WHERE events.status = 1 AND event_date_time.status='1'
$where
WHERE events.status = 1 AND event_date_time.status='1'
$where
GROUP BY events.event_id"
;
GROUP BY events.event_id"
;
$count
=
$this
->
db
->
query
(
)
->
num_rows
(
$sql
);
$count
=
$this
->
db
->
query
(
$sql
)
->
num_rows
(
);
if
(
isset
(
$data
[
'venue_id'
])
&&
!
empty
(
$data
[
'venue_id'
]))
{
if
(
isset
(
$data
[
'venue_id'
])
&&
!
empty
(
$data
[
'venue_id'
]))
{
$where
.=
" AND locality.id ='"
.
$data
[
'venue_id'
]
.
"'"
;
$where
.=
" AND locality.id ='"
.
$data
[
'venue_id'
]
.
"'"
;
...
...
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