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
fcc2261a
Commit
fcc2261a
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jansa'
parents
f9e6bd1e
7a71d46c
master
…
client
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Webservice.php
admin/application/controllers/Webservice.php
+2
-1
Webservice_model.php
admin/application/models/Webservice_model.php
+2
-2
No files found.
admin/application/controllers/Webservice.php
View file @
fcc2261a
...
...
@@ -5180,6 +5180,7 @@ print_r(date('H:i',$ms));exit();*/
$start
=
0
;
$page_no
=
0
;
}
$total_data
=
$this
->
Webservice_model
->
get_doctor_notification_list
(
$authtoken
->
doctor_id
,
0
,
0
);
$result
=
$this
->
Webservice_model
->
get_doctor_notification_list
(
$authtoken
->
doctor_id
,
$start
,
$per_page
);
$count
=
$this
->
Webservice_model
->
get_doctor_notification_list_unread_count
(
$authtoken
->
doctor_id
);
if
(
$count
){
...
...
@@ -5189,7 +5190,7 @@ print_r(date('H:i',$ms));exit();*/
}
$notifArray
=
array
();
if
(
$result
!=
false
){
$total
=
count
(
$
result
);
$total
=
count
(
$
total_data
);
}
else
{
$total
=
0
;
}
...
...
This diff is collapsed.
Click to expand it.
admin/application/models/Webservice_model.php
View file @
fcc2261a
...
...
@@ -3242,9 +3242,9 @@ class Webservice_model extends CI_Model {
//SELECT IIF(Obsolete = 'N' or InStock = 'Y', 1, 0) as Saleable, * FROM Product
$this
->
db
->
select
(
"read_status,id,type,message"
);
$this
->
db
->
order_by
(
'tbl_doctor_notifications.id'
,
'DESC'
);
//
if($start!=0 && $per_page!=0){
if
(
$start
!=
0
&&
$per_page
!=
0
){
$this
->
db
->
limit
(
$per_page
,
$start
);
//
}
}
$result
=
$this
->
db
->
get_where
(
'tbl_doctor_notifications'
,
array
(
'doctor_id'
=>
$doctorid
))
->
result
();
//echo $this->db->last_query();exit();
if
(
count
(
$result
)
>
0
){
...
...
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