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
d3becb23
Commit
d3becb23
authored
Aug 31, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jansa' of
https://gitlab.techware.co.in/IPok/IPok_Web
into jansa
parents
14ec1f90
7d480f8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Webservice.php
admin/application/controllers/Webservice.php
+1
-1
Webservice_model.php
admin/application/models/Webservice_model.php
+1
-1
No files found.
admin/application/controllers/Webservice.php
View file @
d3becb23
...
...
@@ -2185,7 +2185,7 @@ class Webservice extends CI_Controller {
if
(
isset
(
$headers
[
'Auth'
])
&&
strlen
(
$headers
[
'Auth'
]))
{
$check_authToken
=
$this
->
Webservice_model
->
check_auth_token
(
$headers
[
'Auth'
]);
if
(
$check_authToken
){
if
((
isset
(
$data
[
'dependent_name'
]))
&&
strlen
(
trim
(
$data
[
'dependent_name'
],
" "
))
>
0
&&
isset
(
$data
[
'dependent_relation'
])
&&
strlen
(
trim
(
$data
[
'dependent_relation'
],
" "
))
>
0
&&
isset
(
$data
[
'dependent_
age'
])
&&
strlen
(
trim
(
$data
[
'dependent_age
'
],
" "
))
>
0
&&
(
isset
(
$_FILES
[
'dependent_image'
])
&&
isset
(
$data
[
'dependent_id'
])
&&
strlen
(
trim
(
$data
[
'dependent_id'
],
" "
))
>
0
)
&&
isset
(
$data
[
'dependent_cpf'
])
&&
strlen
(
trim
(
$data
[
'dependent_cpf'
],
" "
))
>
0
){
if
((
isset
(
$data
[
'dependent_name'
]))
&&
strlen
(
trim
(
$data
[
'dependent_name'
],
" "
))
>
0
&&
isset
(
$data
[
'dependent_relation'
])
&&
strlen
(
trim
(
$data
[
'dependent_relation'
],
" "
))
>
0
&&
isset
(
$data
[
'dependent_
dob'
])
&&
strlen
(
trim
(
$data
[
'dependent_dob
'
],
" "
))
>
0
&&
(
isset
(
$_FILES
[
'dependent_image'
])
&&
isset
(
$data
[
'dependent_id'
])
&&
strlen
(
trim
(
$data
[
'dependent_id'
],
" "
))
>
0
)
&&
isset
(
$data
[
'dependent_cpf'
])
&&
strlen
(
trim
(
$data
[
'dependent_cpf'
],
" "
))
>
0
){
$ress
=
$this
->
cpf_valid
(
$data
[
'dependent_cpf'
]);
if
(
$ress
==
'1'
){
$is_cpf
=
$this
->
Webservice_model
->
is_cpf_exist
(
$data
[
'dependent_cpf'
]);
...
...
admin/application/models/Webservice_model.php
View file @
d3becb23
...
...
@@ -2467,7 +2467,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
//.........................edit dependent data
public
function
edit_dependent
(
$data
,
$id
){
if
(
$this
->
db
->
update
(
'tbl_patient_dependent'
,
array
(
'dependent_name'
=>
$data
[
'dependent_name'
],
'relation'
=>
$data
[
'dependent_relation'
],
'dob'
=>
$data
[
'dependent_
age
'
],
'image'
=>
$data
[
'image'
],
'cpf'
=>
$data
[
'dependent_cpf'
]),
array
(
'id'
=>
$data
[
'dependent_id'
]))){
if
(
$this
->
db
->
update
(
'tbl_patient_dependent'
,
array
(
'dependent_name'
=>
$data
[
'dependent_name'
],
'relation'
=>
$data
[
'dependent_relation'
],
'dob'
=>
$data
[
'dependent_
dob
'
],
'image'
=>
$data
[
'image'
],
'cpf'
=>
$data
[
'dependent_cpf'
]),
array
(
'id'
=>
$data
[
'dependent_id'
]))){
$result
=
$this
->
db
->
get_where
(
'tbl_patient_dependent'
,
array
(
'patient_id'
=>
$id
))
->
result
();
if
(
count
(
$result
)
>
0
){
...
...
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