From bbaca4324e2adab9a1603204e8b9e0d0daa2b5a5 Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Sat, 16 Mar 2019 02:48:45 +0000 Subject: [PATCH] Backend Service --- .../application/controllers/Provider.php | 1 + providerwww/application/models/Dash_model.php | 18 ++++++++++++++++++ .../application/views/template/topstrip2.php | 16 ++++++++-------- 3 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 providerwww/application/models/Dash_model.php diff --git a/providerwww/application/controllers/Provider.php b/providerwww/application/controllers/Provider.php index 58a0b81..5b0a99e 100644 --- a/providerwww/application/controllers/Provider.php +++ b/providerwww/application/controllers/Provider.php @@ -10,6 +10,7 @@ class Provider extends Provider_Controller { $this->load->model('patient_model'); $out = $this->patient_model->getPatientList(); $data["patient_list"] = $out["patient_list"]; + $_SESSION['patient_count']=5; $this->renderProviderSecurePage('dash', $data); } diff --git a/providerwww/application/models/Dash_model.php b/providerwww/application/models/Dash_model.php new file mode 100644 index 0000000..a9997b9 --- /dev/null +++ b/providerwww/application/models/Dash_model.php @@ -0,0 +1,18 @@ +db->query($mysql); + $num = $query->num_rows(); + $data["patient_list"] = $query->result(); + return $data; + } +} diff --git a/providerwww/application/views/template/topstrip2.php b/providerwww/application/views/template/topstrip2.php index 8149b2a..098f1c8 100644 --- a/providerwww/application/views/template/topstrip2.php +++ b/providerwww/application/views/template/topstrip2.php @@ -5,7 +5,7 @@
-

Total Visits

+

Encounters

@@ -13,8 +13,8 @@
-

15,640

-

Monthly visitor

+

0

+

Find Encounter

@@ -22,7 +22,7 @@
-

Total Cost

+

Schedule

@@ -30,7 +30,7 @@
-

16,656

+

0

This month

@@ -39,7 +39,7 @@
-

Total Sales

+

Patients

@@ -47,8 +47,8 @@
-

569

-

Avg. Sales per day

+

+

Find Patient