course details changes done

This commit is contained in:
gandhimathi 2018-02-26 19:07:44 +05:30
parent 8da859afb5
commit 7a41bba5e9

View File

@ -79,11 +79,11 @@ class Studentview_model extends CI_Model
* */ * */
public function getStudentCourse($studentId=null){ public function getStudentCourse($studentId=null){
$this->db->select('SCU.EnrollmentID,CU.CourseID,CU.CourseName,US.UniversityID,US.UniversityName,BA.BatchName'); $this->db->select('SCU.EnrollmentID,CU.CourseID,CU.CourseName,US.UniversityID,US.UniversityName,SM.SessionName');
$this->db->from( STUDENTCOURSE . ' as SCU'); $this->db->from( STUDENTCOURSE . ' as SCU');
$this->db->join( COURSE . ' as CU', 'CU.CourseID = SCU.CourseID'); $this->db->join( COURSE . ' as CU', 'CU.CourseID = SCU.CourseID');
$this->db->join( UNIVERSITY . ' as US', 'US.UniversityID = SCU.UniversityID'); $this->db->join( UNIVERSITY . ' as US', 'US.UniversityID = SCU.UniversityID');
$this->db->join( BATCH . ' as BA', 'BA.BatchCode = SCU.BatchCode'); $this->db->join( SESSIONMASTER . ' as SM', 'SM.SessionID = SCU.SessionID');
$this->db->where('SCU.StudentID', $studentId); $this->db->where('SCU.StudentID', $studentId);
$courseDetails = $this->db->get(); $courseDetails = $this->db->get();
if($courseDetails->result()){ if($courseDetails->result()){
@ -93,7 +93,7 @@ class Studentview_model extends CI_Model
$fetchData['CourseName']=$row->CourseName; $fetchData['CourseName']=$row->CourseName;
$fetchData['UniversityID']=$row->UniversityID; $fetchData['UniversityID']=$row->UniversityID;
$fetchData['UniversityName']=$row->UniversityName; $fetchData['UniversityName']=$row->UniversityName;
$fetchData['BatchName']=$row->BatchName; $fetchData['SessionName']=$row->SessionName;
$fetchData['EnrollmentID']=$row->EnrollmentID; $fetchData['EnrollmentID']=$row->EnrollmentID;
// get student fees details // get student fees details
$fetchData['feesDetails']=$this->getStudentFeesDetails($studentId,$row->CourseID); $fetchData['feesDetails']=$this->getStudentFeesDetails($studentId,$row->CourseID);