Studentview_model.php edited online with Bitbucket by velz

This commit is contained in:
gandhimathi 2018-07-20 15:08:19 +00:00
parent 87a9991717
commit bb99e45895

View File

@ -477,11 +477,13 @@ class Studentview_model extends CI_Model
* */
public function getMarkcardDetails($studentID=null,$courseID=null){
$this->db->select('CS.CourseID,CS.CertificationNo,CS.CDate,CS.Comments,CS.CertificationType as CertificateName,CF.Sem_Year,CF.FeesType,CS.Sem,PLD.ListName');
$this->db->select('CS.CourseID,CS.CertificationNo,CS.CDate,CS.Comments,CS.CertificationType as CertificateName,CF.Sem_Year,CF.FeesType,CS.Sem,PLD.ListName,PLD2.ListName as AnsBookStatus');
$this->db->from(CERTIFICATION_STATUS.' as CS');
$this->db->join(COURSE_FEES.' as CF','CF.ID = CS.CourseID');
$this->db->join(COURSE.' as CU', 'CU.CourseID = CF.CourseID');
$this->db->join(PICK_LIST_DETAILS.' as PLD', 'PLD.ListCode = CS.ListCode');
$this->db->join(ANSWER_BOOKLET.' as ASBK',"ASBK.Sem = CF.Sem_Year AND ASBK.StudentID = $studentID",'LEFT');
$this->db->join(PICK_LIST_DETAILS.' as PLD2', 'PLD2.ListCode = ASBK.ListCode','LEFT');
$this->db->where('CU.CourseID', $courseID);
$this->db->where('CS.StudentID', $studentID);
$this->db->where_in('CS.CertificationType', 'MARK CARD');