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
50ed4466
Commit
50ed4466
authored
Mar 04, 2020
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
465c39ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
generals_helper.php
application/helpers/generals_helper.php
+4
-3
Customer_model.php
application/models/Customer_model.php
+3
-2
viewSettings.php
application/views/Settings/viewSettings.php
+3
-3
No files found.
application/helpers/generals_helper.php
View file @
50ed4466
...
...
@@ -154,26 +154,27 @@
switch
(
$userType
){
/* ADD => 1 EDIT => 2 DELETE => 3 CHANGE_STATUS => 4 */
case
1
:
// 'HotelCity'=>array(1,2,3,4),'HotelBooking'=>array(1,2,3,4),'FlightBooking'=>array(1,2,3,4)
$menus
=
array
(
'Dashboard'
=>
array
(
1
,
2
,
3
,
4
),
'Tag'
=>
array
(
1
,
2
,
3
,
4
),
'Host'
=>
array
(
1
,
2
,
3
,
4
),
'CMS'
=>
array
(
1
,
2
,
3
,
4
),
'Event'
=>
array
(
1
,
2
,
3
,
4
),
'Organizer'
=>
array
(
1
,
2
,
3
,
4
),
'Checker'
=>
array
(
1
,
2
,
3
,
4
),
'Category'
=>
array
(
1
,
2
,
3
,
4
),
'Staff'
=>
array
(
1
,
2
,
3
,
4
),
'Venue'
=>
array
(
1
,
2
,
3
,
4
),
'City'
=>
array
(
1
,
2
,
3
,
4
),
'Commission'
=>
array
(
1
,
2
,
3
,
4
),
'Customer'
=>
array
(
1
,
2
,
3
,
4
),
'Booking'
=>
array
(
1
,
2
,
3
,
4
),
'Settings'
=>
array
(
1
,
2
,
3
,
4
),
'Notification'
=>
array
(
1
,
2
,
3
,
4
),
'Promocode'
=>
array
(
1
,
2
,
3
,
4
),
'Country'
=>
array
(
1
,
2
,
3
,
4
)
,
'HotelCity'
=>
array
(
1
,
2
,
3
,
4
),
'HotelBooking'
=>
array
(
1
,
2
,
3
,
4
),
'FlightBooking'
=>
array
(
1
,
2
,
3
,
4
)
);
'Country'
=>
array
(
1
,
2
,
3
,
4
));
break
;
case
2
:
$menus
=
array
(
'Dashboard'
=>
array
(
1
,
2
,
3
,
4
),
'Tag'
=>
array
(),
'Host'
=>
array
(
1
),
'City'
=>
array
(),
'Category'
=>
array
(),
'Event'
=>
array
(
1
,
2
,
3
,
4
),
'Checker'
=>
array
(
1
,
2
,
3
,
4
),
'Customer'
=>
array
(),
'Booking'
=>
array
(
1
,
2
,
3
,
4
),
'Venue'
=>
array
(
1
,
2
,
3
,
4
)
,
'HotelCity'
=>
array
(
1
,
2
,
3
,
4
)
);
'Booking'
=>
array
(
1
,
2
,
3
,
4
),
'Venue'
=>
array
(
1
,
2
,
3
,
4
));
break
;
case
4
:
$menus
=
array
(
'Dashboard'
=>
array
(
1
,
2
,
3
,
4
),
'Tag'
=>
array
(
1
,
2
,
3
,
4
),
'Host'
=>
array
(
1
,
2
,
3
,
4
),
'City'
=>
array
(
1
,
2
,
3
,
4
),
'Category'
=>
array
(
1
,
2
,
3
,
4
),
'Venue'
=>
array
(
1
,
2
,
3
,
4
),
'Event'
=>
array
(
1
,
2
,
3
,
4
),
'Checker'
=>
array
(
1
,
2
,
3
,
4
),
'Customer'
=>
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
));
break
;
case
5
:
$menus
=
array
(
'Customer'
=>
array
(),
'Customer_Booking'
=>
array
());
...
...
application/models/Customer_model.php
View file @
50ed4466
...
...
@@ -9,7 +9,8 @@ class Customer_model extends CI_Model {
$cond
.=
(
!
empty
(
$customer_id
))
?
" AND CUST.customer_id='
$customer_id
' "
:
""
;
$sql
=
"SELECT CUST.customer_id,CUST.name,CUST.email,CUST.phone,CUST.email,CUST.gender,
CUST.dob,CUST.profile_city,CUST.reset_key,CUST.social_id,CUST.profile_image,USR.status
CUST.dob,CUST.profile_city,CUST.reset_key,CUST.social_id,CUST.profile_image,
USR.status,CUST.profile_city AS city
FROM customer AS CUST
INNER JOIN users AS USR ON (USR.id=CUST.customer_id)
WHERE
$cond
"
;
...
...
@@ -17,7 +18,7 @@ class Customer_model extends CI_Model {
if
(
!
empty
(
$provider_id
)){
$sql
=
"SELECT CUST.customer_id,CUST.name,CUST.email,CUST.phone,CUST.email,CUST.gender,
CUST.dob,CUST.profile_city,CUST.reset_key,CUST.social_id,
CUST.profile_image,USR.status
CUST.profile_image,USR.status
,CUST.profile_city AS city
FROM customer AS CUST
INNER JOIN users AS USR ON (USR.id=CUST.customer_id)
INNER JOIN booking AS BOK ON (BOK.customer_id=CUST.customer_id)
...
...
application/views/Settings/viewSettings.php
View file @
50ed4466
...
...
@@ -42,11 +42,11 @@
<label>
Title Short
</label>
<input
type=
"text"
name=
"title_short"
class=
"form-control required"
placeholder=
"Enter Site Title"
value=
"
<?=
$data
[
'title_short'
]
?>
"
>
</div>
<div
class=
"form-group col-xs-6"
>
<div
class=
"form-group col-xs-6
hide
"
>
<label>
Country Code
</label>
<input
type=
"text"
name=
"country_flag"
class=
"form-control required"
placeholder=
"Enter SMTP Username"
value=
"
<?=
$data
[
'country_flag'
]
?>
"
>
</div>
<div
class=
"form-group col-xs-6"
>
<div
class=
"form-group col-xs-6
hide
"
>
<label>
Currency
</label>
<input
type=
"text"
name=
"currency"
class=
"form-control required"
placeholder=
"Enter SMTP Password"
value=
"
<?=
$data
[
'currency'
]
?>
"
>
</div>
...
...
@@ -54,7 +54,7 @@
<label>
Google API Key
</label>
<input
type=
"text"
name=
"google_api_key"
class=
"form-control required"
placeholder=
"Enter Google API"
value=
"
<?=
$data
[
'google_api_key'
]
?>
"
>
</div>
<div
class=
"form-group col-xs-6"
>
<div
class=
"form-group col-xs-6
hide
"
>
<label>
Commission Per Booking
</label>
<input
type=
"text"
name=
"service_charge"
class=
"form-control required"
placeholder=
"Enter Service Charge"
value=
"
<?=
$data
[
'service_charge'
]
?>
"
>
</div>
...
...
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