From 6533bcb6a35b57e2836f10328a31c156342eb358 Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Tue, 18 Sep 2018 12:12:42 +0530 Subject: [PATCH] application status --- .../application/models/Studentview_model.php | 31 ++++++++++++++++++- .../views/student/studentDetailsModal.html | 22 +++++++++++-- 2 files changed, 49 insertions(+), 4 deletions(-) diff --git a/Apollo/api/application/models/Studentview_model.php b/Apollo/api/application/models/Studentview_model.php index bf5d2a51..ca2b9a5f 100755 --- a/Apollo/api/application/models/Studentview_model.php +++ b/Apollo/api/application/models/Studentview_model.php @@ -185,7 +185,9 @@ class Studentview_model extends CI_Model $fetchData['studyMaterialDetails']=$this->getStudentMaterialDetails($studentId,$row->CourseID); // get application details if($requestFrom!='2'){ - $fetchData['applicationDetails']=$this->getStudentApplicationDetails($studentId,$row->CourseID); + //$fetchData['applicationDetails']=$this->getStudentApplicationDetails($studentId,$row->CourseID); + + $fetchData['applicationDetails']=$this->getStudentLatestAppStatus($studentId,$row->CourseID); $fetchData['answerbookletDetails']=$this->getStudentAnswerbookletDetails($studentId,$row->CourseID); @@ -583,4 +585,31 @@ class Studentview_model extends CI_Model } } + + + public function getStudentLatestAppStatus($studentid,$courseid) + { + + // echo 'in'; + $this->db->select('T_ApplicationStatus.StudentID,AppDate,CertificateName,ListName,Firstname,Lastname,T_ApplicationStatus.Comments,CourseName,T_ApplicationStatus.CertificationNo'); + $this->db->from('T_ApplicationStatus'); + $this->db->join('T_PickListDetails','T_PickListDetails.ListCode = T_ApplicationStatus.ListCode','left'); + $this->db->join('T_CertificationMaster','T_CertificationMaster.CertificationID = T_ApplicationStatus.CertificationType','left'); + $this->db->join('T_StudentDetails','T_StudentDetails.StudentID = T_ApplicationStatus.StudentID','left'); + $this->db->join('T_CourseMaster','T_CourseMaster.CourseID = T_ApplicationStatus.CourseID','left'); + $this->db->where('T_ApplicationStatus.CourseID',$courseid); + $this->db->where('T_ApplicationStatus.StudentID',$studentid); + $this->db->group_by('CertificationType'); + $this->db->order_by('T_ApplicationStatus.CreatedOn','desc'); + + $appDetails = $this->db->get(); + + if ($appDetails->result()){ + return $appDetails->result(); + } + else{ + return false; + } + } + } \ No newline at end of file diff --git a/Apollo/assets/views/student/studentDetailsModal.html b/Apollo/assets/views/student/studentDetailsModal.html index b1b7f339..a9795e9a 100755 --- a/Apollo/assets/views/student/studentDetailsModal.html +++ b/Apollo/assets/views/student/studentDetailsModal.html @@ -303,6 +303,8 @@ + +
@@ -314,16 +316,23 @@ - Document Name + + + Certificate Number + Certificate Type + Course Comments + Date + Status - + + {{apps.CertificationNo}} + {{apps.CertificateName}} + {{apps.CourseName}} + {{apps.Comments}} + {{apps.AppDate}} + {{apps.ListName}} +