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
6e77756c
Commit
6e77756c
authored
Oct 31, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
2a3e1ff2
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
26 additions
and
1079 deletions
+26
-1079
database.php
application/config/database.php
+2
-2
Customer_Booking.php
application/controllers/Customer_Booking.php
+0
-79
Dashboard.php
application/controllers/Dashboard.php
+3
-7
Event.php
application/controllers/Event.php
+1
-1
HotelCity.php
application/controllers/HotelCity.php
+0
-199
generals_helper.php
application/helpers/generals_helper.php
+0
-3
Booking_model.php
application/models/Booking_model.php
+2
-4
HotelCity_model.php
application/models/HotelCity_model.php
+0
-96
Login_model.php
application/models/Login_model.php
+1
-1
Staff_model.php
application/models/Staff_model.php
+4
-4
checkinReport.php
application/views/Checker/checkinReport.php
+0
-259
care_home.php
application/views/Customer_Booking/care_home.php
+0
-167
hotelCityAddForm.php
application/views/HotelCity/hotelCityAddForm.php
+0
-79
viewHotelCityList.php
application/views/HotelCity/viewHotelCityList.php
+0
-109
promocodeForm.php
application/views/Promocode/promocodeForm.php
+2
-2
staffForm.php
application/views/Staff/staffForm.php
+0
-19
viewStaff.php
application/views/Staff/viewStaff.php
+2
-4
footer-script.php
application/views/Templates/footer-script.php
+0
-1
header-script.php
application/views/Templates/header-script.php
+0
-1
left-menu.php
application/views/Templates/left-menu.php
+7
-20
custom-style.css
assets/css/custom-style.css
+2
-6
custom-script.js
assets/js/custom-script.js
+0
-11
CUST_QR_174_1571999616.png
assets/uploads/user/CUST_QR_174_1571999616.png
+0
-0
timeOutBackup.sql
sql/timeOutBackup.sql
+0
-0
timeout_run_sql.sql
sql/timeout_run_sql.sql
+0
-5
No files found.
application/config/database.php
View file @
6e77756c
...
@@ -75,10 +75,10 @@ $query_builder = TRUE;
...
@@ -75,10 +75,10 @@ $query_builder = TRUE;
$db
[
'default'
]
=
array
(
$db
[
'default'
]
=
array
(
'dsn'
=>
''
,
'dsn'
=>
''
,
'hostname'
=>
'
192.168.140.123
'
,
'hostname'
=>
'
localhost
'
,
'username'
=>
'root'
,
'username'
=>
'root'
,
'password'
=>
'Golden_123'
,
'password'
=>
'Golden_123'
,
'database'
=>
't
obin_eventTimeOu
t'
,
'database'
=>
't
imeout_ua
t'
,
'dbdriver'
=>
'mysqli'
,
'dbdriver'
=>
'mysqli'
,
'dbprefix'
=>
''
,
'dbprefix'
=>
''
,
'pconnect'
=>
FALSE
,
'pconnect'
=>
FALSE
,
...
...
application/controllers/Customer_Booking.php
deleted
100644 → 0
View file @
2a3e1ff2
<?php
defined
(
'BASEPATH'
)
OR
exit
(
'No direct script access allowed'
);
class
Customer_Booking
extends
CI_Controller
{
public
function
__construct
()
{
parent
::
__construct
();
date_default_timezone_set
(
"Asia/Riyadh"
);
if
(
!
$this
->
session
->
userdata
(
'logged_in'
))
{
redirect
(
base_url
(
'Login'
));
}
$userType
=
$this
->
session
->
userdata
[
'user_type'
];
if
(
$userType
!=
5
){
redirect
(
base_url
(
'Dashboard'
));
}
}
public
function
index
()
{
$template
[
'page'
]
=
'Customer_Booking/care_home'
;
$template
[
'menu'
]
=
'Booking Management'
;
$template
[
'smenu'
]
=
'View Bookings'
;
$template
[
'pTitle'
]
=
"View Bookings"
;
$template
[
'pDescription'
]
=
"View and Manage Bookings"
;
$template
[
'page_head'
]
=
"Booking Management"
;
if
(
isset
(
$_POST
)
&&
!
empty
(
$_POST
)
&&
((
isset
(
$_POST
[
'user_id'
])
&&
!
empty
(
$_POST
[
'user_id'
]))
||
(
isset
(
$_POST
[
'booking_id'
])
&&
!
empty
(
$_POST
[
'booking_id'
])))){
$user_id
=
$booking_id
=
''
;
$bookData
=
$custData
=
array
();
$this
->
load
->
model
(
'Booking_model'
);
$this
->
load
->
model
(
'Customer_model'
);
if
(
isset
(
$_POST
[
'user_id'
])
&&
!
empty
(
$user_id
=
$_POST
[
'user_id'
])
&&
isset
(
$_POST
[
'booking_id'
])
&&
!
empty
(
$booking_id
=
$_POST
[
'booking_id'
])){
$bookData
=
$this
->
Booking_model
->
getBookingData
(
''
,
''
,
''
,
''
,
$booking_id
);
$custData
=
$this
->
Customer_model
->
getCustomerData
(
decode_param
(
$user_id
));
}
else
if
(
isset
(
$_POST
[
'user_id'
])
&&
!
empty
(
$user_id
=
$_POST
[
'user_id'
])){
$bookData
=
$this
->
Booking_model
->
getBookingData
(
''
,
''
,
''
,
decode_param
(
$user_id
));
$custData
=
$this
->
Customer_model
->
getCustomerData
(
decode_param
(
$user_id
));
}
else
if
(
isset
(
$_POST
[
'booking_id'
])
&&
!
empty
(
$booking_id
=
$_POST
[
'booking_id'
])){
$bookData
=
$this
->
Booking_model
->
getBookingData
(
''
,
''
,
''
,
''
,
$booking_id
);
if
(
!
empty
(
$bookData
)){
$custData
=
$this
->
Customer_model
->
getCustomerData
(
$bookData
[
0
]
->
customer_id
);
}
}
$template
[
'bookData'
]
=
$bookData
;
$template
[
'custData'
]
=
$custData
;
}
$this
->
load
->
view
(
'template'
,
$template
);
}
public
function
userSearch
(){
if
(
!
isset
(
$_GET
)
||
empty
(
$_GET
)
||
!
isset
(
$_GET
[
'term'
])
||
empty
(
$key
=
$_GET
[
'term'
])){
exit
;
}
$sql
=
"SELECT customer_id,name,phone,email FROM customer
WHERE name LIKE '%"
.
$key
.
"%' OR phone LIKE '%"
.
$key
.
"%' OR email LIKE '%"
.
$key
.
"%' LIMIT 10"
;
$cust
=
$this
->
db
->
query
(
$sql
)
->
result_array
();
if
(
empty
(
$cust
)){
exit
;
}
$custDetails
=
array
();
foreach
(
$cust
AS
$custData
)
{
$name
=
(
!
empty
(
$custData
[
'name'
]))
?
'Name : '
.
$custData
[
'name'
]
:
'Name : -- '
;
$name
.=
(
!
empty
(
$custData
[
'email'
]))
?
', Mail: '
.
$custData
[
'email'
]
:
''
;
$name
.=
(
!
empty
(
$custData
[
'phone'
]))
?
', Phone: '
.
$custData
[
'phone'
]
:
''
;
$cust_id
=
encode_param
(
$custData
[
'customer_id'
]);
$custDetails
[]
=
array
(
'data'
=>
$cust_id
,
'label'
=>
$name
);
}
echo
json_encode
(
$custDetails
);
}
}
?>
\ No newline at end of file
application/controllers/Dashboard.php
View file @
6e77756c
...
@@ -6,18 +6,12 @@ class Dashboard extends CI_Controller {
...
@@ -6,18 +6,12 @@ class Dashboard extends CI_Controller {
public
function
__construct
()
{
public
function
__construct
()
{
parent
::
__construct
();
parent
::
__construct
();
date_default_timezone_set
(
"Asia/Riyadh"
);
date_default_timezone_set
(
"Asia/Riyadh"
);
$this
->
load
->
model
(
'Dashboard_model'
);
if
(
!
$this
->
session
->
userdata
(
'logged_in'
))
{
if
(
!
$this
->
session
->
userdata
(
'logged_in'
))
{
redirect
(
base_url
(
'Login'
));
redirect
(
base_url
(
'Login'
));
}
}
$userType
=
$this
->
session
->
userdata
[
'user_type'
];
if
(
$userType
==
5
){
redirect
(
base_url
(
'Customer_Booking'
));
}
redirect
(
base_url
(
'Event/listEvents'
));
redirect
(
base_url
(
'Event/listEvents'
));
$this
->
load
->
model
(
'Dashboard_model'
);
}
}
public
function
index
()
{
public
function
index
()
{
...
@@ -27,5 +21,7 @@ class Dashboard extends CI_Controller {
...
@@ -27,5 +21,7 @@ class Dashboard extends CI_Controller {
$this
->
load
->
view
(
'template'
,
$template
);
$this
->
load
->
view
(
'template'
,
$template
);
}
}
}
}
?>
?>
application/controllers/Event.php
View file @
6e77756c
...
@@ -186,7 +186,7 @@ class Event extends CI_Controller {
...
@@ -186,7 +186,7 @@ class Event extends CI_Controller {
$subject
=
"TimeOut, New Event Created"
;
$subject
=
"TimeOut, New Event Created"
;
$emailId
=
$settings
[
'admin_mail_id'
];
$emailId
=
$settings
[
'admin_mail_id'
];
$message
=
"<html><body>
$message
=
"<html><body>
New Event Created, event name: <strong>"
.
$_POST
[
'event_name_en'
]
.
"</strong>. Event URL : "
.
base_url
()
.
"
Event/listEvents
New Event Created, event name: <strong>"
.
$_POST
[
'event_name_en'
]
.
"</strong>. Event URL : "
.
base_url
()
.
"
eventdetail?event_id=
$event_id
</body></html>"
;
</body></html>"
;
$this
->
Api_model
->
send_mail
(
$subject
,
$emailId
,
$message
);
$this
->
Api_model
->
send_mail
(
$subject
,
$emailId
,
$message
);
}
}
...
...
application/controllers/HotelCity.php
deleted
100644 → 0
View file @
2a3e1ff2
<?php
defined
(
'BASEPATH'
)
OR
exit
(
'No direct script access allowed'
);
class
HotelCity
extends
CI_Controller
{
public
function
__construct
()
{
parent
::
__construct
();
date_default_timezone_set
(
"Asia/Riyadh"
);
$this
->
load
->
model
(
'HotelCity_model'
);
$this
->
load
->
model
(
'Dashboard_model'
);
if
(
!
$this
->
session
->
userdata
(
'logged_in'
))
{
redirect
(
base_url
(
'Login'
));
}
$role
=
roleManagement
();
if
(
!
array_key_exists
(
'City'
,
$role
)){
redirect
(
base_url
(
'Dashboard'
));
}
}
function
listHotelCity
(){
$template
[
'page'
]
=
'HotelCity/viewHotelCityList'
;
$template
[
'menu'
]
=
'Hotel City Management'
;
$template
[
'smenu'
]
=
'View Hotel City List'
;
$template
[
'pTitle'
]
=
"Hotel City Management"
;
$template
[
'pDescription'
]
=
"View Hotel City List"
;
$template
[
'hotelCityData'
]
=
$this
->
HotelCity_model
->
getHotelCityData
();
$this
->
load
->
view
(
'template'
,
$template
);
}
function
addHotelCity
(){
$this
->
load
->
model
(
'HotelCity_model'
);
$template
[
'hotelCityData'
]
=
$this
->
HotelCity_model
->
getHotelCityData
();
$template
[
'page'
]
=
'HotelCity/hotelCityAddForm'
;
$template
[
'menu'
]
=
'Hotel City Management'
;
$template
[
'smenu'
]
=
'Add Hotel City'
;
$template
[
'pTitle'
]
=
"Add Hotel City"
;
$template
[
'pDescription'
]
=
"Create New Hotel City"
;
$this
->
load
->
view
(
'template'
,
$template
);
}
function
createHotelCity
(){
$flashMsg
=
array
(
'message'
=>
'Something went wrong, please try again..!'
,
'class'
=>
'error'
);
if
(
!
isset
(
$_POST
)
||
empty
(
$_POST
)){
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
redirect
(
base_url
(
'HotelCity/addHotelCity'
));
}
$err
=
0
;
$errMsg
=
''
;
if
(
$err
==
0
&&
(
!
isset
(
$_POST
[
'hotel_city_name_EN'
])
||
empty
(
$_POST
[
'hotel_city_name_EN'
]))){
$err
=
1
;
$errMsg
=
'Provide a Hotel City Name in English'
;
}
else
if
(
$err
==
0
&&
(
!
isset
(
$_FILES
)
||
!
isset
(
$_FILES
[
'hotel_city_icon'
])
||
empty
(
$_FILES
[
'hotel_city_icon'
]))){
$err
=
1
;
$errMsg
=
'Provide a Hotel City Icon'
;
}
$latLng
=
getLocationLatLng
(
$_POST
[
'hotel_city_name_EN'
]);
if
(
$err
==
0
&&
empty
(
$latLng
)){
$err
=
1
;
$errMsg
=
'Provide a proper Hotel City Name'
;
}
$_POST
[
'hotel_city_lat'
]
=
$latLng
[
'lat'
];
$_POST
[
'hotel_city_lng'
]
=
$latLng
[
'lng'
];
if
(
$err
==
0
){
$config
=
set_upload_service
(
"assets/uploads/services"
);
$this
->
load
->
library
(
'upload'
);
$config
[
'file_name'
]
=
time
()
.
"_"
.
$_FILES
[
'hotel_city_icon'
][
'name'
];
$this
->
upload
->
initialize
(
$config
);
if
(
!
$this
->
upload
->
do_upload
(
'hotel_city_icon'
)){
$err
=
1
;
$errMsg
=
$this
->
upload
->
display_errors
();
}
else
{
$upload_data
=
$this
->
upload
->
data
();
$_POST
[
'hotel_city_icon'
]
=
$config
[
'upload_path'
]
.
"/"
.
$upload_data
[
'file_name'
];
}
}
if
(
$err
==
1
){
$flashMsg
[
'message'
]
=
$errMsg
;
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
redirect
(
base_url
(
'HotelCity/addHotelCity'
));
}
$status
=
$this
->
HotelCity_model
->
createHotelCity
(
$_POST
);
if
(
$status
==
1
){
$flashMsg
[
'class'
]
=
'success'
;
$flashMsg
[
'message'
]
=
'HotelCity Created'
;
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
redirect
(
base_url
(
'HotelCity/listHotelCity'
));
}
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
redirect
(
base_url
(
'HotelCity/addHotelCity'
));
}
function
editHotelCity
(
$hotel_city_id
=
''
){
$flashMsg
=
array
(
'message'
=>
'Something went wrong, please try again..!'
,
'class'
=>
'error'
);
if
(
empty
(
$hotel_city_id
)
||
empty
(
decode_param
(
$hotel_city_id
))){
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
redirect
(
base_url
(
'HotelCity/listHotelCity'
));
}
$template
[
'page'
]
=
'HotelCity/hotelCityAddForm'
;
$template
[
'menu'
]
=
'Hotel City Management'
;
$template
[
'smenu'
]
=
'Edit Hotel City'
;
$template
[
'pTitle'
]
=
"Edit Hotel City"
;
$template
[
'pDescription'
]
=
"Update Hotel City Data"
;
$template
[
'hotel_city_id'
]
=
$hotel_city_id
;
$template
[
'hotelCityData'
]
=
$this
->
HotelCity_model
->
getHotelCityData
(
decode_param
(
$hotel_city_id
));
$this
->
load
->
view
(
'template'
,
$template
);
}
function
updateHotelCity
(
$hotel_city_id
=
''
){
$flashMsg
=
array
(
'message'
=>
'Something went wrong, please try again..!'
,
'class'
=>
'error'
);
$err
=
0
;
$errMsg
=
''
;
if
(
!
isset
(
$_POST
)
||
empty
(
$_POST
)
||
empty
(
$hotel_city_id
)){
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
redirect
(
base_url
(
'HotelCity/listHotelCity'
));
}
if
(
$err
==
0
&&
(
!
isset
(
$_POST
[
'hotel_city_name_EN'
])
||
empty
(
$_POST
[
'hotel_city_name_EN'
]))){
$err
=
1
;
$errMsg
=
'Provide a Hotel City Name in English'
;
}
if
(
$err
==
1
){
$flashMsg
[
'message'
]
=
$errMsg
;
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
redirect
(
base_url
(
'HotelCity/editHotelCity/'
.
$hotel_city_id
));
}
if
(
isset
(
$_FILES
)
&&
isset
(
$_FILES
[
'hotel_city_icon'
])
&&
!
empty
(
$_FILES
[
'hotel_city_icon'
])){
$config
=
set_upload_service
(
"assets/uploads/services"
);
$this
->
load
->
library
(
'upload'
);
$config
[
'file_name'
]
=
time
()
.
"_"
.
$_FILES
[
'hotel_city_icon'
][
'name'
];
$this
->
upload
->
initialize
(
$config
);
if
(
$this
->
upload
->
do_upload
(
'hotel_city_icon'
)){
$upload_data
=
$this
->
upload
->
data
();
$_POST
[
'hotel_city_icon'
]
=
$config
[
'upload_path'
]
.
"/"
.
$upload_data
[
'file_name'
];
}
}
$latLng
=
getLocationLatLng
(
$_POST
[
'hotel_city_name_EN'
]);
if
(
$err
==
0
&&
empty
(
$latLng
)){
$err
=
1
;
$errMsg
=
'Provide a proper Hotel City Name'
;
}
$_POST
[
'hotel_city_lat'
]
=
$latLng
[
'lat'
];
$_POST
[
'hotel_city_lng'
]
=
$latLng
[
'lng'
];
if
(
$err
==
0
){
$config
=
set_upload_service
(
"assets/uploads/services"
);
$this
->
load
->
library
(
'upload'
);
$config
[
'file_name'
]
=
time
()
.
"_"
.
$_FILES
[
'hotel_city_icon'
][
'name'
];
$this
->
upload
->
initialize
(
$config
);
if
(
!
$this
->
upload
->
do_upload
(
'hotel_city_icon'
)){
$err
=
1
;
$errMsg
=
$this
->
upload
->
display_errors
();
}
else
{
$upload_data
=
$this
->
upload
->
data
();
$_POST
[
'hotel_city_icon'
]
=
$config
[
'upload_path'
]
.
"/"
.
$upload_data
[
'file_name'
];
}
}
$status
=
$this
->
HotelCity_model
->
updateHotelCity
(
decode_param
(
$hotel_city_id
),
$_POST
);
if
(
$status
==
1
){
$flashMsg
[
'class'
]
=
'success'
;
$flashMsg
[
'message'
]
=
'HotelCity Created'
;
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
redirect
(
base_url
(
'HotelCity/listHotelCity'
));
}
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
redirect
(
base_url
(
'HotelCity/editHotelCity/'
.
$hotel_city_id
));
}
function
changeStatus
(){
if
(
!
isset
(
$_POST
)
||
!
isset
(
$_POST
[
'hotel_city_id'
])
||
empty
(
$_POST
[
'hotel_city_id'
])
||
!
isset
(
$_POST
[
'status'
])
||
$_POST
[
'status'
]
==
''
){
echo
json_encode
(
array
(
'status'
=>
'0'
));
exit
;
}
$status
=
$_POST
[
'status'
];
$hotel_city_id
=
decode_param
(
$_POST
[
'hotel_city_id'
]);
$resp
=
$this
->
HotelCity_model
->
changeStatus
(
$hotel_city_id
,
$status
);
if
(
$resp
){
echo
json_encode
(
array
(
'status'
=>
'1'
));
exit
;
}
echo
json_encode
(
array
(
'status'
=>
'0'
));
exit
;
}
}
?>
application/helpers/generals_helper.php
View file @
6e77756c
...
@@ -175,9 +175,6 @@
...
@@ -175,9 +175,6 @@
'Organizer'
=>
array
(
1
,
2
,
3
,
4
),
'Booking'
=>
array
(
1
,
2
,
3
,
4
),
'Organizer'
=>
array
(
1
,
2
,
3
,
4
),
'Booking'
=>
array
(
1
,
2
,
3
,
4
),
'Notification'
=>
array
(
1
,
2
,
3
,
4
),
'HotelCity'
=>
array
(
1
,
2
,
3
,
4
));
'Notification'
=>
array
(
1
,
2
,
3
,
4
),
'HotelCity'
=>
array
(
1
,
2
,
3
,
4
));
break
;
break
;
case
5
:
$menus
=
array
(
'Customer'
=>
array
(),
'Customer_Booking'
=>
array
());
break
;
}
}
return
$menus
;
return
$menus
;
}
}
...
...
application/models/Booking_model.php
View file @
6e77756c
...
@@ -5,12 +5,10 @@ class Booking_model extends CI_Model {
...
@@ -5,12 +5,10 @@ class Booking_model extends CI_Model {
parent
::
_construct
();
parent
::
_construct
();
}
}
public
function
getBookingData
(
$booking_id
=
''
,
$provider_id
=
''
,
$view
=
'0,1,2,3,5'
,
$customer_id
=
''
,
$bookId
=
''
){
public
function
getBookingData
(
$booking_id
=
''
,
$provider_id
=
''
,
$view
=
'0,1,2,3,5'
){
$cond
=
(
!
empty
(
$view
))
?
" BOK.status IN (
$view
) "
:
" BOK.status != '4' "
;
$cond
=
(
!
empty
(
$view
))
?
" BOK.status IN (
$view
) "
:
" BOK.status != '4' "
;
$cond
.=
(
!
empty
(
$bookId
))
?
" AND BOK.bookId='
$bookId
' "
:
""
;
$cond
.=
(
!
empty
(
$booking_id
))
?
" AND BOK.id='
$booking_id
' "
:
""
;
$cond
.=
(
!
empty
(
$booking_id
))
?
" AND BOK.id='
$booking_id
' "
:
""
;
$cond
.=
(
!
empty
(
$provider_id
))
?
" AND EVT.provider_id='
$provider_id
' "
:
""
;
$cond
.=
(
!
empty
(
$provider_id
))
?
" AND EVT.provider_id='
$provider_id
' "
:
""
;
$cond
.=
(
!
empty
(
$customer_id
))
?
" AND BOK.customer_id='
$customer_id
' "
:
""
;
$sql
=
"SELECT BOK.id AS booking_id,CUST.customer_id,CUST.name AS customer_name,EVT.provider_id,
$sql
=
"SELECT BOK.id AS booking_id,CUST.customer_id,CUST.name AS customer_name,EVT.provider_id,
CUST.phone AS customer_phone,CUST.email AS customer_email,CUST.gender,EVT.venue_id,
CUST.phone AS customer_phone,CUST.email AS customer_email,CUST.gender,EVT.venue_id,
...
@@ -33,7 +31,7 @@ class Booking_model extends CI_Model {
...
@@ -33,7 +31,7 @@ class Booking_model extends CI_Model {
WHERE
$cond
"
;
WHERE
$cond
"
;
$bookingData
=
$this
->
db
->
query
(
$sql
);
$bookingData
=
$this
->
db
->
query
(
$sql
);
if
(
$bookingData
->
num_rows
()
<=
0
){
if
(
empty
(
$bookingData
)
){
return
0
;
return
0
;
}
}
...
...
application/models/HotelCity_model.php
deleted
100644 → 0
View file @
2a3e1ff2
<?php
class
HotelCity_model
extends
CI_Model
{
public
function
_consruct
(){
parent
::
_construct
();
}
public
function
getHotelCityData
(
$hotelCity_id
=
''
,
$view
=
''
){
$cond
=
(
!
empty
(
$view
))
?
" status IN (
$view
) "
:
" status != '2' "
;
$cond
.=
(
!
empty
(
$hotelCity_id
))
?
" AND hotel_city_id='
$hotelCity_id
' "
:
""
;
$hotelCityData
=
$this
->
db
->
query
(
"SELECT * FROM hotel_cities WHERE
$cond
"
);
if
(
!
empty
(
$hotelCityData
)){
if
(
empty
(
$hotelCity_id
)){
$hotelCityData
=
$hotelCityData
->
result_array
();
foreach
(
$hotelCityData
AS
$key
=>
$hotelCity
)
{
$regData
=
langTranslator
(
$hotelCity
[
'hotel_city_id'
],
'HCTY'
,
''
);
$hotelCityData
[
$key
]
=
array_merge
(
$hotelCityData
[
$key
],
$regData
);
}
}
else
{
$regData
=
langTranslator
(
$hotelCity_id
,
'HCTY'
,
''
);
$hotelCityData
=
$hotelCityData
->
row_array
();
$hotelCityData
=
array_merge
(
$hotelCityData
,
$regData
);
}
return
json_decode
(
json_encode
(
$hotelCityData
));
}
else
{
return
0
;
}
}
public
function
createHotelCity
(
$hotelCityData
=
array
()){
if
(
empty
(
$hotelCityData
)){
return
0
;
}
$status
=
$this
->
db
->
insert
(
'hotel_cities'
,
array
(
'hotel_city_icon'
=>
$hotelCityData
[
'hotel_city_icon'
],
'hotel_city_lat'
=>
$hotelCityData
[
'hotel_city_lat'
],
'hotel_city_lng'
=>
$hotelCityData
[
'hotel_city_lng'
]));
if
(
$status
){
$hotelCity_id
=
$this
->
db
->
insert_id
();
$languages
=
getLanguages
();
if
(
!
empty
(
$languages
)){
$insertArr
=
array
();
foreach
(
$languages
AS
$lang
)
{
if
(
!
isset
(
$hotelCityData
[
'hotel_city_name_'
.
$lang
])
||
empty
(
$hotelCityData
[
'hotel_city_name_'
.
$lang
])){
continue
;
}
$insertArr
[]
=
array
(
'hotel_city_id'
=>
$hotelCity_id
,
'language_code'
=>
$lang
,
'hotel_city_name'
=>
$hotelCityData
[
'hotel_city_name_'
.
$lang
]);
}
if
(
!
empty
(
$insertArr
)){
$this
->
db
->
insert_batch
(
'translator_hotel_city'
,
$insertArr
);
}
}
}
return
$status
;
}
public
function
updateHotelCity
(
$hotelCity_id
=
''
,
$hotelCityData
=
array
()){
if
(
empty
(
$hotelCity_id
)
||
empty
(
$hotelCityData
)){
return
0
;
}
$languages
=
getLanguages
();
if
(
!
empty
(
$languages
)){
$insertArr
=
array
();
foreach
(
$languages
AS
$lang
)
{
if
(
!
isset
(
$hotelCityData
[
'hotel_city_name_'
.
$lang
])
||
empty
(
$hotelCityData
[
'hotel_city_name_'
.
$lang
])){
unset
(
$hotelCityData
[
'hotel_city_name_'
.
$lang
]);
continue
;
}
$insertArr
[]
=
array
(
'hotel_city_id'
=>
$hotelCity_id
,
'language_code'
=>
$lang
,
'hotel_city_name'
=>
$hotelCityData
[
'hotel_city_name_'
.
$lang
]);
unset
(
$hotelCityData
[
'hotel_city_name_'
.
$lang
]);
}
$this
->
db
->
delete
(
'translator_hotel_city'
,
array
(
'hotel_city_id'
=>
$hotelCity_id
));
if
(
!
empty
(
$insertArr
)){
$this
->
db
->
insert_batch
(
'translator_hotel_city'
,
$insertArr
);
}
}
$status
=
$this
->
db
->
update
(
'hotel_cities'
,
$hotelCityData
,
array
(
'hotel_city_id'
=>
$hotelCity_id
));
return
$status
;
}
public
function
changeStatus
(
$hotelCity_id
=
''
,
$status
=
'0'
){
if
(
empty
(
$hotelCity_id
)){
return
0
;
}
$status
=
$this
->
db
->
update
(
'hotel_cities'
,
array
(
'status'
=>
$status
),
array
(
'hotel_city_id'
=>
$hotelCity_id
));
return
$status
;
}
}
?>
application/models/Login_model.php
View file @
6e77756c
...
@@ -9,7 +9,7 @@ class Login_model extends CI_Model {
...
@@ -9,7 +9,7 @@ class Login_model extends CI_Model {
public
function
login
(
$username
,
$password
)
{
public
function
login
(
$username
,
$password
)
{
$query
=
$this
->
db
->
query
(
"SELECT * FROM users
$query
=
$this
->
db
->
query
(
"SELECT * FROM users
WHERE username='
$username
' AND password='
$password
' AND
WHERE username='
$username
' AND password='
$password
' AND
user_type IN (1,2,4
,5
) AND status='1'"
);
user_type IN (1,2,4) AND status='1'"
);
if
(
$query
->
num_rows
()
>
0
&&
!
empty
(
$query
)){
if
(
$query
->
num_rows
()
>
0
&&
!
empty
(
$query
)){
$result
=
$query
->
row
();
$result
=
$query
->
row
();
...
...
application/models/Staff_model.php
View file @
6e77756c
...
@@ -8,7 +8,7 @@ class Staff_model extends CI_Model {
...
@@ -8,7 +8,7 @@ class Staff_model extends CI_Model {
$cond
=
(
!
empty
(
$view
))
?
" AND status IN (
$view
) "
:
" status != '2' "
;
$cond
=
(
!
empty
(
$view
))
?
" AND status IN (
$view
) "
:
" status != '2' "
;
$cond
.=
(
!
empty
(
$staff_id
))
?
" AND id='
$staff_id
' "
:
""
;
$cond
.=
(
!
empty
(
$staff_id
))
?
" AND id='
$staff_id
' "
:
""
;
$staffData
=
$this
->
db
->
query
(
"SELECT * FROM users WHERE user_type
IN (4,5)
"
.
$cond
);
$staffData
=
$this
->
db
->
query
(
"SELECT * FROM users WHERE user_type
='4'
"
.
$cond
);
if
(
!
empty
(
$staffData
)){
if
(
!
empty
(
$staffData
)){
return
(
!
empty
(
$staff_id
))
?
$staffData
->
row
()
:
$staffData
->
result
();
return
(
!
empty
(
$staff_id
))
?
$staffData
->
row
()
:
$staffData
->
result
();
...
@@ -22,7 +22,7 @@ class Staff_model extends CI_Model {
...
@@ -22,7 +22,7 @@ class Staff_model extends CI_Model {
$userNameChk
=
$this
->
db
->
query
(
"SELECT * FROM users
$userNameChk
=
$this
->
db
->
query
(
"SELECT * FROM users
WHERE status!='2' AND username='"
.
$staff_data
[
'username'
]
.
"' AND
WHERE status!='2' AND username='"
.
$staff_data
[
'username'
]
.
"' AND
user_type
IN (4,5)
"
);
user_type
='4'
"
);
if
(
!
empty
(
$userNameChk
)
&&
$userNameChk
->
num_rows
()
>
0
)
return
2
;
if
(
!
empty
(
$userNameChk
)
&&
$userNameChk
->
num_rows
()
>
0
)
return
2
;
$status
=
$this
->
db
->
insert
(
'users'
,
$status
=
$this
->
db
->
insert
(
'users'
,
...
@@ -30,7 +30,7 @@ class Staff_model extends CI_Model {
...
@@ -30,7 +30,7 @@ class Staff_model extends CI_Model {
'password'
=>
$staff_data
[
'password'
],
'password'
=>
$staff_data
[
'password'
],
'display_name'
=>
$staff_data
[
'display_name'
],
'display_name'
=>
$staff_data
[
'display_name'
],
'profile_image'
=>
$staff_data
[
'profile_image'
],
'profile_image'
=>
$staff_data
[
'profile_image'
],
'user_type'
=>
$staff_data
[
'user_type'
]
,
'status'
=>
'1'
));
'user_type'
=>
'4'
,
'status'
=>
'1'
));
return
$status
;
return
$status
;
}
}
...
@@ -39,7 +39,7 @@ class Staff_model extends CI_Model {
...
@@ -39,7 +39,7 @@ class Staff_model extends CI_Model {
return
0
;
return
0
;
$userNameChk
=
$this
->
db
->
query
(
"SELECT * FROM users
$userNameChk
=
$this
->
db
->
query
(
"SELECT * FROM users
WHERE status!='2' AND username='"
.
$staff_data
[
'username'
]
.
"' AND
WHERE status!='2' AND username='"
.
$staff_data
[
'username'
]
.
"' AND
user_type
IN (4,5)
AND id!='"
.
$staff_id
.
"'"
);
user_type
='4'
AND id!='"
.
$staff_id
.
"'"
);
if
(
!
empty
(
$userNameChk
)
&&
$userNameChk
->
num_rows
()
>
0
)
{
return
2
;
}
if
(
!
empty
(
$userNameChk
)
&&
$userNameChk
->
num_rows
()
>
0
)
{
return
2
;
}
if
(
!
isset
(
$staff_data
[
'profile_image'
])
||
empty
(
$staff_data
[
'profile_image'
])){
if
(
!
isset
(
$staff_data
[
'profile_image'
])
||
empty
(
$staff_data
[
'profile_image'
])){
...
...
application/views/Checker/checkinReport.php
deleted
100644 → 0
View file @
2a3e1ff2
<div
class=
"content-wrapper"
>
<!-- Content Header (Page header) -->
<section
class=
"content-header"
>
<h1>
<?=
$page_title
?>
<small>
<?=
$page_desc
?>
</small>
</h1>
<ol
class=
"breadcrumb"
>
<li><a
href=
"
<?=
base_url
()
?>
"
><i
class=
"fa fa-star-o"
aria-hidden=
"true"
></i>
Home
</a></li>
<li>
<?=
$menu
?>
</li>
<li
class=
"active"
>
<?=
$sub_menu
?>
</li>
</ol>
</section>
<!-- Main content -->
<section
class=
"content"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<?php
if
(
$this
->
session
->
flashdata
(
'message'
))
{
$flashdata
=
$this
->
session
->
flashdata
(
'message'
);
?>
<div
class=
"alert alert-
<?=
$flashdata
[
'class'
]
?>
"
>
<button
class=
"close"
data-dismiss=
"alert"
type=
"button"
>
×
</button>
<?=
$flashdata
[
'message'
]
?>
</div>
<?php
}
?>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"box box-warning"
>
<div
class=
"box-header"
>
<h3
class=
"box-title"
>
Search Conditions
</h3>
</div>
<div
class=
"box-body"
>
<form
id=
"where_cond"
>
<div
class=
"col-md-12"
>
<?php
if
(
$this
->
session
->
userdata
[
'user_type'
]
==
1
){
?>
<div
class=
"col-md-3"
>
<div
class=
"form-group "
>
<label>
Select Organizer
</label>
<div
class=
"col-md-12"
>
<select
name=
"provider_id"
class=
"form-control"
data-parsley-trigger=
"change"
>
<option
selected
disabled
>
Select Organizer
</option>
<option
value=
""
>
All Bookings
</option>
<?php
if
(
!
empty
(
$providerData
)){
foreach
(
$providerData
as
$provider
)
{
echo
'<option value="'
.
$provider
->
provider_id
.
'">'
.
$provider
->
name
.
'</option>'
;
}
}
?>
</select>
</div>
</div>
</div>
<?php
}
else
{
?>
<input
type=
"hidden"
name=
"provider_id"
value=
"
<?=
$this
->
session
->
userdata
[
'id'
]
?>
"
>
<?php
}
?>
<div
class=
"col-md-6"
>
<label>
Select Report Generation Date Range
</label>
<div
class=
"form-group "
>
<div
class=
"col-md-6"
>
<div
class=
"input-group date"
data-provide=
"datepicker"
>
<input
id=
"datepicker"
type=
"text"
class=
"form-control"
data-parsley-trigger=
"change"
data-parsley-minlength=
"2"
name=
"start_date"
placeholder=
"Start Date"
autocomplete=
"off"
>
<div
class=
"input-group-addon"
>
<i
class=
"fa fa-calendar"
></i>
</div>
</div>
</div>
<div
class=
"col-md-6"
>
<div
class=
"input-group date"
data-provide=
"datepicker"
>
<input
id=
"datepicker"
type=
"text"
class=
"form-control"
data-parsley-trigger=
"change"
data-parsley-minlength=
"2"
name=
"end_date"
placeholder=
"End Date"
autocomplete=
"off"
>
<div
class=
"input-group-addon"
>
<i
class=
"fa fa-calendar"
></i>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-md-3"
>
<div
class=
"form-group "
>
<label>
Select Booking Status
</label>
<div
class=
"col-md-12"
>
<select
name=
"status"
class=
"form-control"
data-parsley-trigger=
"change"
>
<option
selected
disabled
>
Select Booking Status
</option>
<option
value=
""
>
All Bookings
</option>
<?php
$status
=
array
(
'2'
=>
'Completed'
,
'1'
=>
'Bookings'
,
'3'
=>
'Pending'
,
'0'
=>
'Cancelled'
,
'4'
=>
'Deleted'
);
foreach
(
$status
as
$key
=>
$stat
)
{
echo
'<option value="'
.
$key
.
'">'
.
$stat
.
'</option>'
;
}
?>
</select>
</div>
</div>
</div>
</div>
</form>
<div
class=
"with-border"
style=
"padding-top:70px;"
>
<h4
class=
"box-title"
>
Fields to View In Report
</h4>
</div>
<div
class=
"col-md-12"
style=
"padding-top:20px;"
>
<div
class=
"col-md-3"
>
<input
name=
"fieldType"
type=
"radio"
checked=
"checked"
style=
"padding-left: 10px;"
action=
"hide"
value=
"all"
>
<label
style=
"padding-left:15px;"
>
All Fields
</label>
</div>
<div
class=
"col-md-3"
>
<input
name=
"fieldType"
type=
"radio"
onclick=
"checkChild($(this));"
action=
"show"
value=
"custom"
>
<label
style=
"padding-left:15px;"
>
Custom Fields
</label>
</div>
</div>
<div
class=
"col-md-12"
>
<form
id=
"field_list"
>
<table
class=
"table table-striped hide"
id=
"customFields"
>
<tbody>
<?php
$html
=
''
;
$count
=
0
;
$rowFlg
=
0
;
$tables
=
array
(
'booking_details'
=>
array
(
'name'
=>
'Basic Details'
,
'fields'
=>
array
(
'BOK.bookId AS Book_ID'
=>
'Book ID'
,
'CONCAT(EDT.date,\' \',EDT.time) AS Show_Time'
=>
'Show Time'
,
'BOK.qrcode AS QR_Code'
=>
'QR Code'
,
'BOK.no_of_ticket AS No_Of_Ticket'
=>
'No Of Ticket'
,
'BOK.ticket_details AS Ticket_Details'
=>
'Ticked Details'
,
'BOK.amount AS Amount'
=>
'Booking Amount'
,
'BOK.reserved_by AS Reserved_By'
=>
'Reserved By'
,
'BOK.status AS Book_Status'
=>
'Booking Status'
)
),
array
(
'name'
=>
'Event Details'
,
'fields'
=>
array
(
'EVT.event_name_en AS Event_Name'
=>
'Event Name'
,
'EVT.event_description_en'
=>
'Event Discription'
,
'ECAT.category AS Category'
=>
'Event Category'
,
'ECAT.category_description AS Category_Description'
=>
'Category Description'
)
),
array
(
'name'
=>
'Customer Details'
,
'fields'
=>
array
(
'CUST.name AS Customer_Name'
=>
'Customer Name'
,
'CUST.phone AS Customer_Phone'
=>
'Customer Phone'
,
'CUST.email AS Customer_Email'
=>
'Customer Email'
,
'CUST.city AS Customer_City'
=>
'Customer City'
)
),
array
(
'name'
=>
'Provider Details'
,
'fields'
=>
array
(
'PRV.name AS Provider_Name'
=>
'Provider Name'
,
'PRV.phone AS Provider_Phone'
=>
'Provider Phone'
,
'PRV.email AS Provider_Email'
=>
'Provider Email'
)
),
array
(
'name'
=>
'Venue Details'
,
'fields'
=>
array
(
'VEN.venue_name AS Venue_Name'
=>
'Venue Name'
,
'VEN.venue_details AS Venue_Details'
=>
'Venue Details'
,
'REG.name AS Region'
=>
'Region'
,
'VEN.location AS Location'
=>
'Location'
)
)
);
$baseHtml
=
'<tr>{:baseHtml}</tr>'
;
$ottrHtml
=
'<td><div class="box-body" style="padding-left: 100px">
<label>
<input type="checkbox" id="table_{:table}" table="{:table}" onclick="checkChild($(this));" >
{:table_name}
</label>
{:innerHtml}
</div></td>'
;
$innerHtml
=
'<div class="form-group"><div class="col-sm-10"><div class="checkbox">
<label>
<input type="checkbox" name="{:field_alias}" id="table_{:table}_{:field_alias}" value="{:field_alias}">
{:field_name}
</label>
</div></div></div>'
;
$htmlArr
=
array
();
$allFields
=
array
();
foreach
(
$tables
AS
$table
=>
$tableDetails
){
$fieldsHtml
=
''
;
foreach
(
$tableDetails
[
'fields'
]
as
$alias
=>
$field
)
{
$allFields
[]
=
$alias
;
$fieldsHtml
.=
str_replace
(
array
(
'{:field_alias}'
,
'{:field_name}'
),
array
(
$alias
,
$field
),
$innerHtml
);
}
$fieldsHtml
=
str_replace
(
'{:table}'
,
$table
,
$fieldsHtml
);
$html
.=
str_replace
(
array
(
'{:table}'
,
'{:table_name}'
,
'{:innerHtml}'
),
array
(
$table
,
$tableDetails
[
'name'
],
$fieldsHtml
,),
$ottrHtml
);
if
(
$count
==
2
){
$rowFlg
=
1
;
$count
=
0
;
$htmlArr
[]
=
str_replace
(
'{:baseHtml}'
,
$html
,
$baseHtml
);
$html
=
''
;
}
else
{
$count
+=
1
;
}
}
if
(
$rowFlg
==
0
){
$html
=
str_replace
(
'{:baseHtml}'
,
$html
,
$baseHtml
);
}
else
{
$lstRw
=
str_replace
(
'{:baseHtml}'
,
$html
,
$baseHtml
);
$html
=
implode
(
''
,
$htmlArr
);
$html
.=
$lstRw
;
}
echo
$html
;
?>
</tbody>
</table>
</form>
</div>
<div
class=
"col-md-12"
>
<div
class=
"box-footer"
>
<input
type=
"hidden"
id=
"all_fields"
all_fields=
"
<?=
implode
(
','
,
$allFields
)
?>
"
>
<button
id=
"rGenerate"
type=
"submit"
action=
"view"
dmclick=
"0"
class=
"btn btn-primary"
>
View Report
</button>
<button
id=
"rGenerate"
type=
"submit"
action=
"export"
dmclick=
"0"
class=
"btn btn-info"
>
Export Report
</button>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-md-12"
>
<div
class=
"box box-warning hide"
id=
"report_table_html"
>
<div
class=
"box-body"
>
<div
class=
"col-md-12"
>
<table
id=
"report_table"
class=
"table table-bordered table-striped datatable"
>
<thead>
<tr>
<th
width=
"60px;"
>
Book ID
</th>
<th
width=
"120px;"
>
Event
</th>
<th
width=
"120px;"
>
Customer Name
</th>
<th
width=
"80px;"
>
Amount
</th>
<th
width=
"100px;"
>
Show Time
</th>
<th
width=
"50px;"
>
Status
</th>
<th
width=
"50px;"
>
Action
</th>
</tr>
</thead>
<tbody
id=
"report_table_body"
>
<!-- REPORT TABLE BODY -->
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</div>
<script
type=
"text/javascript"
>
jQuery
(
document
).
ready
(
function
(){
jQuery
(
'[name^="BOK.bookId"],[name^="CONCAT(EDT.date,
\'
\'
,EDT.time)"],[name^="BOK.amount"],[name^="BOK.status"],[name^="EVT.event_name_en"],[name^="CUST.name"]'
).
prop
(
"checked"
,
true
).
parent
().
closest
(
'div'
).
addClass
(
'disable-block'
);
});
</script>
\ No newline at end of file
application/views/Customer_Booking/care_home.php
deleted
100644 → 0
View file @
2a3e1ff2
<div
class=
"content-wrapper"
>
<section
class=
"content-header"
>
<h1>
<?=
$pTitle
?>
<small>
<?=
$pDescription
?>
</small>
</h1>
<ol
class=
"breadcrumb"
>
<li><a
href=
"
<?=
base_url
()
?>
"
><i
class=
"fa fa-star-o"
aria-hidden=
"true"
></i>
Home
</a></li>
<li>
<?=
$menu
?>
</li>
<li
class=
"active"
>
<?=
$smenu
?>
</li>
</ol>
</section>
<!-- Main content -->
<section
class=
"content"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<?php
if
(
$this
->
session
->
flashdata
(
'message'
))
{
$flashdata
=
$this
->
session
->
flashdata
(
'message'
);
?>
<div
class=
"alert alert-
<?=
$flashdata
[
'class'
]
?>
"
>
<button
class=
"close"
data-dismiss=
"alert"
type=
"button"
>
×
</button>
<?=
$flashdata
[
'message'
]
?>
</div>
<?php
}
?>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"box box-warning marginBottom-10"
>
<div
class=
"box-body"
>
<form
role=
"form"
action=
"
<?=
base_url
(
'Customer_Booking'
)
?>
"
method=
"post"
class=
"validate"
data-parsley-validate=
""
enctype=
"multipart/form-data"
>
<div
class=
"col-md-6"
>
<div
class=
"form-group"
>
<label>
Customer Name, Email or Phone
</label>
<div>
<input
class=
"form-control"
id=
"custSearch"
placeholder=
"Enter Customer Details"
>
<input
type=
"hidden"
name=
"user_id"
>
</div>
</div>
</div>
<div
class=
"col-md-6"
>
<div
class=
"form-group"
>
<label>
Customer Name, Email or Phone
</label>
<div>
<input
type=
"text"
placeholder=
"Enter Booking ID"
name=
"booking_id"
data-parsley-minlength=
"12"
class=
"form-control"
data-parsley-pattern=
"^[a-zA-Z0-9]+$"
data-parsley-maxlength=
"12"
>
</div>
</div>
</div>
<div
class=
"col-md-12"
>
<button
class=
"float-right"
>
Get Booking Details
</button>
</div>
</form>
</div>
</div>
<?php
if
(
isset
(
$bookData
)
&&
isset
(
$custData
)){
?>
<?php
if
(
empty
(
$bookData
)
&&
empty
(
$custData
)){
?>
<div
class=
"box box-warning"
>
<div
class=
"box-header with-border"
>
<div
class=
"col-md-12 textCenterAlign"
>
No Data Found
</div>
</div>
</div>
<?php
}
else
{
?>
<?php
if
(
!
empty
(
$custData
))
{
?>
<div
class=
"box box-warning"
>
<div
class=
"box-header with-border"
>
<div
class=
"col-md-6"
><h3
class=
"box-title"
>
Customer Details
</h3></div>
</div>
<div
class=
"box-body"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-2"
>
<div
class=
"form-group has-feedback"
>
<img
src=
"
<?=
base_url
(
$custData
->
profile_image
)
?>
"
class=
"cpoint"
onclick=
"viewImageModal('Profile Image','
<?=
base_url
(
$custData
->
profile_image
)
?>
');"
onerror=
"this.src='
<?=
base_url
(
"assets/images/user_avatar.jpg"
)
?>
';"
height=
"100"
width=
"100"
/>
</div>
</div>
<div
class=
"col-md-5"
>
<div
class=
"row"
>
<div
class=
"col-md-3"
><span>
Name
</span></div>
<div
class=
"col-md-7"
><span>
:
</span>
<label
class=
"padLeft20"
>
<?=
$custData
->
name
?>
</label>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-3"
><span>
Email
</span></div>
<div
class=
"col-md-7"
><span>
:
</span>
<label
class=
"padLeft20"
>
<?=
$custData
->
email
?>
</label>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-3"
><span>
Phone
</span></div>
<div
class=
"col-md-7"
><span>
:
</span>
<label
class=
"padLeft20"
>
<?=
$custData
->
phone
?>
</label>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-3"
><span>
DOB
</span></div>
<div
class=
"col-md-7"
><span>
:
</span>
<label
class=
"padLeft20"
>
<?=
$custData
->
dob
?>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
}
?>
<?php
if
(
!
empty
(
$bookData
))
{
?>
<div
class=
"box box-warning"
>
<div
class=
"box-header with-border"
>
<div
class=
"col-md-6"
><h3
class=
"box-title"
>
Booking Details
</h3></div>
</div>
<div
class=
"box-body"
>
<table
id=
"mechanicUsers"
class=
"table table-bordered table-striped datatable "
>
<thead>
<tr>
<th
class=
"hidden"
>
ID
</th>
<th
width=
"50px;"
>
Book ID
</th>
<th
width=
"100px;"
>
Event
</th>
<th
width=
"130px;"
>
Event Name
</th>
<th
width=
"130px;"
>
Customer
</th>
<th
width=
"130px;"
>
Scheduled On
</th>
<th
width=
"50px;"
>
Amount
</th>
<th
width=
"50px;"
>
Status
</th>
<th
width=
"40px;"
>
Action
</th>
</tr>
</thead>
<tbody>
<?php
foreach
(
$bookData
as
$booking
)
{
?>
<tr>
<th
class=
"hidden"
>
<?=
$booking
->
booking_id
?>
</th>
<th
class=
"center"
>
<?=
$booking
->
bookId
?>
</th>
<th
class=
"center"
>
<?=
$booking
->
category_name_EN
?>
</th>
<th
class=
"center"
>
<?=
$booking
->
event_name_EN
?>
</th>
<th
class=
"center"
>
<?=
$booking
->
customer_name
?>
</th>
<th
class=
"center"
>
<?=
$booking
->
date
.
' '
.
$booking
->
time
?>
</th>
<th
class=
"center"
>
<?=
$booking
->
amount
?>
</th>
<th
class=
"center"
>
<?php
switch
(
$booking
->
book_status
){
case
0
:
echo
'Cancelled'
;
break
;
case
1
:
echo
'Booked'
;
break
;
case
2
:
echo
'Completed'
;
break
;
case
3
:
echo
'Pending'
;
break
;
case
4
:
echo
'Deleted'
;
break
;
case
5
:
echo
'Payment Failed'
;
break
;
}
?>
</th>
<td
class=
"center"
>
<a
class=
"btn btn-sm btn-info"
id=
"viewBooking"
booking_id=
"
<?=
encode_param
(
$booking
->
booking_id
)
?>
"
>
<i
class=
"fa fa-fw fa-eye"
></i>
View
</a>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
<?php
}
?>
<?php
}
?>
<?php
}
?>
</div>
</div>
</section>
</div>
\ No newline at end of file
application/views/HotelCity/hotelCityAddForm.php
deleted
100644 → 0
View file @
2a3e1ff2
<?php
$language
=
getLanguages
();
?>
<div
class=
"content-wrapper"
>
<section
class=
"content-header"
>
<h1>
<?=
$pTitle
?>
<small>
<?=
$pDescription
?>
</small>
</h1>
<ol
class=
"breadcrumb"
>
<li><a
href=
"
<?=
base_url
()
?>
"
><i
class=
"fa fa-star-o"
aria-hidden=
"true"
></i>
Home
</a></li>
<li>
<?=
$menu
?>
</li>
<li
class=
"active"
>
<?=
$smenu
?>
</li>
</ol>
</section>
<section
class=
"content"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<?php
$url
=
(
!
isset
(
$hotel_city_id
)
||
empty
(
$hotel_city_id
))
?
'HotelCity/createHotelCity'
:
'HotelCity/updateHotelCity/'
.
$hotel_city_id
;
if
(
$this
->
session
->
flashdata
(
'message'
))
{
$flashdata
=
$this
->
session
->
flashdata
(
'message'
);
?>
<div
class=
"alert alert-
<?=
$flashdata
[
'class'
]
?>
"
>
<button
class=
"close"
data-dismiss=
"alert"
type=
"button"
>
×
</button>
<?=
$flashdata
[
'message'
]
?>
</div>
<?php
}
?>
</div>
<div
class=
"col-md-12"
>
<div
class=
"box box-warning"
>
<div
class=
"box-body"
>
<form
role=
"form"
action=
"
<?=
base_url
(
$url
)
?>
"
method=
"post"
class=
"validate"
data-parsley-validate=
""
enctype=
"multipart/form-data"
>
<div
class=
"col-md-6"
>
<div
class=
"form-group"
>
<label>
Hotel City Name
</label>
<?php
foreach
(
$language
AS
$lang
)
{
$hotel_city_name
=
(
isset
(
$hotelCityData
->
{
'hotel_city_name_'
.
$lang
}))
?
$hotelCityData
->
{
'hotel_city_name_'
.
$lang
}
:
''
?>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<input
type=
"text"
class=
"form-control
<?=
(
$lang
==
'EN'
)
?
'required'
:
''
?>
"
name=
"hotel_city_name_
<?=
$lang
?>
"
data-parsley-trigger=
"change"
data-parsley-minlength=
"2"
placeholder=
"Hotel City Name (
<?=
$lang
?>
)"
value=
"
<?=
$hotel_city_name
?>
"
>
<span
class=
"glyphicon form-control-feedback"
></span>
</div>
</div>
<br>
<?php
}
?>
</div>
</div>
<div
class=
"col-md-6"
>
<div
class=
"form-group"
>
<label>
Hotel City Icon
</label>
<div
class=
"col-md-12"
style=
"padding-bottom:10px;"
>
<div
class=
"col-md-3"
>
<img
id=
"image_id"
src=
"
<?=
(
isset
(
$hotelCityData
->
hotel_city_icon
))
?
base_url
(
$hotelCityData
->
hotel_city_icon
)
:
''
?>
"
onerror=
"this.src='
<?=
base_url
(
"assets/images/no_image_text.png"
)
?>
';"
height=
"75"
width=
"75"
/>
</div>
<div
class=
"col-md-9"
style=
"padding-top: 25px;"
>
<input
name=
"hotel_city_icon"
class=
"
<?=
(
!
isset
(
$hotelCityData
->
hotel_city_icon
)
||
empty
(
isset
(
$hotelCityData
->
hotel_city_icon
)))
?
'required'
:
''
?>
"
type=
"file"
accept=
"image/*"
onchange=
"setImg(this,'image_id');"
/>
</div>
</div>
</div>
</div>
<div
class=
"col-md-12"
>
<div
class=
"box-footer textCenterAlign"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
Submit
</button>
<a
href=
"
<?=
base_url
(
'HotelCity/listHotelCity'
)
?>
"
class=
"btn btn-primary"
>
Cancel
</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
</div>
\ No newline at end of file
application/views/HotelCity/viewHotelCityList.php
deleted
100644 → 0
View file @
2a3e1ff2
<?php
$role
=
roleManagement
();
$pAccess
=
$role
[
'City'
];
?>
<div
class=
"content-wrapper"
>
<!-- Content Header (Page header) -->
<section
class=
"content-header"
>
<h1>
<?=
$pTitle
?>
<small>
<?=
$pDescription
?>
</small>
</h1>
<ol
class=
"breadcrumb"
>
<li><a
href=
"
<?=
base_url
()
?>
"
><i
class=
"fa fa-star-o"
aria-hidden=
"true"
></i>
Home
</a></li>
<li>
<?=
$menu
?>
</li>
<li
class=
"active"
>
<?=
$smenu
?>
</li>
</ol>
</section>
<!-- Main content -->
<section
class=
"content"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<?php
if
(
$this
->
session
->
flashdata
(
'message'
))
{
$flashdata
=
$this
->
session
->
flashdata
(
'message'
);
?>
<div
class=
"alert alert-
<?=
$flashdata
[
'class'
]
?>
"
>
<button
class=
"close"
data-dismiss=
"alert"
type=
"button"
>
×
</button>
<?=
$flashdata
[
'message'
]
?>
</div>
<?php
}
?>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"box box-warning"
>
<div
class=
"box-header with-border"
>
<div
class=
"col-md-6"
><h3
class=
"box-title"
>
Hotel City List
</h3></div>
<div
class=
"col-md-6"
align=
"right"
>
<?php
if
(
in_array
(
'1'
,
$pAccess
)){
?>
<a
class=
"btn btn-sm btn-primary"
href=
"
<?=
base_url
(
'HotelCity/addHotelCity'
)
?>
"
>
Add New Hotel City
</a>
<?php
}
?>
<a
class=
"btn btn-sm btn-primary"
href=
"
<?=
base_url
()
?>
"
>
Back
</a>
</div>
</div>
<div
class=
"box-body"
>
<table
id=
"mechanicUsers"
class=
"table table-bordered table-striped datatable "
>
<thead>
<tr>
<th
class=
"hidden"
>
ID
</th>
<th
width=
"50px;"
>
Icon
</th>
<th
width=
"125px;"
>
Hotel City (English)
</th>
<th
width=
"100px;"
>
Status
</th>
<?php
if
(
in_array
(
'2'
,
$pAccess
)
||
in_array
(
'3'
,
$pAccess
)
||
in_array
(
'4'
,
$pAccess
)){
?>
<th
width=
"200px;"
>
Action
</th>
<?php
}
?>
</tr>
</thead>
<tbody>
<?php
if
(
!
empty
(
$hotelCityData
)){
foreach
(
$hotelCityData
as
$hotelCity
)
{
?>
<tr>
<th
class=
"hidden"
>
<?=
$hotelCity
->
hotel_city_id
?>
</th>
<th
class=
"center textCenterAlign"
>
<img
id=
"image_id"
src=
"
<?=
base_url
(
$hotelCity
->
hotel_city_icon
)
?>
"
onerror=
"this.src='
<?=
base_url
(
"assets/images/no_image_text.png"
)
?>
';"
height=
"50"
width=
"50"
/>
</th>
<th
class=
"center"
>
<?=
(
isset
(
$hotelCity
->
hotel_city_name_EN
))
?
$hotelCity
->
hotel_city_name_EN
:
''
?>
</th>
<th
class=
"center"
id=
"statusFlag_
<?=
$hotelCity
->
hotel_city_id
?>
"
>
<?=
(
$hotelCity
->
status
==
1
)
?
'Active'
:
'De-activate'
?>
</th>
<?php
if
(
in_array
(
'2'
,
$pAccess
)
||
in_array
(
'3'
,
$pAccess
)
||
in_array
(
'4'
,
$pAccess
)){
?>
<td
class=
"center"
>
<?php
if
(
in_array
(
'2'
,
$pAccess
)){
?>
<a
class=
"btn btn-sm btn-primary"
href=
"
<?=
base_url
(
'HotelCity/editHotelCity/'
.
encode_param
(
$hotelCity
->
hotel_city_id
))
?>
"
>
<i
class=
"fa fa-fw fa-edit"
></i>
Edit
</a>
<?php
}
?>
<?php
if
(
in_array
(
'3'
,
$pAccess
)){
?>
<a
class=
"btn btn-sm btn-danger"
onclick=
"confirmDelete(jQuery(this),'HotelCity/changeStatus',{'hotel_city_id':'
<?=
encode_param
(
$hotelCity
->
hotel_city_id
)
?>
'})"
status=
"2"
><i
class=
"fa fa-fw fa-trash"
></i>
Delete
</a>
<?php
}
?>
<?php
if
(
in_array
(
'4'
,
$pAccess
)){
$status
=
0
;
$btnName
=
'De-activate'
;
$btnClass
=
'btn-warning'
;
if
(
$hotelCity
->
status
!=
1
){
$status
=
1
;
$btnName
=
'Activate'
;
$btnClass
=
'btn-success'
;
}
?>
<a
class=
"btn btn-sm
<?=
$btnClass
?>
"
onclick=
"updateStatus(jQuery(this),'HotelCity/changeStatus',{'hotel_city_id':'
<?=
encode_param
(
$hotelCity
->
hotel_city_id
)
?>
'})"
status=
"
<?=
$status
?>
"
status_id=
"
<?=
$hotelCity
->
hotel_city_id
?>
"
>
<i
class=
"fa fa-cog"
>
<?=
$btnName
?>
</i>
</a>
<?php
}
?>
</td>
<?php
}
?>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</div>
\ No newline at end of file
application/views/Promocode/promocodeForm.php
View file @
6e77756c
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<label>
Promo Valid From
</label>
<label>
Promo Valid From
</label>
<input
id=
"date"
type=
"text"
class=
"form-control required"
required
autocomplete=
"off"
<input
id=
"date"
type=
"text"
class=
"form-control required"
required
autocomplete=
"off"
data-parsley-trigger=
"change"
name=
"start_date"
placeholder=
"Promo Valid From"
data-parsley-trigger=
"change"
name=
"start_date"
placeholder=
"Promo Valid From"
value=
"
<?=
(
isset
(
$promo
->
start_date
))
?
date
(
'm/d/Y'
,
strtotime
(
$promo
->
start_date
))
:
''
?>
"
>
value=
"
<?=
(
isset
(
$promo
->
start_date
))
?
$promo
->
start_date
:
''
?>
"
>
<div
class=
"input-group-addon"
style=
"padding-top:29px;border-color:#ffffff!important;"
>
<div
class=
"input-group-addon"
style=
"padding-top:29px;border-color:#ffffff!important;"
>
<i
class=
"fa fa-calendar"
></i>
<i
class=
"fa fa-calendar"
></i>
</div>
</div>
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<label>
Promo Valid To
</label>
<label>
Promo Valid To
</label>
<input
id=
"date"
type=
"text"
class=
"form-control required"
required
autocomplete=
"off"
<input
id=
"date"
type=
"text"
class=
"form-control required"
required
autocomplete=
"off"
data-parsley-trigger=
"change"
name=
"end_date"
placeholder=
"Promo Valid To"
data-parsley-trigger=
"change"
name=
"end_date"
placeholder=
"Promo Valid To"
value=
"
<?=
(
isset
(
$promo
->
end_date
))
?
date
(
'm/d/Y'
,
strtotime
(
$promo
->
end_date
))
:
''
?>
"
>
value=
"
<?=
(
isset
(
$promo
->
end_date
))
?
$promo
->
end_date
:
''
?>
"
>
<div
class=
"input-group-addon"
style=
"padding-top:29px;border-color:#ffffff!important;"
>
<div
class=
"input-group-addon"
style=
"padding-top:29px;border-color:#ffffff!important;"
>
<i
class=
"fa fa-calendar"
></i>
<i
class=
"fa fa-calendar"
></i>
</div>
</div>
...
...
application/views/Staff/staffForm.php
View file @
6e77756c
...
@@ -51,26 +51,7 @@
...
@@ -51,26 +51,7 @@
<?php
}
?>
<?php
}
?>
</div>
</div>
<div
class=
"col-md-6"
>
<div
class=
"col-md-6"
>
<?php
if
(
!
isset
(
$staff_id
)
||
empty
(
$staff_id
)){
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
User Role
</label>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-3"
>
<input
type=
"radio"
class=
"required padLeft10"
data-parsley-trigger=
"change"
required
value=
"4"
name=
"user_type"
checked
>
<label
class=
"padLeft10"
>
Staff User
</label>
</div>
<div
class=
"col-md-5"
>
<input
type=
"radio"
class=
"required padLeft10"
data-parsley-trigger=
"change"
required
value=
"5"
name=
"user_type"
>
<label
class=
"padLeft10"
>
Customer User
</label>
</div>
</div>
</div>
</div>
<?php
}
?>
<div
class=
"form-group padTop10"
>
<label>
Profile Picture
</label>
<label>
Profile Picture
</label>
<div
class=
"col-md-12"
style=
"padding-bottom:10px;"
>
<div
class=
"col-md-12"
style=
"padding-bottom:10px;"
>
<div
class=
"col-md-3"
>
<div
class=
"col-md-3"
>
...
...
application/views/Staff/viewStaff.php
View file @
6e77756c
...
@@ -40,9 +40,8 @@
...
@@ -40,9 +40,8 @@
<tr>
<tr>
<th
class=
"hidden"
>
ID
</th>
<th
class=
"hidden"
>
ID
</th>
<th
width=
"50px;"
>
Photo
</th>
<th
width=
"50px;"
>
Photo
</th>
<th
width=
"130px;"
>
Name
</th>
<th
width=
"150px;"
>
Name
</th>
<th
width=
"130px;"
>
Username
</th>
<th
width=
"150px;"
>
Username
</th>
<th
width=
"120px;"
>
Role
</th>
<th
width=
"50px;"
>
Status
</th>
<th
width=
"50px;"
>
Status
</th>
<th
width=
"200px;"
>
Action
</th>
<th
width=
"200px;"
>
Action
</th>
</tr>
</tr>
...
@@ -60,7 +59,6 @@
...
@@ -60,7 +59,6 @@
</th>
</th>
<th
class=
"center"
>
<?=
$staff
->
display_name
?>
</th>
<th
class=
"center"
>
<?=
$staff
->
display_name
?>
</th>
<th
class=
"center"
>
<?=
$staff
->
username
?>
</th>
<th
class=
"center"
>
<?=
$staff
->
username
?>
</th>
<th
class=
"center"
>
<?=
(
$staff
->
user_type
==
4
)
?
'Staff User'
:
'Customer Care'
?>
</th>
<th
class=
"center"
id=
"statusFlag_
<?=
$staff
->
id
?>
"
>
<th
class=
"center"
id=
"statusFlag_
<?=
$staff
->
id
?>
"
>
<?=
(
$staff
->
status
==
1
)
?
'Active'
:
'De-active'
?>
<?=
(
$staff
->
status
==
1
)
?
'Active'
:
'De-active'
?>
</th>
</th>
...
...
application/views/Templates/footer-script.php
View file @
6e77756c
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
<script
src=
"
<?=
base_url
(
'assets/js/bootbox.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/app.min.js'
)
?>
"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/locationpicker.js'
)
?>
"
type=
"text/javascript"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/locationpicker.js'
)
?>
"
type=
"text/javascript"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/jquery-ui.min.js'
)
?>
"
type=
"text/javascript"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/custom-script.js?ts='
.
time
())
?>
"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/custom-script.js?ts='
.
time
())
?>
"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/parsley.min.js'
)
?>
"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/parsley.min.js'
)
?>
"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/bootstrap-datepicker.js'
)
?>
"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/bootstrap-datepicker.js'
)
?>
"
></script>
...
...
application/views/Templates/header-script.php
View file @
6e77756c
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
<link
rel=
"stylesheet"
href=
"
<?=
base_url
(
'assets/css/theme.css'
)
?>
"
>
<link
rel=
"stylesheet"
href=
"
<?=
base_url
(
'assets/css/theme.css'
)
?>
"
>
<link
rel=
"stylesheet"
href=
"
<?=
base_url
(
'assets/css/custom.css'
)
?>
"
>
<link
rel=
"stylesheet"
href=
"
<?=
base_url
(
'assets/css/custom.css'
)
?>
"
>
<link
rel=
"stylesheet"
href=
"
<?=
base_url
(
'assets/css/slick.min.css'
)
?>
"
type=
"text/css"
>
<link
rel=
"stylesheet"
href=
"
<?=
base_url
(
'assets/css/slick.min.css'
)
?>
"
type=
"text/css"
>
<link
rel=
"stylesheet"
href=
"
<?=
base_url
(
'assets/css/jquery-ui.min.css'
)
?>
"
type=
"text/css"
/>
<script
src=
"
<?=
base_url
(
'assets/js/jQuery-2.1.4.min.js'
)
?>
"
></script>
<script
src=
"
<?=
base_url
(
'assets/js/jQuery-2.1.4.min.js'
)
?>
"
></script>
<script
src=
"https://cdn.ckeditor.com/4.5.7/standard/ckeditor.js"
></script>
<script
src=
"https://cdn.ckeditor.com/4.5.7/standard/ckeditor.js"
></script>
...
...
application/views/Templates/left-menu.php
View file @
6e77756c
...
@@ -21,13 +21,6 @@
...
@@ -21,13 +21,6 @@
<span>
Dashboard
</span>
<span>
Dashboard
</span>
</a>
</a>
</li>
</li>
<?php
}
if
(
array_key_exists
(
'Customer_Booking'
,
$menus
)){
?>
<li>
<a
href=
"
<?=
base_url
(
'Customer_Booking'
)
?>
"
>
<img
src=
"
<?=
base_url
(
"assets/images/m5.png"
)
?>
"
>
<span>
Care Home
</span>
</a>
</li>
<?php
}
if
(
array_key_exists
(
'Tag'
,
$menus
)){
?>
<?php
}
if
(
array_key_exists
(
'Tag'
,
$menus
)){
?>
<li>
<li>
<a
href=
"
<?=
base_url
(
'Tag/listTags'
)
?>
"
>
<a
href=
"
<?=
base_url
(
'Tag/listTags'
)
?>
"
>
...
@@ -175,10 +168,16 @@
...
@@ -175,10 +168,16 @@
</li>
</li>
</ul>
</ul>
</li>
</li>
<?php
}
if
(
array_key_exists
(
'Booking'
,
$menus
)){
?>
<li>
<a
href=
"
<?=
base_url
(
'Booking/viewBookings'
)
?>
"
>
<img
src=
"
<?=
base_url
(
"assets/images/m8.png"
)
?>
"
>
<span>
Booking Details
</span></a>
</li>
<?php
}
if
(
array_key_exists
(
'Promocode'
,
$menus
)){
?>
<?php
}
if
(
array_key_exists
(
'Promocode'
,
$menus
)){
?>
<li
class=
"treeview"
>
<li
class=
"treeview"
>
<a
href=
"#"
>
<a
href=
"#"
>
<img
src=
"
<?=
base_url
(
"assets/images/m
2
.png"
)
?>
"
>
<img
src=
"
<?=
base_url
(
"assets/images/m
8
.png"
)
?>
"
>
<span>
Promocode Management
</span>
<span>
Promocode Management
</span>
<i
class=
"fa fa-angle-left pull-right"
></i>
<i
class=
"fa fa-angle-left pull-right"
></i>
</a>
</a>
...
@@ -197,18 +196,6 @@
...
@@ -197,18 +196,6 @@
</li>
</li>
</ul>
</ul>
</li>
</li>
<?php
}
if
(
array_key_exists
(
'Booking'
,
$menus
)){
?>
<li>
<a
href=
"
<?=
base_url
(
'Booking/viewBookings'
)
?>
"
>
<img
src=
"
<?=
base_url
(
"assets/images/m8.png"
)
?>
"
>
<span>
Booking Details
</span></a>
</li>
<?php
}
if
(
array_key_exists
(
'HotelCity'
,
$menus
)){
?>
<li>
<a
href=
"
<?=
base_url
(
'HotelCity/listHotelCity'
)
?>
"
>
<img
src=
"
<?=
base_url
(
"assets/images/m4.png"
)
?>
"
>
<span>
Hotel Cities
</span></a>
</li>
<?php
}
if
(
array_key_exists
(
''
,
$menus
)){
?>
<?php
}
if
(
array_key_exists
(
''
,
$menus
)){
?>
<li><a
href=
"
<?=
base_url
(
'Provider/getProviderPayDetails'
)
?>
"
>
<li><a
href=
"
<?=
base_url
(
'Provider/getProviderPayDetails'
)
?>
"
>
<img
src=
"
<?=
base_url
(
"assets/images/m2.png"
)
?>
"
>
<img
src=
"
<?=
base_url
(
"assets/images/m2.png"
)
?>
"
>
...
...
assets/css/custom-style.css
View file @
6e77756c
...
@@ -357,7 +357,7 @@
...
@@ -357,7 +357,7 @@
padding-bottom
:
20px
!important
;
padding-bottom
:
20px
!important
;
}
}
.padBottom10
{
/*
.padBottom10 {
padding-bottom:10px !important;
padding-bottom:10px !important;
}
}
...
@@ -397,10 +397,6 @@
...
@@ -397,10 +397,6 @@
padding-top:20px !important;
padding-top:20px !important;
}
}
.padTop50
{
padding-top
:
50px
!important
;
}
.padTop300{
.padTop300{
padding-top: 300px;
padding-top: 300px;
}
}
...
@@ -451,7 +447,7 @@
...
@@ -451,7 +447,7 @@
.padAll-20 {
.padAll-20 {
padding: 20px;
padding: 20px;
}
}
*/
.vechile-body
{
.vechile-body
{
background-color
:
#f7f7f7
;
background-color
:
#f7f7f7
;
...
...
assets/js/custom-script.js
View file @
6e77756c
...
@@ -1010,15 +1010,5 @@ jQuery('[id^="addMultiLang"]').on('click',function() {
...
@@ -1010,15 +1010,5 @@ jQuery('[id^="addMultiLang"]').on('click',function() {
thisObj
.
html
(
'+ Hide Add More Language Option'
);
thisObj
.
html
(
'+ Hide Add More Language Option'
);
jQuery
(
'[id="showMultiLangBlock_'
+
block
+
'"]'
).
removeClass
(
'hide'
);
jQuery
(
'[id="showMultiLangBlock_'
+
block
+
'"]'
).
removeClass
(
'hide'
);
}
}
});
jQuery
(
'[id="custSearch"]'
).
autocomplete
({
source
:
base_url
+
'Customer_Booking/userSearch'
,
minLength
:
1
,
select
:
(
e
,
data
)
=>
{
if
(
!
data
||
data
==
''
||
data
==
undefined
||
data
==
'undefined'
||
data
==
null
||
data
==
'null'
){
return
false
;
}
jQuery
(
'[name="user_id"]'
).
val
(
data
[
'item'
][
'data'
]);
}
});
});
\ No newline at end of file
assets/uploads/user/CUST_QR_174_1571999616.png
deleted
100644 → 0
View file @
2a3e1ff2
58.9 KB
sql/timeOutBackup.sql
deleted
100644 → 0
View file @
2a3e1ff2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
sql/timeout_run_sql.sql
deleted
100644 → 0
View file @
2a3e1ff2
INSERT
INTO
`review`
(
`id`
,
`event_id`
,
`customer_id`
,
`rate`
,
`feedback`
)
VALUES
(
NULL
,
'89'
,
'107'
,
'2'
,
'dff'
);
INSERT
INTO
`review`
(
`id`
,
`event_id`
,
`customer_id`
,
`rate`
,
`feedback`
)
VALUES
(
NULL
,
'89'
,
'107'
,
'2'
,
'dff'
);
INSERT
INTO
`review`
(
`id`
,
`event_id`
,
`customer_id`
,
`rate`
,
`feedback`
)
VALUES
(
NULL
,
'89'
,
'107'
,
'2'
,
'dff'
);
INSERT
INTO
`review`
(
`id`
,
`event_id`
,
`customer_id`
,
`rate`
,
`feedback`
)
VALUES
(
NULL
,
'89'
,
'107'
,
'2'
,
'dff'
);
INSERT
INTO
`review`
(
`id`
,
`event_id`
,
`customer_id`
,
`rate`
,
`feedback`
)
VALUES
(
NULL
,
'89'
,
'107'
,
'2'
,
'dff'
);
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