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
50c7387d
Commit
50c7387d
authored
Aug 07, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fbloginpatnt
parent
73a21cc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
Webservice_model.php
admin/application/models/Webservice_model.php
+11
-11
No files found.
admin/application/models/Webservice_model.php
View file @
50c7387d
...
...
@@ -328,6 +328,17 @@ class Webservice_model extends CI_Model {
function
update_patient_registration_data
(
$data
,
$query
){
$data
[
'username'
]
=
$data
[
'uid'
];
$data
[
'name'
]
=
encrypt_data
(
$data
[
'name'
]);
$data
[
'rg'
]
=
encrypt_data
(
$data
[
'rg'
]);
$data
[
'gender'
]
=
encrypt_data
(
$data
[
'gender'
]);
$data
[
'weight'
]
=
encrypt_data
(
$data
[
'weight'
]);
$data
[
'height'
]
=
encrypt_data
(
$data
[
'height'
]);
$data
[
'blood_group'
]
=
encrypt_data
(
$data
[
'blood_group'
]);
$data
[
'zip_code'
]
=
encrypt_data
(
$data
[
'zip_code'
]);
$data
[
'street_address'
]
=
encrypt_data
(
$data
[
'street_address'
]);
$data
[
'locality'
]
=
encrypt_data
(
$data
[
'locality'
]);
$data
[
'number'
]
=
encrypt_data
(
$data
[
'number'
]);
$data
[
'landmark'
]
=
encrypt_data
(
$data
[
'landmark'
]);
$new
=
array
();
$type
=
'user'
;
$data
[
'is_registration_completed'
]
=
1
;
...
...
@@ -364,17 +375,6 @@ class Webservice_model extends CI_Model {
}
$this
->
insert_bystander_registration
(
$new
,
$result
);
}
else
{
$data
[
'name'
]
=
encrypt_data
(
$data
[
'name'
]);
$data
[
'rg'
]
=
encrypt_data
(
$data
[
'rg'
]);
$data
[
'gender'
]
=
encrypt_data
(
$data
[
'gender'
]);
$data
[
'weight'
]
=
encrypt_data
(
$data
[
'weight'
]);
$data
[
'height'
]
=
encrypt_data
(
$data
[
'height'
]);
$data
[
'blood_group'
]
=
encrypt_data
(
$data
[
'blood_group'
]);
$data
[
'zip_code'
]
=
encrypt_data
(
$data
[
'zip_code'
]);
$data
[
'street_address'
]
=
encrypt_data
(
$data
[
'street_address'
]);
$data
[
'locality'
]
=
encrypt_data
(
$data
[
'locality'
]);
$data
[
'number'
]
=
encrypt_data
(
$data
[
'number'
]);
$data
[
'landmark'
]
=
encrypt_data
(
$data
[
'landmark'
]);
if
(
$this
->
db
->
update
(
'tbl_registration'
,
$data
,
array
(
'uid'
=>
$data
[
'uid'
]))){
$ress
=
'true'
;
}
...
...
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