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
3aaf76d2
Commit
3aaf76d2
authored
Aug 03, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add clicnic default
parent
6542a092
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Webservice_model.php
admin/application/models/Webservice_model.php
+7
-1
No files found.
admin/application/models/Webservice_model.php
View file @
3aaf76d2
...
@@ -2929,12 +2929,18 @@ class Webservice_model extends CI_Model {
...
@@ -2929,12 +2929,18 @@ class Webservice_model extends CI_Model {
$this
->
db
->
where
(
'tbl_clinic_doctors.clinic_id'
,
'0'
);
$this
->
db
->
where
(
'tbl_clinic_doctors.clinic_id'
,
'0'
);
$this
->
db
->
where
(
'tbl_clinic_doctors.doctor_id'
,
$id
);
$this
->
db
->
where
(
'tbl_clinic_doctors.doctor_id'
,
$id
);
$query_default
=
$this
->
db
->
get
()
->
result
();
$query_default
=
$this
->
db
->
get
()
->
result
();
foreach
(
$query_default
as
$key
=>
$value
)
{
$query_default
[
$key
]
->
street_address
=
decrypt_data
(
$value
->
street_address
);
$query_default
[
$key
]
->
locality
=
decrypt_data
(
$value
->
locality
);
$query_default
[
$key
]
->
number
=
decrypt_data
(
$value
->
number
);
$query_default
[
$key
]
->
complement
=
decrypt_data
(
$value
->
complement
);
}
$new_query
=
array_merge
(
$query_default
,
$query
);
$new_query
=
array_merge
(
$query_default
,
$query
);
//echo"<pre>";print_r($new_query);exit();
//echo"<pre>";print_r($new_query);exit();
if
(
count
(
$new_query
)
>
0
){
if
(
count
(
$new_query
)
>
0
){
foreach
(
$new_query
as
$key
=>
$value
)
{
foreach
(
$new_query
as
$key
=>
$value
)
{
$location
=
decrypt_data
(
$value
->
street_address
)
.
','
.
decrypt_data
(
$value
->
locality
)
.
','
.
decrypt_data
(
$value
->
number
)
.
','
.
decrypt_data
(
$value
->
complement
)
;
$location
=
$value
->
street_address
.
','
.
$value
->
locality
.
','
.
$value
->
number
.
','
.
$value
->
complement
;
$new
[
$key
][
'id'
]
=
$value
->
id
;
$new
[
$key
][
'id'
]
=
$value
->
id
;
$new
[
$key
][
'name'
]
=
$value
->
name
;
$new
[
$key
][
'name'
]
=
$value
->
name
;
$new
[
$key
][
'email'
]
=
$value
->
email
;
$new
[
$key
][
'email'
]
=
$value
->
email
;
...
...
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