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
b0a45db3
Commit
b0a45db3
authored
Apr 16, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
c4787b65
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
22 deletions
+45
-22
.htaccess
.htaccess
+2
-1
Region_model.php
application/models/Region_model.php
+1
-2
footer-script.php
application/views/Templates/footer-script.php
+1
-0
venueAddForm.php
application/views/Venue/venueAddForm.php
+23
-17
custom-script.js
assets/js/custom-script.js
+18
-2
locationpicker.js
assets/js/locationpicker.js
+0
-0
No files found.
.htaccess
View file @
b0a45db3
...
...
@@ -2,5 +2,5 @@
RewriteEngine
On
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteRule
^(.*)$ index.php
?/$1 [L]
RewriteRule
^(.*)$ index.php
/$1 [L]
</
IfModule
>
\ No newline at end of file
application/models/Region_model.php
View file @
b0a45db3
...
...
@@ -53,4 +53,4 @@ class Region_model extends CI_Model {
return
$data
->
result
();
}
}
?>
\ No newline at end of file
?>
application/views/Templates/footer-script.php
View file @
b0a45db3
...
...
@@ -14,6 +14,7 @@
<script
src=
"
<?=
base_url
(
'assets/js/dataTables.bootstrap.min.js'
)
?>
"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/bootbox.min.js'
)
?>
"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/app.min.js'
)
?>
"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/locationpicker.js'
)
?>
"
type=
"text/javascript"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/custom-script.js'
)
?>
"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/parsley.min.js'
)
?>
"
></script>
<script
src=
"https://cdn.ckeditor.com/4.5.7/standard/ckeditor.js"
></script>
...
...
application/views/Venue/venueAddForm.php
View file @
b0a45db3
...
...
@@ -46,21 +46,8 @@
?>
</select>
</div>
<?php
}
?>
<div
class=
"form-group"
>
<label>
Venue Title
</label>
<input
type=
"text"
class=
"form-control required"
data-parsley-trigger=
"change"
data-parsley-minlength=
"1"
name=
"venue_name"
required=
""
placeholder=
"Enter Venue Title"
value=
"
<?=
(
isset
(
$venue_data
->
venue_name
))
?
$venue_data
->
venue_name
:
''
?>
"
>
</div>
<div
class=
"form-group"
>
<label>
Venue Address
</label>
<input
type=
"text"
class=
"form-control required"
data-parsley-trigger=
"change"
id=
"loc_search_1"
name=
"location"
placeholder=
"Venue Address"
value=
"
<?=
(
isset
(
$venue_data
->
location
))
?
$venue_data
->
location
:
''
?>
"
required
>
</div>
</div>
<div
class=
"col-md-6"
>
<?php
if
(
!
empty
(
$host_data
)){
?>
<?php
}
if
(
!
empty
(
$host_data
)){
?>
<div
class=
"form-group"
>
<label>
Venue
</label>
<select
name=
"host_cat_id"
class=
"form-control required"
...
...
@@ -79,12 +66,31 @@
</div>
<?php
}
?>
<div
class=
"form-group"
>
<label>
Venue Title
</label>
<input
type=
"text"
class=
"form-control required"
data-parsley-trigger=
"change"
data-parsley-minlength=
"1"
name=
"venue_name"
required=
""
placeholder=
"Enter Venue Title"
value=
"
<?=
(
isset
(
$venue_data
->
venue_name
))
?
$venue_data
->
venue_name
:
''
?>
"
>
</div>
<div
class=
"form-group"
>
<label>
Venue Details
</label>
<textarea
type=
"text"
class=
"ip_reg_form_input form-control reset-form-custom required"
placeholder=
"Venue Details"
name=
"venue_details"
data-parsley-trigger=
"change"
data-parsley-minlength=
"1"
required=
""
style=
"height:106px;"
>
<?=
(
isset
(
$venue_data
->
venue_details
))
?
$venue_data
->
venue_details
:
''
?>
</textarea>
<span
class=
"glyphicon form-control-feedback"
></span>
</div>
</div>
</div>
<div
class=
"col-md-6"
>
<div
class=
"form-group"
>
<label>
Venue Address
</label>
<input
type=
"text"
class=
"form-control required"
data-parsley-trigger=
"change"
id=
"loc_search_1"
name=
"location"
placeholder=
"Venue Address"
value=
"
<?=
(
isset
(
$venue_data
->
location
))
?
$venue_data
->
location
:
''
?>
"
required
>
</div>
<input
type=
"hidden"
id=
"gooLocLat"
value=
"
<?=
(
isset
(
$venue_data
->
location_lat
)
&&
!
empty
(
$venue_data
->
location_lat
))
?
$venue_data
->
location_lat
:
''
?>
"
/>
<input
type=
"hidden"
id=
"gooLocLng"
value=
"
<?=
(
isset
(
$venue_data
->
location_lng
)
&&
!
empty
(
$venue_data
->
location_lng
))
?
$venue_data
->
location_lng
:
''
?>
"
/>
<input
type=
"hidden"
id=
"gooLocZoom"
value=
"
<?=
(
isset
(
$venue_data
->
location
))
?
15
:
0
?>
"
/>
<div
id=
"locPointerMap"
style=
"height: 213px;"
></div>
<?php
if
(
!
isset
(
$venue_id
)
||
empty
(
$venue_id
)){
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
style=
"padding-top: 5px;"
>
<label
id=
"localityLabel"
>
Venue Locality
</label>
<div
id=
"showType"
class=
"hide"
>
<div
class=
"col-md-5"
>
...
...
assets/js/custom-script.js
View file @
b0a45db3
...
...
@@ -818,4 +818,21 @@ jQuery('[name="region_id"]').on('change',function(){
}
}
});
});
\ No newline at end of file
});
jQuery
(
'#locPointerMap'
).
locationpicker
({
location
:
{
latitude
:
jQuery
(
'#gooLocLat'
).
val
(),
longitude
:
jQuery
(
'#gooLocLng'
).
val
()},
radius
:
0
,
zoom
:
10
,
inputBinding
:
{
radiusInput
:
0
,
zoomInput
:
parseInt
(
jQuery
(
'#gooLocZoom'
).
val
()),
latitudeInput
:
jQuery
(
'#gooLocLat'
),
longitudeInput
:
jQuery
(
'#gooLocLng'
),
locationNameInput
:
jQuery
(
'#loc_search_1'
)
},
enableAutocomplete
:
true
,
onchanged
:
function
(
currentLocation
,
radius
,
isMarkerDropped
)
{
jQuery
(
'#gooLocZoom'
).
val
(
'15'
);
}
});
assets/js/locationpicker.js
0 → 100644
View file @
b0a45db3
This diff is collapsed.
Click to expand it.
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