Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IPok_Web
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
IPok
IPok_Web
Commits
797bfa45
Commit
797bfa45
authored
Jul 27, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
parent
1eff1bba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
Webservice.php
admin/application/controllers/Webservice.php
+1
-1
Webservice_model.php
admin/application/models/Webservice_model.php
+19
-2
No files found.
admin/application/controllers/Webservice.php
View file @
797bfa45
...
...
@@ -6853,7 +6853,7 @@ print_r(date('H:i',$ms));exit();*/
if
(
isset
(
$data
[
'month'
])
&&
strlen
(
$data
[
'month'
])
&&
isset
(
$data
[
'year'
])
&&
strlen
(
$data
[
'year'
])
&&
isset
(
$data
[
'first_name'
])
&&
strlen
(
$data
[
'first_name'
])
&&
isset
(
$data
[
'last_name'
])
&&
strlen
(
$data
[
'last_name'
])
&&
isset
(
$data
[
'card_number'
])
&&
strlen
(
$data
[
'card_number'
])
&&
isset
(
$data
[
'cvv'
])
&&
strlen
(
$data
[
'cvv'
])
&&
isset
(
$data
[
'booking_id'
])
&&
strlen
(
$data
[
'booking_id'
]))
{
$authtoken
=
$this
->
Webservice_model
->
get_userid_frm_authtoken
(
$headers
[
'Auth'
]);
$data
[
'user_id'
]
=
$authtoken
->
userid
;
$get_booked_payed_data
=
$this
->
Webservice_model
->
get_booked_payed_data
(
$data
[
'booking_id'
]);
$check_markbooking
=
$this
->
Webservice_model
->
checkBooking
(
$data
[
'booking_id'
]);
$booking_details
=
$this
->
Webservice_model
->
get_booking_details
(
$data
[
'booking_id'
]);
$patient_data
=
$this
->
Webservice_model
->
get_single_patient
(
$booking_details
[
'patient_id'
]);
...
...
admin/application/models/Webservice_model.php
View file @
797bfa45
...
...
@@ -56,7 +56,7 @@ class Webservice_model extends CI_Model {
$this
->
db
->
select
(
"CAST(AES_DECRYPT(`dob`,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') as CHAR) as dob"
);
$this
->
db
->
where
(
'id'
,
$insertid
);
$query_date
=
$this
->
db
->
get
(
'tbl_registration'
)
->
row
();
//echo $this->db->last_query();exit();
unset
(
$query
[
'dob'
]);
$query
[
'dob'
]
=
$query_date
->
dob
;
$query
[
'name'
]
=
decrypt_data
(
$query
[
'name'
]);
...
...
@@ -1029,7 +1029,7 @@ class Webservice_model extends CI_Model {
$promo_name
=
''
;
}
$check
=
$this
->
db
->
get_where
(
'tbl_booking'
,
array
(
'doctor_id'
=>
$data
[
'doctor_id'
],
'clinic_id'
=>
$data
[
'clinic_id'
],
'date'
=>
$data
[
'date'
],
'time'
=>
$data
[
'time'
]));
$check
=
$this
->
db
->
get_where
(
'tbl_booking'
,
array
(
'doctor_id'
=>
$data
[
'doctor_id'
],
'clinic_id'
=>
$data
[
'clinic_id'
],
'date'
=>
$data
[
'date'
],
'time'
=>
$data
[
'time'
]
,
'payment_status'
=>
'1'
));
$this
->
db
->
select
(
'name,profile_pic,specialization'
);
$doctr_data
=
$this
->
db
->
get_where
(
'tbl_doctors'
,
array
(
'id'
=>
$data
[
'doctor_id'
]))
->
row_array
();
//print_r($doctr_data);exit();
...
...
@@ -3864,6 +3864,23 @@ class Webservice_model extends CI_Model {
$this
->
db
->
where
(
'tbl_booking.id'
,
$id
);
$this
->
db
->
update
(
'tbl_booking'
,
$update
);
}
// public function get_booked_payed_data($id){
// $booked_data = $this->db->get_where('tbl_booking',array('id'=>$id))->row_array();
// if($booked_data){
// $check = $this->db->get_where('tbl_booking',array('doctor_id'=>$booked_data['doctor_id'],'clinic_id'=>$booked_data['clinic_id'],'date'=>$booked_data['date'],'time'=>$booked_data['time'],'payment_status'=>'1'));
// if($check->num_rows() <= '0'){
// $is_result = 0;
// }else if($check->num_rows() == '1'){
// $is_result = 1;
// }else if($check->num_rows() >= '1'){
// $is_result = 2;
// }
// return $is_result;
// }
// }
/*function push_sent($fcm_data,$type) {
...
...
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