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
3e098fcb
Commit
3e098fcb
authored
Nov 11, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
13c6c762
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
5 deletions
+32
-5
Event.php
application/controllers/Event.php
+6
-1
eventAddForm.php
application/views/Event/eventAddForm.php
+11
-0
eventEditForm.php
application/views/Event/eventEditForm.php
+15
-4
No files found.
application/controllers/Event.php
View file @
3e098fcb
...
@@ -95,6 +95,7 @@ class Event extends CI_Controller {
...
@@ -95,6 +95,7 @@ class Event extends CI_Controller {
}
}
$_POST
[
'has_payment'
]
=
(
isset
(
$_POST
[
'has_payment'
])
&&
$_POST
[
'has_payment'
]
==
1
)
?
'1'
:
'0'
;
$_POST
[
'has_payment'
]
=
(
isset
(
$_POST
[
'has_payment'
])
&&
$_POST
[
'has_payment'
]
==
1
)
?
'1'
:
'0'
;
$_POST
[
'approve_booking'
]
=
(
isset
(
$_POST
[
'approve_booking'
])
&&
$_POST
[
'approve_booking'
]
==
1
)
?
'1'
:
'0'
;
$_POST
[
'seat_pricing'
]
=
$_POST
[
'custom_seat_layout'
]
=
''
;
$_POST
[
'seat_pricing'
]
=
$_POST
[
'custom_seat_layout'
]
=
''
;
if
(
isset
(
$_POST
[
'fare_type'
])
&&
$_POST
[
'fare_type'
]
==
1
){
if
(
isset
(
$_POST
[
'fare_type'
])
&&
$_POST
[
'fare_type'
]
==
1
){
...
@@ -129,6 +130,7 @@ class Event extends CI_Controller {
...
@@ -129,6 +130,7 @@ class Event extends CI_Controller {
'category_id'
=>
$_POST
[
'category_id'
],
'category_id'
=>
$_POST
[
'category_id'
],
'provider_id'
=>
$provider
,
'provider_id'
=>
$provider
,
'max_booking'
=>
$_POST
[
'max_booking'
],
'max_booking'
=>
$_POST
[
'max_booking'
],
'approve_booking'
=>
$_POST
[
'approve_booking'
],
'has_payment'
=>
$_POST
[
'has_payment'
],
'has_payment'
=>
$_POST
[
'has_payment'
],
'seat_pricing'
=>
$_POST
[
'seat_pricing'
],
'seat_pricing'
=>
$_POST
[
'seat_pricing'
],
'custom_seat_layout'
=>
$_POST
[
'custom_seat_layout'
]);
'custom_seat_layout'
=>
$_POST
[
'custom_seat_layout'
]);
...
@@ -276,7 +278,9 @@ class Event extends CI_Controller {
...
@@ -276,7 +278,9 @@ class Event extends CI_Controller {
$errMsg
=
'Provide Proper Layout details'
;
$errMsg
=
'Provide Proper Layout details'
;
}
}
$_POST
[
'has_payment'
]
=
(
isset
(
$_POST
[
'has_payment'
])
&&
$_POST
[
'has_payment'
]
==
1
)
?
'1'
:
'0'
;
$_POST
[
'has_payment'
]
=
(
isset
(
$_POST
[
'has_payment'
])
&&
$_POST
[
'has_payment'
]
==
1
)
?
'1'
:
'0'
;
$_POST
[
'approve_booking'
]
=
(
isset
(
$_POST
[
'approve_booking'
])
&&
$_POST
[
'approve_booking'
]
==
1
)
?
'1'
:
'0'
;
$_POST
[
'seat_pricing'
]
=
$_POST
[
'custom_seat_layout'
]
=
''
;
$_POST
[
'seat_pricing'
]
=
$_POST
[
'custom_seat_layout'
]
=
''
;
if
(
isset
(
$_POST
[
'fare_type'
])
&&
$_POST
[
'fare_type'
]
==
1
){
if
(
isset
(
$_POST
[
'fare_type'
])
&&
$_POST
[
'fare_type'
]
==
1
){
$cstmSeatLayout
=
array
();
$cstmSeatLayout
=
array
();
...
@@ -312,6 +316,7 @@ class Event extends CI_Controller {
...
@@ -312,6 +316,7 @@ class Event extends CI_Controller {
'max_booking'
=>
$_POST
[
'max_booking'
],
'max_booking'
=>
$_POST
[
'max_booking'
],
'has_payment'
=>
$_POST
[
'has_payment'
],
'has_payment'
=>
$_POST
[
'has_payment'
],
'seat_pricing'
=>
$_POST
[
'seat_pricing'
],
'seat_pricing'
=>
$_POST
[
'seat_pricing'
],
'approve_booking'
=>
$_POST
[
'approve_booking'
],
'custom_seat_layout'
=>
$_POST
[
'custom_seat_layout'
]);
'custom_seat_layout'
=>
$_POST
[
'custom_seat_layout'
]);
$languageArr
=
array
();
$languageArr
=
array
();
foreach
(
$language
AS
$lang
)
{
foreach
(
$language
AS
$lang
)
{
...
...
application/views/Event/eventAddForm.php
View file @
3e098fcb
...
@@ -228,11 +228,22 @@
...
@@ -228,11 +228,22 @@
data-parsley-minlength=
"2"
name=
"max_booking"
value=
"14"
data-parsley-minlength=
"2"
name=
"max_booking"
value=
"14"
placeholder=
"Maximum Seat Can Book Per Transaction (Default 14)"
>
placeholder=
"Maximum Seat Can Book Per Transaction (Default 14)"
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-5"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
Payment Mode
</label><br>
<label>
Payment Mode
</label><br>
<input
type=
"checkbox"
name=
"has_payment"
value=
"1"
checked
>
<input
type=
"checkbox"
name=
"has_payment"
value=
"1"
checked
>
<p
style=
"display:-webkit-inline-box;padding-left: 15px;"
>
Enable Payment
</p>
<p
style=
"display:-webkit-inline-box;padding-left: 15px;"
>
Enable Payment
</p>
</div>
</div>
</div>
<div
class=
"col-md-7"
>
<div
class=
"form-group"
>
<label>
Booking Approval
</label><br>
<input
type=
"checkbox"
name=
"approve_booking"
value=
"1"
>
<p
style=
"display:-webkit-inline-box;padding-left: 15px;"
>
Enable Booking Approval
</p>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
Event Images
</label>
<label>
Event Images
</label>
<div
id=
"multipleImageInputCntr"
>
<div
id=
"multipleImageInputCntr"
>
...
...
application/views/Event/eventEditForm.php
View file @
3e098fcb
...
@@ -229,15 +229,26 @@
...
@@ -229,15 +229,26 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
Maximum Seat Booking
</label>
<label>
Maximum Seat Booking
</label>
<input
type=
"text"
class=
"form-control"
data-parsley-trigger=
"change"
<input
type=
"text"
class=
"form-control"
data-parsley-trigger=
"change"
data-parsley-minlength=
"2"
name=
"max_booking"
value=
"14"
data-parsley-minlength=
"2"
name=
"max_booking"
placeholder=
"Maximum Seat Can Book Per Transaction (Default 14)"
value=
"
<?=
$event_data
->
max_booking
?>
"
>
placeholder=
"Maximum Seat Can Book Per Transaction (Default 14)"
value=
"
<?=
$event_data
->
max_booking
?>
"
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-5"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
Payment Mode
</label><br>
<label>
Payment Mode
</label><br>
<input
type=
"checkbox"
name=
"has_payment"
value=
"1"
<?=
(
$event_data
->
has_payment
==
1
)
?
'checked'
:
''
?>
>
<input
type=
"checkbox"
<?=
(
$event_data
->
has_payment
==
1
)
?
'checked'
:
''
?>
name=
"has_payment"
value=
"1"
>
<p
style=
"display:-webkit-inline-box;padding-left: 15px;"
>
Enable Payment
</p>
<p
style=
"display:-webkit-inline-box;padding-left: 15px;"
>
Enable Payment
</p>
</div>
</div>
</div>
<div
class=
"col-md-7"
>
<div
class=
"form-group"
>
<label>
Booking Approval
</label><br>
<input
type=
"checkbox"
<?=
(
$event_data
->
approve_booking
==
1
)
?
'checked'
:
''
?>
name=
"approve_booking"
value=
"1"
>
<p
style=
"display:-webkit-inline-box;padding-left: 15px;"
>
Enable Booking Approval
</p>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
Event Images
</label>
<label>
Event Images
</label>
<div
id=
"multipleImageInputCntr"
>
<div
id=
"multipleImageInputCntr"
>
...
...
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