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
b9d9b6ef
Commit
b9d9b6ef
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jansa'
parents
2436d1a4
a3dd8ea9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
+26
-7
Webservice.php
admin/application/controllers/Webservice.php
+22
-4
Webservice_model.php
admin/application/models/Webservice_model.php
+3
-3
custom.js
assets/js/custom.js
+1
-0
No files found.
admin/application/controllers/Webservice.php
View file @
b9d9b6ef
...
...
@@ -42,16 +42,16 @@ class Webservice extends CI_Controller {
$ress
=
$this
->
cpf_valid
(
$data
[
'cpf'
]);
if
((
isset
(
$ress
))
&&
(
$ress
==
1
)){
/*
$is_cpf = $this->Webservice_model->is_cpf_exist($data['cpf']);
if($is_cpf['status'] == 'success'){
*/
$is_cpf
=
$this
->
Webservice_model
->
is_cpf_exist
(
$data
[
'cpf'
]);
if
(
$is_cpf
[
'status'
]
==
'success'
){
$res
=
$this
->
registration_processing_user
(
$data
,
$type
);
/*
}else{
}
else
{
$res
=
array
(
"status"
=>
"error"
,
"error"
=>
"CPF Exist"
,
"message"
=>
"CPF Already Exist"
);
}
*/
}
}
else
{
$res
=
array
(
"status"
=>
"error"
,
...
...
@@ -2060,6 +2060,14 @@ class Webservice extends CI_Controller {
// $data['dob'] = strtotime($dob);
$ress
=
$this
->
cpf_valid
(
$data
[
'dependent_cpf'
]);
if
(
$ress
==
'1'
){
$is_cpf
=
$this
->
Webservice_model
->
is_cpf_exist
(
$data
[
'dependent_cpf'
]);
if
(
$is_cpf
[
'status'
]
==
'error'
){
$res
=
array
(
"status"
=>
"error"
,
"error"
=>
"CPF Exist"
,
"message"
=>
"CPF Already Exist"
);
}
else
{
$auth_result
=
$this
->
Webservice_model
->
get_userid_frm_authtoken
(
$headers
[
'Auth'
]);
$fileName
=
$auth_result
->
userid
.
'_'
.
$_FILES
[
'dependent_image'
][
'name'
];
$fileName
=
str_replace
(
'%'
,
'a'
,
$fileName
);
...
...
@@ -2100,6 +2108,7 @@ class Webservice extends CI_Controller {
'data'
=>
array
(
'dependent_list'
=>
$new_data
)
);
}
}
}
else
{
$res
=
array
(
"status"
=>
"error"
,
...
...
@@ -2179,6 +2188,14 @@ class Webservice extends CI_Controller {
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
){
$ress
=
$this
->
cpf_valid
(
$data
[
'dependent_cpf'
]);
if
(
$ress
==
'1'
){
$is_cpf
=
$this
->
Webservice_model
->
is_cpf_exist
(
$data
[
'dependent_cpf'
]);
if
(
$is_cpf
[
'status'
]
==
'error'
){
$res
=
array
(
"status"
=>
"error"
,
"error"
=>
"CPF Exist"
,
"message"
=>
"CPF Already Exist"
);
}
else
{
$auth_result
=
$this
->
Webservice_model
->
get_userid_frm_authtoken
(
$headers
[
'Auth'
]);
$fileName
=
$auth_result
->
userid
.
'_'
.
$_FILES
[
'dependent_image'
][
'name'
];
$config
=
set_upload_options
(
'../assets/uploads/profilepic/patient_dependent/'
);
...
...
@@ -2219,6 +2236,7 @@ class Webservice extends CI_Controller {
'data'
=>
array
(
'dependent_list'
=>
$new_data
)
);
}
}
}
else
{
$res
=
array
(
"status"
=>
"error"
,
...
...
This diff is collapsed.
Click to expand it.
admin/application/models/Webservice_model.php
View file @
b9d9b6ef
...
...
@@ -4177,9 +4177,9 @@ CASE when tbl_registration.gender='0' then 'MALE' when tbl_registration.gender='
$this
->
db
->
where
(
'doctor_id'
,
$doc_id
);
$query
=
$this
->
db
->
get
()
->
row_array
();
$query
[
'reedem_earn'
]
=
decrypt_data
(
$query
[
'reedem_earn'
]);
$query
[
'future_earn'
]
=
decrypt_data
(
$query
[
'future_earn'
]);
$query
[
'total_earn'
]
=
decrypt_data
(
$query
[
'total_earn'
]);
$query
[
'reedem_earn'
]
=
$query
[
'reedem_earn'
]
==
""
?
0
:
decrypt_data
(
$query
[
'reedem_earn'
]);
$query
[
'future_earn'
]
=
$query
[
'future_earn'
]
==
""
?
0
:
decrypt_data
(
$query
[
'future_earn'
]);
$query
[
'total_earn'
]
=
$query
[
'total_earn'
]
==
""
?
0
:
decrypt_data
(
$query
[
'total_earn'
]);
return
$query
;
}
...
...
This diff is collapsed.
Click to expand it.
assets/js/custom.js
View file @
b9d9b6ef
...
...
@@ -2090,6 +2090,7 @@ $('#home_registernowbtn a').click(function()
$
(
"#login_submit_patient"
).
click
(
function
()
{
$
(
"#loading"
).
show
();
//$('#loading').css('display','none');
$
(
'#err-login'
).
addClass
(
'hidden'
);
if
(
$
(
'#login-form-patient'
).
parsley
().
validate
()
)
{
...
...
This diff is collapsed.
Click to expand it.
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