Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joyride phase2
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
Jansa Jose
joyride phase2
Commits
7e925896
Commit
7e925896
authored
Dec 11, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
final
parent
249b291d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Webservices.php
application/controllers/Webservices.php
+1
-1
Webservice_model.php
application/models/Webservice_model.php
+6
-6
No files found.
application/controllers/Webservices.php
View file @
7e925896
...
@@ -558,7 +558,7 @@
...
@@ -558,7 +558,7 @@
if
(
$request
[
'round_trip'
]
!=
0
){
if
(
$request
[
'round_trip'
]
!=
0
){
$char
=
$kmcharge
*
2
;
$char
=
$kmcharge
*
2
;
}
else
{
}
else
{
$char
=
$kmcharge
$char
=
$kmcharge
;
}
}
$response
=
array
(
'status'
=>
'success'
,
'message'
=>
''
,
'data'
=>
$data
,
'check'
=>
$check
,
'km_price'
=>
$char
);
$response
=
array
(
'status'
=>
'success'
,
'message'
=>
''
,
'data'
=>
$data
,
'check'
=>
$check
,
'km_price'
=>
$char
);
}
else
{
}
else
{
...
...
application/models/Webservice_model.php
View file @
7e925896
...
@@ -175,7 +175,7 @@ class Webservice_model extends CI_Model{
...
@@ -175,7 +175,7 @@ class Webservice_model extends CI_Model{
$config
=
Array
(
$config
=
Array
(
'protocol'
=>
'smtp'
,
'protocol'
=>
'smtp'
,
'smtp_host'
=>
$settings
->
smtp_host
,
'smtp_host'
=>
$settings
->
smtp_host
,
'smtp_port'
=>
25
,
'smtp_port'
=>
587
,
'smtp_user'
=>
$settings
->
smtp_username
,
// change it to yours
'smtp_user'
=>
$settings
->
smtp_username
,
// change it to yours
'smtp_pass'
=>
$settings
->
smtp_password
,
// change it to yours
'smtp_pass'
=>
$settings
->
smtp_password
,
// change it to yours
'smtp_timeout'
=>
20
,
'smtp_timeout'
=>
20
,
...
@@ -2166,7 +2166,7 @@ function get_push_notification_details($request){
...
@@ -2166,7 +2166,7 @@ function get_push_notification_details($request){
$this
->
db
->
select
(
'users.first_name,users.email,users.phone_no,booking.*,ride.no_of_seats AS rideseat,car_details.car_image'
);
$this
->
db
->
select
(
'users.first_name,users.email,users.phone_no,booking.*,ride.no_of_seats AS rideseat,car_details.car_image'
);
$this
->
db
->
from
(
'booking'
);
$this
->
db
->
from
(
'booking'
);
$this
->
db
->
join
(
'ride'
,
'booking.ride_id=ride.id'
,
'left'
);
$this
->
db
->
join
(
'ride'
,
'booking.ride_id=ride.id'
,
'left'
);
$this
->
db
->
join
(
'users'
,
'
ride.users
_id=users.id'
,
'left'
);
$this
->
db
->
join
(
'users'
,
'
booking.user
_id=users.id'
,
'left'
);
$this
->
db
->
join
(
'car_details'
,
'ride.car_id=car_details.id'
,
'left'
);
$this
->
db
->
join
(
'car_details'
,
'ride.car_id=car_details.id'
,
'left'
);
$query
=
$this
->
db
->
get
();
$query
=
$this
->
db
->
get
();
// echo $this->db->last_query();
// echo $this->db->last_query();
...
@@ -2190,23 +2190,23 @@ function get_userpush_notification_details($request){
...
@@ -2190,23 +2190,23 @@ function get_userpush_notification_details($request){
}
}
function
reject_send_details
(
$request
){
function
reject_send_details
(
$request
){
$this
->
db
->
where
(
'booking.id'
,
$request
);
$this
->
db
->
where
(
'booking.
booking_
id'
,
$request
);
$this
->
db
->
select
(
'booking.*,users.*'
);
$this
->
db
->
select
(
'booking.*,users.*'
);
$this
->
db
->
from
(
'booking'
);
$this
->
db
->
from
(
'booking'
);
$this
->
db
->
join
(
'users'
,
'booking.user_id=users.id'
,
'left'
);
$this
->
db
->
join
(
'users'
,
'booking.user_id=users.id'
,
'left'
);
$query
=
$this
->
db
->
get
();
$query
=
$this
->
db
->
get
();
// echo $this->db->last_query()
;
// echo $this->db->last_query(); exit
;
return
$query
->
row
();
return
$query
->
row
();
}
}
function
approve_send_details
(
$request
){
function
approve_send_details
(
$request
){
$this
->
db
->
where
(
'booking.id'
,
$request
);
$this
->
db
->
where
(
'booking.
booking_
id'
,
$request
);
$this
->
db
->
select
(
'booking.*,users.*'
);
$this
->
db
->
select
(
'booking.*,users.*'
);
$this
->
db
->
from
(
'booking'
);
$this
->
db
->
from
(
'booking'
);
$this
->
db
->
join
(
'users'
,
'booking.user_id=users.id'
,
'left'
);
$this
->
db
->
join
(
'users'
,
'booking.user_id=users.id'
,
'left'
);
$query
=
$this
->
db
->
get
();
$query
=
$this
->
db
->
get
();
//echo $this->db->last_query()
;
//echo $this->db->last_query(); exit
;
return
$query
->
row
();
return
$query
->
row
();
...
...
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