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
1a7a3108
Commit
1a7a3108
authored
Feb 18, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
d4a5f42d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
249 additions
and
82 deletions
+249
-82
Event.php
application/controllers/Event.php
+4
-2
Venue.php
application/controllers/Venue.php
+10
-4
eventAddForm.php
application/views/Event/eventAddForm.php
+42
-12
eventEditForm.php
application/views/Event/eventEditForm.php
+52
-21
viewEventDetails.php
application/views/Event/viewEventDetails.php
+29
-15
venueAddForm.php
application/views/Venue/venueAddForm.php
+63
-21
custom-style.css
assets/css/custom-style.css
+22
-0
custom-script.js
assets/js/custom-script.js
+27
-7
No files found.
application/controllers/Event.php
View file @
1a7a3108
...
@@ -91,7 +91,8 @@ class Event extends CI_Controller {
...
@@ -91,7 +91,8 @@ class Event extends CI_Controller {
$cstmSeatLayout
=
array
();
$cstmSeatLayout
=
array
();
for
(
$i
=
0
;
$i
<
count
(
$_POST
[
'seat_color'
])
;
$i
++
){
for
(
$i
=
0
;
$i
<
count
(
$_POST
[
'seat_color'
])
;
$i
++
){
$cstmSeatLayout
[]
=
array
(
'color'
=>
$_POST
[
'seat_color'
][
$i
],
$cstmSeatLayout
[]
=
array
(
'color'
=>
$_POST
[
'seat_color'
][
$i
],
'price'
=>
$_POST
[
'seat_price'
][
$i
]);
'price'
=>
$_POST
[
'seat_price'
][
$i
],
'capacity'
=>
$_POST
[
'seat_capacity'
][
$i
]);
}
}
$_POST
[
'custom_seat_layout'
]
=
json_encode
(
$cstmSeatLayout
);
$_POST
[
'custom_seat_layout'
]
=
json_encode
(
$cstmSeatLayout
);
}
else
{
}
else
{
...
@@ -236,7 +237,8 @@ class Event extends CI_Controller {
...
@@ -236,7 +237,8 @@ class Event extends CI_Controller {
$cstmSeatLayout
=
array
();
$cstmSeatLayout
=
array
();
for
(
$i
=
0
;
$i
<
count
(
$_POST
[
'seat_color'
])
;
$i
++
){
for
(
$i
=
0
;
$i
<
count
(
$_POST
[
'seat_color'
])
;
$i
++
){
$cstmSeatLayout
[]
=
array
(
'color'
=>
$_POST
[
'seat_color'
][
$i
],
$cstmSeatLayout
[]
=
array
(
'color'
=>
$_POST
[
'seat_color'
][
$i
],
'price'
=>
$_POST
[
'seat_price'
][
$i
]);
'price'
=>
$_POST
[
'seat_price'
][
$i
],
'capacity'
=>
$_POST
[
'seat_capacity'
][
$i
]);
}
}
$_POST
[
'custom_seat_layout'
]
=
json_encode
(
$cstmSeatLayout
);
$_POST
[
'custom_seat_layout'
]
=
json_encode
(
$cstmSeatLayout
);
}
else
{
}
else
{
...
...
application/controllers/Venue.php
View file @
1a7a3108
...
@@ -89,8 +89,11 @@ class Venue extends CI_Controller {
...
@@ -89,8 +89,11 @@ class Venue extends CI_Controller {
$seatLayoutDetails
=
array
();
$seatLayoutDetails
=
array
();
foreach
(
$_POST
[
'seat_color'
]
AS
$index
=>
$value
){
foreach
(
$_POST
[
'seat_color'
]
AS
$index
=>
$value
){
$seatLayoutDetails
[]
=
array
(
'color'
=>
$value
,
'price'
=>
$_POST
[
'seat_price'
][
$index
]);
$seatLayoutDetails
[]
=
array
(
'color'
=>
$value
,
'price'
=>
$_POST
[
'seat_price'
][
$index
],
'capacity'
=>
$_POST
[
'seat_capacity'
][
$index
]);
}
}
$_POST
[
'layout_details'
]
=
json_encode
(
$seatLayoutDetails
);
$_POST
[
'layout_details'
]
=
json_encode
(
$seatLayoutDetails
);
}
else
{
}
else
{
$_POST
[
'layout'
]
=
$_POST
[
'layout_details'
]
=
''
;
$_POST
[
'layout'
]
=
$_POST
[
'layout_details'
]
=
''
;
...
@@ -111,7 +114,7 @@ class Venue extends CI_Controller {
...
@@ -111,7 +114,7 @@ class Venue extends CI_Controller {
$_POST
[
'location_lat'
]
=
$locData
[
'lat'
];
$_POST
[
'location_lat'
]
=
$locData
[
'lat'
];
$_POST
[
'location_lng'
]
=
$locData
[
'lng'
];
$_POST
[
'location_lng'
]
=
$locData
[
'lng'
];
unset
(
$_POST
[
'has_layout'
],
$_POST
[
'seat_color'
],
$_POST
[
'seat_price'
]);
unset
(
$_POST
[
'has_layout'
],
$_POST
[
'seat_color'
],
$_POST
[
'seat_price'
]
,
$_POST
[
'seat_capacity'
]
);
$status
=
$this
->
Venue_model
->
createVenue
(
$_POST
);
$status
=
$this
->
Venue_model
->
createVenue
(
$_POST
);
if
(
$status
==
1
){
if
(
$status
==
1
){
...
@@ -193,8 +196,11 @@ class Venue extends CI_Controller {
...
@@ -193,8 +196,11 @@ class Venue extends CI_Controller {
$seatLayoutDetails
=
array
();
$seatLayoutDetails
=
array
();
foreach
(
$_POST
[
'seat_color'
]
AS
$index
=>
$value
){
foreach
(
$_POST
[
'seat_color'
]
AS
$index
=>
$value
){
$seatLayoutDetails
[]
=
array
(
'color'
=>
$value
,
'price'
=>
$_POST
[
'seat_price'
][
$index
]);
$seatLayoutDetails
[]
=
array
(
'color'
=>
$value
,
'price'
=>
$_POST
[
'seat_price'
][
$index
],
'capacity'
=>
$_POST
[
'seat_capacity'
][
$index
]);
}
}
$_POST
[
'layout_details'
]
=
json_encode
(
$seatLayoutDetails
);
$_POST
[
'layout_details'
]
=
json_encode
(
$seatLayoutDetails
);
}
else
{
}
else
{
$_POST
[
'layout'
]
=
$_POST
[
'layout_details'
]
=
''
;
$_POST
[
'layout'
]
=
$_POST
[
'layout_details'
]
=
''
;
...
@@ -215,7 +221,7 @@ class Venue extends CI_Controller {
...
@@ -215,7 +221,7 @@ class Venue extends CI_Controller {
$_POST
[
'location_lat'
]
=
$locData
[
'lat'
];
$_POST
[
'location_lat'
]
=
$locData
[
'lat'
];
$_POST
[
'location_lng'
]
=
$locData
[
'lng'
];
$_POST
[
'location_lng'
]
=
$locData
[
'lng'
];
unset
(
$_POST
[
'has_layout'
],
$_POST
[
'seat_color'
],
$_POST
[
'seat_price'
]);
unset
(
$_POST
[
'has_layout'
],
$_POST
[
'seat_color'
],
$_POST
[
'seat_price'
]
,
$_POST
[
'seat_capacity'
]
);
$status
=
$this
->
Venue_model
->
updateVenues
(
decode_param
(
$venue_id
),
$_POST
);
$status
=
$this
->
Venue_model
->
updateVenues
(
decode_param
(
$venue_id
),
$_POST
);
if
(
$status
==
1
){
if
(
$status
==
1
){
...
...
application/views/Event/eventAddForm.php
View file @
1a7a3108
...
@@ -55,7 +55,8 @@
...
@@ -55,7 +55,8 @@
<?php
if
(
!
empty
(
$venueData
)){
?>
<?php
if
(
!
empty
(
$venueData
)){
?>
<div
class=
"box"
>
<div
class=
"box"
>
<form
role=
"form"
name=
"eventAddForm"
action=
"
<?=
base_url
(
'Event/createEvent'
)
?>
"
method=
"post"
class=
"validate"
data-parsley-validate=
""
enctype=
"multipart/form-data"
>
<form
role=
"form"
name=
"eventAddForm"
action=
"
<?=
base_url
(
'Event/createEvent'
)
?>
"
method=
"post"
class=
"validate"
data-parsley-validate=
""
enctype=
"multipart/form-data"
>
<input
type=
"hidden"
name=
"venue_id"
value=
"
<?=
$venue_id
?>
"
>
<input
type=
"hidden"
name=
"venue_id"
value=
"
<?=
$venue_id
?>
"
>
<div
class=
"box-header with-border"
>
<div
class=
"box-header with-border"
>
<h3
class=
"box-title padLeft10 padTop5"
>
Venue Details
</h3>
<h3
class=
"box-title padLeft10 padTop5"
>
Venue Details
</h3>
...
@@ -77,12 +78,17 @@
...
@@ -77,12 +78,17 @@
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-4"
>
Venue Location
</div>
<div
class=
"col-sm-4"
>
Venue Location
</div>
<div
class=
"col-sm-1"
><span>
:
</span></div>
<div
class=
"col-sm-1"
><span>
:
</span></div>
<div
class=
"col-sm-7"
><strong>
<?=
$venueData
->
location
?>
</strong></div>
<div
class=
"col-sm-7"
>
<strong><p
class=
"truncateText"
>
<?=
$venueData
->
location
?>
</p></strong>
</div>
</div>
</div>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-4"
>
About Venue
</div>
<div
class=
"col-sm-4"
>
About Venue
</div>
<div
class=
"col-sm-1"
><span>
:
</span></div>
<div
class=
"col-sm-1"
><span>
:
</span></div>
<div
class=
"col-sm-7"
><strong>
<?=
$venueData
->
venue_details
?>
</strong></div>
<div
class=
"col-sm-7"
>
<strong><p
class=
"truncateText"
>
<?=
$venueData
->
venue_details
?>
</p></strong>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -100,7 +106,7 @@
...
@@ -100,7 +106,7 @@
onerror=
"this.src='
<?=
base_url
(
"assets/images/no_image_text.png"
)
?>
';"
onerror=
"this.src='
<?=
base_url
(
"assets/images/no_image_text.png"
)
?>
';"
height=
"75"
width=
"75"
/>
height=
"75"
width=
"75"
/>
</div>
</div>
<div
class=
"col-md-9
padLeft40"
>
<div
class=
"col-md-8
padLeft40"
>
<div
class=
"marginTop23"
id=
"mapTypeCntr"
>
<div
class=
"marginTop23"
id=
"mapTypeCntr"
>
<input
type=
"radio"
name=
"fare_type"
value=
"0"
checked
>
<input
type=
"radio"
name=
"fare_type"
value=
"0"
checked
>
<label
class=
"padAll-10"
>
Use Default Fare
</label>
<label
class=
"padAll-10"
>
Use Default Fare
</label>
...
@@ -108,30 +114,54 @@
...
@@ -108,30 +114,54 @@
<label
class=
"padAll-10"
>
Create Custome Fare
</label>
<label
class=
"padAll-10"
>
Create Custome Fare
</label>
</div>
</div>
<div
class=
"col-sm-12 marginTop-8"
>
<div
class=
"col-sm-3"
>
<strong>
Seat Division
</strong>
</div>
<div
class=
"col-sm-3"
>
<strong>
Seat Pricing
</strong>
</div>
<div
class=
"col-sm-4"
>
<strong>
Seating Capacity
</strong>
</div>
</div>
<div
class=
"box-header with-border padHead marginBottom-10"
style=
"width:480px;"
></div>
<div
class=
"col-sm-12"
id=
"defaultFareSystem"
>
<div
class=
"col-sm-12"
id=
"defaultFareSystem"
>
<?php
foreach
(
$layoutDtls
AS
$lyDtls
){
?>
<?php
foreach
(
$layoutDtls
AS
$lyDtls
){
?>
<div
class=
"col-sm-12 marginTop-8
"
>
<div
class=
"padBottom30
"
>
<div
class=
"col-sm-3"
>
<div
class=
"col-sm-3"
>
<strong>
<?=
$lyDtls
[
'color'
]
?>
</strong>
block
<strong>
<?=
$lyDtls
[
'color'
]
?>
</strong>
block
</div>
</div>
<div
class=
"col-sm-9
"
>
<div
class=
"col-sm-3
"
>
<strong>
<?=
$lyDtls
[
'price'
]
?>
</strong>
/ Seat
<strong>
<?=
$lyDtls
[
'price'
]
?>
</strong>
/ Seat
</div>
</div>
<div
class=
"col-sm-4"
>
<strong>
<?=
$lyDtls
[
'capacity'
]
?>
</strong>
Seats / Division
</div>
</div>
</div>
<?php
}
?>
<?php
}
?>
</div>
</div>
<div
class=
"col-sm-12 hide"
id=
"customFareSystem"
>
<div
class=
"col-sm-12 hide"
id=
"customFareSystem"
>
<?php
foreach
(
$layoutDtls
AS
$lyDtls
){
?>
<?php
foreach
(
$layoutDtls
AS
$lyDtls
){
?>
<div
class=
"col-sm-12"
>
<div
style=
"margin-top:-5px;"
>
<input
type=
"hidden"
name=
"seat_color[]"
value=
"
<?=
$lyDtls
[
'color'
]
?>
"
>
<div
class=
"col-sm-3 padTop15"
>
<div
class=
"col-sm-3 padTop15"
>
<strong>
<?=
$lyDtls
[
'color'
]
?>
</strong>
block
<strong>
<?=
$lyDtls
[
'color'
]
?>
</strong>
block
</div>
</div>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-3"
style=
"padding-top:3px;"
>
<input
type=
"hidden"
name=
"seat_color[]"
value=
"
<?=
$lyDtls
[
'color'
]
?>
"
>
<input
id=
"custFareInput_
<?=
$lyDtls
[
'color'
]
?>
"
type=
"text"
class=
"form-control marginTop-8"
disabled
name=
"seat_price[]"
data-parsley-trigger=
"change"
data-parsley-minlength=
"1"
data-parsley-pattern=
"^[0-9\ . \/]+$"
placeholder=
"Seat Price"
style=
"height:25px;width: 100px;"
>
</div>
<div
class=
"col-sm-4"
style=
"padding-top:3px;"
>
<input
id=
"custFareInput_
<?=
$lyDtls
[
'color'
]
?>
"
type=
"text"
<input
id=
"custFareInput_
<?=
$lyDtls
[
'color'
]
?>
"
type=
"text"
class=
"form-control marginTop-8 width200"
disabled
class=
"form-control marginTop-8"
disabled
name=
"seat_capacity[]"
data-parsley-trigger=
"change"
data-parsley-minlength=
"1"
name=
"seat_price[]"
data-parsley-pattern=
"^[0-9\ . \/]+$"
placeholder=
"Custom Fare / Seat"
>
data-parsley-trigger=
"change"
data-parsley-minlength=
"1"
data-parsley-pattern=
"^[0-9\ . \/]+$"
placeholder=
"Capacity"
style=
"height:25px;width: 100px;"
>
</div>
</div>
</div>
</div>
<?php
}
?>
<?php
}
?>
...
@@ -285,7 +315,6 @@
...
@@ -285,7 +315,6 @@
</div>
</div>
<?php
}
?>
<?php
}
?>
</div>
</div>
</div>
<div
class=
"col-md-12 padTop10"
>
<div
class=
"col-md-12 padTop10"
>
<div
class=
"box-footer textCenterAlign"
>
<div
class=
"box-footer textCenterAlign"
>
...
@@ -293,6 +322,7 @@
...
@@ -293,6 +322,7 @@
<a
href=
"
<?=
base_url
(
'Event/listEvents'
)
?>
"
class=
"btn btn-primary"
>
Cancel
</a>
<a
href=
"
<?=
base_url
(
'Event/listEvents'
)
?>
"
class=
"btn btn-primary"
>
Cancel
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</form>
</div>
</div>
...
...
application/views/Event/eventEditForm.php
View file @
1a7a3108
...
@@ -28,7 +28,8 @@
...
@@ -28,7 +28,8 @@
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<div
class=
"box"
>
<div
class=
"box"
>
<form
role=
"form"
name=
"eventAddForm"
action=
"
<?=
base_url
(
'Event/updateEvent/'
.
encode_param
(
$event_data
->
event_id
))
?>
"
method=
"post"
class=
"validate"
data-parsley-validate=
""
enctype=
"multipart/form-data"
>
<form
role=
"form"
name=
"eventAddForm"
class=
"validate"
data-parsley-validate=
""
method=
"post"
enctype=
"multipart/form-data"
action=
"
<?=
base_url
(
'Event/updateEvent/'
.
encode_param
(
$event_data
->
event_id
))
?>
"
>
<input
type=
"hidden"
name=
"venue_id"
value=
"
<?=
$event_data
->
venue_id
?>
"
>
<input
type=
"hidden"
name=
"venue_id"
value=
"
<?=
$event_data
->
venue_id
?>
"
>
<div
class=
"box-header with-border"
>
<div
class=
"box-header with-border"
>
<h3
class=
"box-title padLeft10 padTop5"
>
Venue Details
</h3>
<h3
class=
"box-title padLeft10 padTop5"
>
Venue Details
</h3>
...
@@ -50,12 +51,17 @@
...
@@ -50,12 +51,17 @@
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-4"
>
Venue Location
</div>
<div
class=
"col-sm-4"
>
Venue Location
</div>
<div
class=
"col-sm-1"
><span>
:
</span></div>
<div
class=
"col-sm-1"
><span>
:
</span></div>
<div
class=
"col-sm-7"
><strong>
<?=
$event_data
->
location
?>
</strong></div>
<div
class=
"col-sm-7"
>
<strong><p
class=
"truncateText"
>
<?=
$event_data
->
location
?>
</p></strong>
</div>
</div>
</div>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-4"
>
About Venue
</div>
<div
class=
"col-sm-4"
>
About Venue
</div>
<div
class=
"col-sm-1"
><span>
:
</span></div>
<div
class=
"col-sm-1"
><span>
:
</span></div>
<div
class=
"col-sm-7"
><strong>
<?=
$event_data
->
venue_details
?>
</strong></div>
<div
class=
"col-sm-7"
>
<strong><p
class=
"truncateText"
>
<?=
$event_data
->
venue_details
?>
</p></strong>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -80,50 +86,76 @@
...
@@ -80,50 +86,76 @@
<?=
(
empty
(
$event_data
->
custom_seat_layout
))
?
''
:
'checked'
?>
>
<?=
(
empty
(
$event_data
->
custom_seat_layout
))
?
''
:
'checked'
?>
>
<label
class=
"padAll-10"
>
Create Custome Fare
</label>
<label
class=
"padAll-10"
>
Create Custome Fare
</label>
</div>
</div>
<div
class=
"col-sm-12 marginTop-8"
>
<div
class=
"col-sm-3"
>
<strong>
Seat Division
</strong>
</div>
<div
class=
"col-sm-3"
>
<strong>
Seat Pricing
</strong>
</div>
<div
class=
"col-sm-4"
>
<strong>
Seating Capacity
</strong>
</div>
</div>
<div
class=
"box-header with-border padHead marginBottom-10"
style=
"width:480px;"
></div>
<?php
$layoutDtls
=
json_decode
(
$event_data
->
layout_details
,
true
);
?>
<?php
$layoutDtls
=
json_decode
(
$event_data
->
layout_details
,
true
);
?>
<div
class=
"col-sm-12
<?=
(
empty
(
$event_data
->
custom_seat_layout
))
?
''
:
'hide'
?>
"
<div
class=
"col-sm-12
<?=
(
empty
(
$event_data
->
custom_seat_layout
))
?
''
:
'hide'
?>
"
id=
"defaultFareSystem"
>
id=
"defaultFareSystem"
>
<?php
foreach
(
$layoutDtls
AS
$lyDtls
){
?>
<?php
foreach
(
$layoutDtls
AS
$lyDtls
){
?>
<div
class=
"col-sm-12 marginTop-8
"
>
<div
class=
"padBottom30
"
>
<div
class=
"col-sm-3"
>
<div
class=
"col-sm-3"
>
<strong>
<?=
$lyDtls
[
'color'
]
?>
</strong>
block
<strong>
<?=
$lyDtls
[
'color'
]
?>
</strong>
block
</div>
</div>
<div
class=
"col-sm-9
"
>
<div
class=
"col-sm-3
"
>
<strong>
<?=
$lyDtls
[
'price'
]
?>
</strong>
/ Seat
<strong>
<?=
$lyDtls
[
'price'
]
?>
</strong>
/ Seat
</div>
</div>
<div
class=
"col-sm-4"
>
<strong>
<?=
$lyDtls
[
'capacity'
]
?>
</strong>
Seats / Division
</div>
</div>
</div>
<?php
}
?>
<?php
}
?>
</div>
</div>
<div
class=
"col-sm-12
<?=
(
empty
(
$event_data
->
custom_seat_layout
))
?
'hide'
:
''
?>
"
<div
class=
"col-sm-12
<?=
(
empty
(
$event_data
->
custom_seat_layout
))
?
'hide'
:
''
?>
"
id=
"customFareSystem"
>
id=
"customFareSystem"
>
<?php
foreach
(
$layoutDtls
AS
$lyDtls
){
?>
<?php
foreach
(
$layoutDtls
AS
$lyDtls
){
?>
<div
class=
"col-sm-12
"
>
<input
type=
"hidden"
name=
"seat_color[]"
value=
"
<?=
$lyDtls
[
'color'
]
?>
"
>
<div
class=
"col-sm-3 padTop15"
>
<div
class=
"col-sm-3 padTop15"
>
<strong>
<?=
$lyDtls
[
'color'
]
?>
</strong>
block
<strong>
<?=
$lyDtls
[
'color'
]
?>
</strong>
block
</div>
</div>
<div
class=
"col-sm-9"
>
<input
type=
"hidden"
name=
"seat_color[]"
value=
"
<?=
$lyDtls
[
'color'
]
?>
"
>
<?php
if
(
empty
(
$event_data
->
custom_seat_layout
)){
?>
<?php
if
(
empty
(
$event_data
->
custom_seat_layout
)){
?>
<input
id=
"custFareInput_
<?=
$lyDtls
[
'color'
]
?>
"
type=
"text"
disabled
<div
class=
"col-sm-3"
style=
"padding-top:3px;"
>
class=
"form-control marginTop-8 width200"
data-parsley-trigger=
"change"
<input
id=
"custFareInput_
<?=
$lyDtls
[
'color'
]
?>
"
disabled
type=
"text"
data-parsley-minlength=
"1"
name=
"seat_price[]"
data-parsley-pattern=
"^[0-9\ . \/]+$"
placeholder=
"Custom Fare / Seat"
class=
"form-control marginTop-8"
data-parsley-trigger=
"change"
value=
""
>
data-parsley-minlength=
"1"
name=
"seat_price[]"
data-parsley-pattern=
"^[0-9\ . \/]+$"
placeholder=
"Seat Price"
style=
"height:25px;width: 100px;"
>
</div>
<div
class=
"col-sm-4"
style=
"padding-top:3px;"
>
<input
id=
"custFareInput_
<?=
$lyDtls
[
'color'
]
?>
"
disabled
type=
"text"
class=
"form-control marginTop-8"
name=
"seat_capacity[]"
data-parsley-trigger=
"change"
data-parsley-minlength=
"1"
data-parsley-pattern=
"^[0-9\ . \/]+$"
placeholder=
"Capacity"
style=
"height:25px;width: 100px;"
>
</div>
<?php
}
else
{
<?php
}
else
{
$custlayoutDtls
=
json_decode
(
$event_data
->
custom_seat_layout
,
true
);
$custlayoutDtls
=
json_decode
(
$event_data
->
custom_seat_layout
,
true
);
foreach
(
$custlayoutDtls
AS
$cLayout
)
{
foreach
(
$custlayoutDtls
AS
$cLayout
)
{
if
(
$cLayout
[
'color'
]
!=
$lyDtls
[
'color'
]){
if
(
$cLayout
[
'color'
]
!=
$lyDtls
[
'color'
]){
continue
;
continue
;
}
}
?>
echo
'<input id="custFareInput_'
.
$lyDtls
[
'color'
]
.
'" type="text"
<div
class=
"col-sm-3"
style=
"padding-top:3px;"
>
class="form-control marginTop-8 width200" data-parsley-trigger="change"
<input
id=
"custFareInput_
<?=
$lyDtls
[
'color'
]
?>
"
name=
"seat_price[]"
data-parsley-minlength="1" name="seat_price[]" data-parsley-pattern="^[0-9\ . \/]+$" placeholder="Custom Fare / Seat"
class=
"form-control marginTop-8"
data-parsley-trigger=
"change"
data-parsley-minlength=
"1"
data-parsley-pattern=
"^[0-9\ . \/]+$"
placeholder=
"Seat Price"
value=
"
<?=
$cLayout
[
'price'
]
?>
"
type=
"text"
style=
"height:25px;width: 100px;"
>
value="'
.
$cLayout
[
'price'
]
.
'">'
;
}
?>
<?php
}
?>
</div>
</div>
<div
class=
"col-sm-4"
style=
"padding-top:3px;"
>
<input
id=
"custFareInput_
<?=
$lyDtls
[
'color'
]
?>
"
type=
"text"
class=
"form-control marginTop-8"
name=
"seat_capacity[]"
data-parsley-trigger=
"change"
data-parsley-minlength=
"1"
data-parsley-pattern=
"^[0-9\ . \/]+$"
placeholder=
"Capacity"
style=
"height:25px;width: 100px;"
value=
"
<?=
$cLayout
[
'capacity'
]
?>
"
>
</div>
</div>
<?php
}
}
?>
<?php
}
?>
<?php
}
?>
</div>
</div>
</div>
</div>
...
@@ -358,7 +390,6 @@
...
@@ -358,7 +390,6 @@
</div>
</div>
<?php
}
?>
<?php
}
?>
</div>
</div>
</div>
<div
class=
"col-md-12 padTop10"
>
<div
class=
"col-md-12 padTop10"
>
<div
class=
"box-footer textCenterAlign"
>
<div
class=
"box-footer textCenterAlign"
>
<button
type=
"submit"
class=
"btn btn-primary"
id=
"addEventButton"
>
Submit
</button>
<button
type=
"submit"
class=
"btn btn-primary"
id=
"addEventButton"
>
Submit
</button>
...
...
application/views/Event/viewEventDetails.php
View file @
1a7a3108
...
@@ -126,38 +126,52 @@
...
@@ -126,38 +126,52 @@
</div>
</div>
<div
class=
"col-sm-8 padTop30"
>
<div
class=
"col-sm-8 padTop30"
>
<div
class=
"col-sm-12 marginTop-8"
>
<div
class=
"col-sm-3"
>
<strong>
Seat Division
</strong>
</div>
<div
class=
"col-sm-3"
>
<strong>
Seat Pricing
</strong>
</div>
<div
class=
"col-sm-4"
>
<strong>
Seating Capacity
</strong>
</div>
</div>
<div
class=
"box-header with-border padHead marginBottom-10"
style=
"width:410px;"
></div>
<?php
<?php
if
(
$event
->
show_layout
==
1
){
if
(
$event
->
show_layout
==
1
){
if
(
!
empty
(
$event
->
custom_seat_layout
)
&&
if
(
!
empty
(
$event
->
custom_seat_layout
)
&&
!
empty
(
$custlayoutDtls
=
json_decode
(
$event
->
custom_seat_layout
,
true
))){
?>
!
empty
(
$custlayoutDtls
=
json_decode
(
$event
->
custom_seat_layout
,
true
))){
<div
class=
"col-sm-12"
>
foreach
(
$custlayoutDtls
AS
$lyDtls
){
?>
<?php
foreach
(
$custlayoutDtls
AS
$lyDtls
){
?>
<div
class=
"col-sm-12 marginTop-8"
>
<div
class=
"col-sm-12 marginTop-8"
>
<div
class=
"col-sm-4
"
>
<div
class=
"col-sm-3
"
>
<strong>
<?=
$lyDtls
[
'color'
]
?>
</strong>
block
<strong>
<?=
$lyDtls
[
'color'
]
?>
</strong>
block
</div>
</div>
<div
class=
"col-sm-8
"
>
<div
class=
"col-sm-3
"
>
<strong>
<?=
$lyDtls
[
'price'
]
?>
</strong>
/ Seat
<strong>
<?=
$lyDtls
[
'price'
]
?>
</strong>
/ Seat
</div>
</div>
<div
class=
"col-sm-4"
>
<strong>
<?=
$lyDtls
[
'capacity'
]
?>
</strong>
Seats / Division
</div>
</div>
<?php
}
?>
</div>
</div>
<?php
}
else
{
<?php
}
$layoutDtls
=
json_decode
(
$event
->
layout_details
,
true
);
?>
}
else
{
<div
class=
"col-sm-12"
>
$layoutDtls
=
json_decode
(
$event
->
layout_details
,
true
);
<?php
foreach
(
$layoutDtls
AS
$lyDtls
){
?>
foreach
(
$layoutDtls
AS
$lyDtls
){
?>
<div
class=
"col-sm-12 marginTop-8"
>
<div
class=
"col-sm-12 marginTop-8"
>
<div
class=
"col-sm-4
"
>
<div
class=
"col-sm-3
"
>
<strong>
<?=
$lyDtls
[
'color'
]
?>
</strong>
block
<strong>
<?=
$lyDtls
[
'color'
]
?>
</strong>
block
</div>
</div>
<div
class=
"col-sm-8
"
>
<div
class=
"col-sm-3
"
>
<strong>
<?=
$lyDtls
[
'price'
]
?>
</strong>
/ Seat
<strong>
<?=
$lyDtls
[
'price'
]
?>
</strong>
/ Seat
</div>
</div>
<div
class=
"col-sm-4"
>
<strong>
<?=
$lyDtls
[
'capacity'
]
?>
</strong>
Seats / Division
</div>
</div>
<?php
}
?>
</div>
</div>
<?php
}
?>
<?php
}
<?php
}
?>
}
}
?>
</div>
</div>
</div>
</div>
<?php
}
?>
<?php
}
?>
...
...
application/views/Venue/venueAddForm.php
View file @
1a7a3108
This diff is collapsed.
Click to expand it.
assets/css/custom-style.css
View file @
1a7a3108
...
@@ -325,6 +325,10 @@
...
@@ -325,6 +325,10 @@
padding-bottom
:
20px
!important
;
padding-bottom
:
20px
!important
;
}
}
.padBottom30
{
padding-bottom
:
30px
!important
;
}
.padTop0
{
.padTop0
{
padding-top
:
0px
!important
;
padding-top
:
0px
!important
;
}
}
...
@@ -361,6 +365,10 @@
...
@@ -361,6 +365,10 @@
margin-top
:
10px
!important
;
margin-top
:
10px
!important
;
}
}
.marginTop37
{
margin-top
:
37px
!important
;
}
.padRight-5p
{
.padRight-5p
{
padding-right
:
5%
!important
;
padding-right
:
5%
!important
;
}
}
...
@@ -381,6 +389,10 @@
...
@@ -381,6 +389,10 @@
padding-left
:
10px
!important
;
padding-left
:
10px
!important
;
}
}
.padLeft15
{
padding-left
:
15px
!important
;
}
.padLeft20
{
.padLeft20
{
padding-left
:
20px
!important
;
padding-left
:
20px
!important
;
}
}
...
@@ -638,3 +650,12 @@
...
@@ -638,3 +650,12 @@
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
}
}
.layoutDivHead
{
margin-top
:
10px
;
}
.hrClass
{
margin-top
:
0px
;
margin-bottom
:
15px
;
}
\ No newline at end of file
assets/js/custom-script.js
View file @
1a7a3108
...
@@ -154,23 +154,36 @@ jQuery('[id="viewVenueDetails"]').on('click',function() {
...
@@ -154,23 +154,36 @@ jQuery('[id="viewVenueDetails"]').on('click',function() {
}
}
});
});
var
layoutHtml
=
''
;
var
layoutHtml
=
''
,
innerLyOut
=
''
;
if
(
venue_data
[
'show_layout'
]
==
'1'
){
if
(
venue_data
[
'show_layout'
]
==
'1'
){
layoutHtml
=
'<div class="col-md-6">'
+
layoutHtml
=
'<div class="col-md-6">'
+
'<div class="row"><label>Layout Details</label></div>'
+
'<div class="row"><label>Layout Details</label></div>'
+
'<div class="row"> '
+
'<div class="row"> '
+
'<div class="col-md-7
" style="text-align:center;"> '
+
'<div class="col-md-6
" style="text-align:center;"> '
+
'<img id="driverLicenceImg" src="'
+
base_url
+
venue_data
[
'layout'
]
+
'"'
+
'<img id="driverLicenceImg" src="'
+
base_url
+
venue_data
[
'layout'
]
+
'"'
+
'style="margin-top:10px;width:auto;max-width:225px;height:225
px;" />'
+
'style="margin-top:10px;width:auto;max-width:200px;height:200
px;" />'
+
'</div><br
>'
;
'</div
>'
;
jQuery
.
each
(
jQuery
.
parseJSON
(
venue_data
[
'layout_details'
]),
function
(
indexLayout
,
layoutValue
)
{
jQuery
.
each
(
jQuery
.
parseJSON
(
venue_data
[
'layout_details'
]),
function
(
indexLayout
,
layoutValue
)
{
layoutHtml
+=
'<div class="col-md-5">'
+
innerLyOut
+=
'<div>'
+
'<label>'
+
layoutValue
[
'color'
]
+
'</label> Block <label>'
+
layoutValue
[
'price'
]
+
'</label> /Seat'
+
'<div onclick="showLyDivDtls(jQuery(this))" class="cpoint">'
+
'<i class="fa fa-caret-square-o-down" aria-hidden="true"></i>'
+
'<label class="padLeft10">'
+
layoutValue
[
'color'
]
+
'</label> Block'
+
'</div>'
+
'<div class="hide">'
+
'<div class="padLeft40"><label>'
+
layoutValue
[
'price'
]
+
'</label> /Seat</div>'
+
'<div class="padLeft40"><label>150</label> Total Capacity</div>'
+
'</div>'
+
'</div>'
;
'</div>'
;
});
});
innerLyOut
=
'<div class="col-md-6 layoutDivHead">'
+
'<div class="row padLeft15"><label>Pricing Details</label></div><hr class="hrClass">'
+
innerLyOut
+
'</div>'
+
'</div>'
+
'</div>'
;
layoutHtml
+=
'</div></div>'
;
layoutHtml
=
layoutHtml
+
innerLyOut
;
}
}
var
colSlot
=
(
layoutHtml
!=
''
)?
'6'
:
'12'
;
var
colSlot
=
(
layoutHtml
!=
''
)?
'6'
:
'12'
;
var
html
=
'<div id="map-canvas-assign" style="width: 100%; height: 200px;"></div><br>'
+
var
html
=
'<div id="map-canvas-assign" style="width: 100%; height: 200px;"></div><br>'
+
...
@@ -474,3 +487,10 @@ jQuery('[id="viewEventDetails"]').on('click',function(event) {
...
@@ -474,3 +487,10 @@ jQuery('[id="viewEventDetails"]').on('click',function(event) {
});
});
});
});
function
showLyDivDtls
(
thisObj
){
thisObj
.
next
(
"div"
).
removeClass
(
'hide'
);
setTimeout
(
function
(){
thisObj
.
next
(
"div"
).
addClass
(
'hide'
);
},
3000
);
}
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