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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
35 deletions
+36
-35
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
+31
-29
No files found.
application/controllers/Venue.php
View file @
68945745
...
@@ -28,8 +28,8 @@ class Venue extends CI_Controller {
...
@@ -28,8 +28,8 @@ class Venue extends CI_Controller {
function
addVenues
(){
function
addVenues
(){
$this
->
load
->
model
(
'Host_model'
);
$this
->
load
->
model
(
'Host_model'
);
$this
->
load
->
model
(
'Region_model'
);
$this
->
load
->
model
(
'Region_model'
);
$template
[
'host_data'
]
=
$this
->
Host_model
->
getHostCategories
();
$template
[
'host_data'
]
=
$this
->
Host_model
->
getHostCategories
(
''
,
'1'
);
$template
[
'regionData'
]
=
$this
->
Region_model
->
getRegionData
();
$template
[
'regionData'
]
=
$this
->
Region_model
->
getRegionData
(
''
,
'1'
);
$template
[
'page'
]
=
'Venue/venueAddForm'
;
$template
[
'page'
]
=
'Venue/venueAddForm'
;
$template
[
'menu'
]
=
'Venue Management'
;
$template
[
'menu'
]
=
'Venue Management'
;
...
@@ -68,8 +68,8 @@ class Venue extends CI_Controller {
...
@@ -68,8 +68,8 @@ class Venue extends CI_Controller {
}
else
if
(
$err
==
0
&&
isset
(
$_POST
[
'has_layout'
])
&&
$_POST
[
'has_layout'
]
==
1
&&
}
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_color'
])
||
empty
(
$_POST
[
'seat_color'
])
||
!
isset
(
$_FILES
)
||
!
isset
(
$_POST
[
'seat_price'
])
||
empty
(
$_POST
[
'seat_price'
])
||
empty
(
$_FILES
)
||
!
isset
(
$_POST
[
'seat_price'
])
||
empty
(
$_POST
[
'seat_price'
])
||
empty
(
$_FILES
)
||
count
(
$_POST
[
'seat_price'
])
!=
count
(
$_POST
[
'seat_color'
])
)
||
!
isset
(
$_FILES
[
'layout_image'
])
||
count
(
$_POST
[
'seat_price'
])
!=
count
(
$_POST
[
'seat_color'
])
||
!
isset
(
$_FILES
[
'layout_image'
])
||
empty
(
$_FILES
[
'layout_image'
])){
empty
(
$_FILES
[
'layout_image'
]))
)
{
$err
=
1
;
$err
=
1
;
$errMsg
=
'Provide Proper Layout details'
;
$errMsg
=
'Provide Proper Layout details'
;
}
}
...
...
application/views/Venue/venueAddForm.php
View file @
68945745
...
@@ -87,13 +87,13 @@
...
@@ -87,13 +87,13 @@
<span
class=
"glyphicon form-control-feedback"
></span>
<span
class=
"glyphicon form-control-feedback"
></span>
</div>
</div>
</div>
</div>
<input
id=
"has_layout"
type=
"hidden"
name=
"has_layout"
value=
'0'
>
<div
class=
"col-md-12"
id=
"layoutCntr"
class=
"hide"
>
<div
class=
"col-md-12"
id=
"layoutCntr"
class=
"hide"
>
<!-- Layout Container -->
<!-- Layout Container -->
<?php
if
(
isset
(
$venue_data
,
$venue_data
->
layout
,
$venue_data
->
layout_details
)
&&
<?php
if
(
isset
(
$venue_data
,
$venue_data
->
layout
,
$venue_data
->
layout_details
)
&&
!
empty
(
$venue_data
)
&&
!
empty
(
$venue_data
->
layout
)
&&
!
empty
(
$venue_data
)
&&
!
empty
(
$venue_data
->
layout
)
&&
!
empty
(
$venue_data
->
layout_details
)
&&
!
empty
(
$venue_data
->
layout_details
)
&&
!
empty
(
$layoutDetails
=
json_decode
(
$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=
"col-md-3"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
Layout
</label>
<label>
Layout
</label>
...
@@ -197,7 +197,6 @@
...
@@ -197,7 +197,6 @@
<!-- Layout Container -->
<!-- Layout Container -->
<div
id=
"layoutCntrHtml"
class=
"hide"
>
<div
id=
"layoutCntrHtml"
class=
"hide"
>
<input
type=
"hidden"
name=
"has_layout"
value=
'1'
>
<div
class=
"col-md-3"
>
<div
class=
"col-md-3"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
Layout
</label>
<label>
Layout
</label>
...
...
assets/js/custom-script.js
View file @
68945745
...
@@ -3,63 +3,63 @@ jQuery(document).ready(function(){
...
@@ -3,63 +3,63 @@ jQuery(document).ready(function(){
});
});
function
setImg
(
input
,
id
)
{
function
setImg
(
input
,
id
)
{
if
(
input
.
files
&&
input
.
files
[
0
])
{
if
(
input
.
files
&&
input
.
files
[
0
])
{
var
reader
=
new
FileReader
();
var
reader
=
new
FileReader
();
reader
.
onload
=
function
(
e
)
{
reader
.
onload
=
function
(
e
)
{
$
(
'#'
+
id
).
attr
(
'src'
,
e
.
target
.
result
);
$
(
'#'
+
id
).
attr
(
'src'
,
e
.
target
.
result
);
};
};
reader
.
readAsDataURL
(
input
.
files
[
0
]);
reader
.
readAsDataURL
(
input
.
files
[
0
]);
}
}
}
}
function
setModal
(
header_msg
,
body_msg
){
function
setModal
(
header_msg
,
body_msg
){
jQuery
(
'[id="modal_body_msg"]'
).
html
(
body_msg
);
jQuery
(
'[id="modal_body_msg"]'
).
html
(
body_msg
);
jQuery
(
'[id="modal_header_msg"]'
).
html
(
header_msg
);
jQuery
(
'[id="modal_header_msg"]'
).
html
(
header_msg
);
jQuery
(
'[id="errModal"]'
).
modal
(
'show'
);
jQuery
(
'[id="errModal"]'
).
modal
(
'show'
);
}
}
function
slideTo
(
id
){
function
slideTo
(
id
){
jQuery
(
'html, body'
).
animate
({
jQuery
(
'html, body'
).
animate
({
scrollTop
:
jQuery
(
'[id="'
+
id
+
'"]'
).
offset
().
top
scrollTop
:
jQuery
(
'[id="'
+
id
+
'"]'
).
offset
().
top
},
800
);
},
800
);
}
}
function
modalTrigger
(
header
,
body_html
){
function
modalTrigger
(
header
,
body_html
){
jQuery
(
'[id="modal_content"]'
).
html
(
body_html
);
jQuery
(
'[id="modal_content"]'
).
html
(
body_html
);
jQuery
(
'[id="modal_header"]'
).
html
(
header
);
jQuery
(
'[id="modal_header"]'
).
html
(
header
);
jQuery
(
'[id="popup_modal"]'
).
modal
(
'show'
);
jQuery
(
'[id="popup_modal"]'
).
modal
(
'show'
);
}
}
function
modalHide
(){
function
modalHide
(){
jQuery
(
'[id="popup_modal"]'
).
modal
(
'hide'
);
jQuery
(
'[id="popup_modal"]'
).
modal
(
'hide'
);
}
}
function
addModalLoader
(){
function
addModalLoader
(){
jQuery
(
"[id='modal_content']"
).
addClass
(
'relative height_200'
);
jQuery
(
"[id='modal_content']"
).
addClass
(
'relative height_200'
);
jQuery
(
"[id='modal_content']"
).
prepend
(
"<div id='modal_loader_body' class='loader'></div>"
);
jQuery
(
"[id='modal_content']"
).
prepend
(
"<div id='modal_loader_body' class='loader'></div>"
);
}
}
function
remModalLoader
(){
function
remModalLoader
(){
jQuery
(
"[id='modal_loader_body']"
).
remove
();
jQuery
(
"[id='modal_loader_body']"
).
remove
();
jQuery
(
"[id='modal_content']"
).
removeClass
(
'relative height_200'
);
jQuery
(
"[id='modal_content']"
).
removeClass
(
'relative height_200'
);
}
}
function
showFullScreenLoader
(){
function
showFullScreenLoader
(){
var
thisObj
=
jQuery
(
'.overlay'
);
var
thisObj
=
jQuery
(
'.overlay'
);
thisObj
.
css
(
"display"
,
'block'
);
thisObj
.
css
(
"display"
,
'block'
);
thisObj
.
addClass
(
'relative'
);
thisObj
.
addClass
(
'relative'
);
thisObj
.
prepend
(
"<div id='fullScreenLoaderBody' class='loader'></div>"
);
thisObj
.
prepend
(
"<div id='fullScreenLoaderBody' class='loader'></div>"
);
}
}
function
remFullScreenLoader
(){
function
remFullScreenLoader
(){
var
thisObj
=
jQuery
(
'.overlay'
);
var
thisObj
=
jQuery
(
'.overlay'
);
thisObj
.
css
(
"display"
,
'none'
);
thisObj
.
css
(
"display"
,
'none'
);
jQuery
(
'[id="fullScreenLoaderBody"]'
).
remove
();
jQuery
(
'[id="fullScreenLoaderBody"]'
).
remove
();
thisObj
.
removeClass
(
'relative'
);
thisObj
.
removeClass
(
'relative'
);
}
}
function
viewImageModal
(
title
,
img_src
){
function
viewImageModal
(
title
,
img_src
){
...
@@ -116,8 +116,10 @@ function setLayout(){
...
@@ -116,8 +116,10 @@ function setLayout(){
var
layoutFlag
=
jQuery
(
'[name="host_cat_id"]'
).
find
(
":selected"
).
attr
(
'haveLayout'
);
var
layoutFlag
=
jQuery
(
'[name="host_cat_id"]'
).
find
(
":selected"
).
attr
(
'haveLayout'
);
if
(
layoutFlag
==
1
){
if
(
layoutFlag
==
1
){
jQuery
(
'[id="has_layout"]'
).
val
(
'1'
);
jQuery
(
'[id="layoutCntr"]'
).
html
(
jQuery
(
'[id="layoutCntrHtml"]'
).
html
());
jQuery
(
'[id="layoutCntr"]'
).
html
(
jQuery
(
'[id="layoutCntrHtml"]'
).
html
());
}
else
{
}
else
{
jQuery
(
'[id="has_layout"]'
).
val
(
'0'
);
jQuery
(
'[id="layoutCntr"]'
).
html
(
''
);
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