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
68945745
Commit
68945745
authored
Mar 01, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DC
parent
bad18390
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
Venue.php
application/controllers/Venue.php
+4
-4
venueAddForm.php
application/views/Venue/venueAddForm.php
+1
-2
custom-script.js
assets/js/custom-script.js
+2
-0
No files found.
application/controllers/Venue.php
View file @
68945745
...
...
@@ -28,8 +28,8 @@ class Venue extends CI_Controller {
function
addVenues
(){
$this
->
load
->
model
(
'Host_model'
);
$this
->
load
->
model
(
'Region_model'
);
$template
[
'host_data'
]
=
$this
->
Host_model
->
getHostCategories
();
$template
[
'regionData'
]
=
$this
->
Region_model
->
getRegionData
();
$template
[
'host_data'
]
=
$this
->
Host_model
->
getHostCategories
(
''
,
'1'
);
$template
[
'regionData'
]
=
$this
->
Region_model
->
getRegionData
(
''
,
'1'
);
$template
[
'page'
]
=
'Venue/venueAddForm'
;
$template
[
'menu'
]
=
'Venue Management'
;
...
...
@@ -68,8 +68,8 @@ class Venue extends CI_Controller {
}
else
if
(
$err
==
0
&&
isset
(
$_POST
[
'has_layout'
])
&&
$_POST
[
'has_layout'
]
==
1
&&
(
!
isset
(
$_POST
[
'seat_color'
])
||
empty
(
$_POST
[
'seat_color'
])
||
!
isset
(
$_FILES
)
||
!
isset
(
$_POST
[
'seat_price'
])
||
empty
(
$_POST
[
'seat_price'
])
||
empty
(
$_FILES
)
||
count
(
$_POST
[
'seat_price'
])
!=
count
(
$_POST
[
'seat_color'
])
)
||
!
isset
(
$_FILES
[
'layout_image'
])
||
empty
(
$_FILES
[
'layout_image'
])){
count
(
$_POST
[
'seat_price'
])
!=
count
(
$_POST
[
'seat_color'
])
||
!
isset
(
$_FILES
[
'layout_image'
])
||
empty
(
$_FILES
[
'layout_image'
]))
)
{
$err
=
1
;
$errMsg
=
'Provide Proper Layout details'
;
}
...
...
application/views/Venue/venueAddForm.php
View file @
68945745
...
...
@@ -87,13 +87,13 @@
<span
class=
"glyphicon form-control-feedback"
></span>
</div>
</div>
<input
id=
"has_layout"
type=
"hidden"
name=
"has_layout"
value=
'0'
>
<div
class=
"col-md-12"
id=
"layoutCntr"
class=
"hide"
>
<!-- Layout Container -->
<?php
if
(
isset
(
$venue_data
,
$venue_data
->
layout
,
$venue_data
->
layout_details
)
&&
!
empty
(
$venue_data
)
&&
!
empty
(
$venue_data
->
layout
)
&&
!
empty
(
$venue_data
->
layout_details
)
&&
!
empty
(
$layoutDetails
=
json_decode
(
$venue_data
->
layout_details
))){
?>
<input
type=
"hidden"
name=
"has_layout"
value=
'1'
>
<div
class=
"col-md-3"
>
<div
class=
"form-group"
>
<label>
Layout
</label>
...
...
@@ -197,7 +197,6 @@
<!-- Layout Container -->
<div
id=
"layoutCntrHtml"
class=
"hide"
>
<input
type=
"hidden"
name=
"has_layout"
value=
'1'
>
<div
class=
"col-md-3"
>
<div
class=
"form-group"
>
<label>
Layout
</label>
...
...
assets/js/custom-script.js
View file @
68945745
...
...
@@ -116,8 +116,10 @@ function setLayout(){
var
layoutFlag
=
jQuery
(
'[name="host_cat_id"]'
).
find
(
":selected"
).
attr
(
'haveLayout'
);
if
(
layoutFlag
==
1
){
jQuery
(
'[id="has_layout"]'
).
val
(
'1'
);
jQuery
(
'[id="layoutCntr"]'
).
html
(
jQuery
(
'[id="layoutCntrHtml"]'
).
html
());
}
else
{
jQuery
(
'[id="has_layout"]'
).
val
(
'0'
);
jQuery
(
'[id="layoutCntr"]'
).
html
(
''
);
}
}
...
...
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