From 2e6106bced3a3082939e9bed88c31430ce8d252d Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Fri, 17 Aug 2018 12:32:58 +0530 Subject: [PATCH 1/3] dashboard router changes for fees pending and registered student details --- Apollo/api/application/config/routes.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Apollo/api/application/config/routes.php b/Apollo/api/application/config/routes.php index af1cf416..a986a01f 100755 --- a/Apollo/api/application/config/routes.php +++ b/Apollo/api/application/config/routes.php @@ -157,6 +157,8 @@ $route['getDashboardCallTrack'] = 'Call_Tracking_Controller/getDashboardCallTrac $route['getTotalStudent'] = 'Dashboard_Controller/getTotalStudent'; $route['getTotalEmployee'] = 'Dashboard_Controller/getTotalEmployee'; $route['getTotalUsers'] = 'Dashboard_Controller/getTotalUsers'; +$route['getUniversityRegisteredStudent'] = 'Dashboard_Controller/getUniversityRegisteredStudent'; +$route['getDashboradStudentPendingFees'] = 'Dashboard_Controller/getDashboradStudentPendingFees'; /*login page announcement*/ $route['getLoginAnnouncementDetails'] = 'Login_Controller/getLoginAnnouncementDetails'; From 16681772fd7ee7d7454eeb6276f8b28d45c3b3cc Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Fri, 17 Aug 2018 12:33:14 +0530 Subject: [PATCH 2/3] dashboard changes --- .../controllers/Dashboard_Controller.php | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Apollo/api/application/controllers/Dashboard_Controller.php b/Apollo/api/application/controllers/Dashboard_Controller.php index 30cd7d1f..4b957cec 100755 --- a/Apollo/api/application/controllers/Dashboard_Controller.php +++ b/Apollo/api/application/controllers/Dashboard_Controller.php @@ -89,4 +89,25 @@ class Dashboard_Controller extends REST_Controller { ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code } } + /* + * get university based student registration details for dash board + * created by kms + * */ + public function getUniversityRegisteredStudent(){ + $data = $this->post('data'); + $getRegisteredDetails = $this->dashboard_model->get_univ_registered_student($data); + if ($getRegisteredDetails) { + $getRegisteredDetails['status'] = REST_Controller::HTTP_OK; + // Set the response and exit + $this->response($getRegisteredDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code + } + else + { + // Set the response and exit + $this->response([ + 'message' => 'No users were found', + 'status' => REST_Controller::HTTP_NOT_FOUND + ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code + } + } } From c03ed34e327be5e7b8d3aa596c30d74afaf79d39 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Fri, 17 Aug 2018 12:33:29 +0530 Subject: [PATCH 3/3] dashboard changes --- Apollo/api/application/models/Dashboard_model.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Apollo/api/application/models/Dashboard_model.php b/Apollo/api/application/models/Dashboard_model.php index 94b5af7d..55fc64dd 100755 --- a/Apollo/api/application/models/Dashboard_model.php +++ b/Apollo/api/application/models/Dashboard_model.php @@ -69,6 +69,13 @@ class Dashboard_model extends CI_Model } return $result; } + /* + * get university registerd student details + * created by kms + * */ + public function get_univ_registered_student($details){ + + } } \ No newline at end of file