course details changes done

This commit is contained in:
gandhimathi 2018-02-26 18:39:30 +05:30
parent 31d74c0892
commit f949744c61

View File

@ -452,11 +452,11 @@ class Student_model extends CI_Model
// echo $req['localBranchID'];exit();
$this->db->select('t1.*,t2.UniversityName,t3.CourseName,t3.CourseCode,t3.Specilization1,t3.Specilization2,t4.BatchName');
$this->db->select('t1.*,t2.UniversityName,t3.CourseName,t3.CourseCode,t3.Specilization1,t3.Specilization2,t4.SessionName');
$this->db->from('' . STUDENTCOURSE . ' as t1');
$this->db->join('' . UNIVERSITY . ' as t2', 't2.UniversityID = t1.UniversityID', 'LEFT');
$this->db->join('' . COURSE . ' as t3', 't3.CourseID = t1.CourseID', 'LEFT');
$this->db->join('' . BATCH . ' as t4', 't4.BatchCode = t1.BatchCode', 'LEFT');
$this->db->join('' . SESSIONMASTER . ' as t4', 't4.SessionID = t1.SessionID', 'LEFT');
$this->db->where('t1.BranchID', $req['localBranchID']);
$this->db->where('StudentID', $studentId);
$courseDetails = $this->db->get();
@ -524,10 +524,12 @@ class Student_model extends CI_Model
$this->db->where('IsActive', 1);
$courseDetails = $this->db->get();
if ($courseDetails->result()) {
$this->db->select('B.BatchCode, B.BatchName');
$this->db->from(BATCH . ' as B');
$this->db->where('UniversityID', $univId);
$this->db->where('IsActive', 1);
$this->db->select('B.SessionID, B.SessionName');
$this->db->from(SESSIONMASTER . ' as B');
$this->db->join(SESSIONDETAILS . ' SD', 'SD.SessionID = B.SessionID');
$this->db->where('SD.UniversityID', $univId);
$this->db->where('B.IsActive', 1);
$this->db->where('SD.IsActive', 1);
$batchDetails = $this->db->get();
if ($batchDetails->result()) {
$result['courseStatus'] = true;
@ -558,14 +560,14 @@ class Student_model extends CI_Model
$this->db->from('' . STUDENTS . ' as t0');
$this->db->where('t0.StudentID', $data);
$personalDetails = $this->db->get()->result();
$this->db->select('t1.*,t2.UniversityName,t3.CourseName,t3.Specilization1,t3.Specilization2,t4.BatchName, t5.BranchName');
$this->db->select('t1.*,t2.UniversityName,t3.CourseName,t3.Specilization1,t3.Specilization2,t4.SessionName, t5.BranchName');
// $this->db->from('' . STUDENTS . ' as t0');
$this->db->from('' . STUDENTCOURSE . ' as t1');
$this->db->join('' . UNIVERSITY . ' as t2', 't2.UniversityID = t1.UniversityID', 'LEFT');
$this->db->join('' . COURSE . ' as t3', 't3.CourseID = t1.CourseID', 'LEFT');
$this->db->join('' . BATCH . ' as t4', 't4.BatchCode = t1.BatchCode', 'LEFT');
$this->db->join('' . SESSIONMASTER . ' as t4', 't4.SessionID = t1.SessionID', 'LEFT');
$this->db->join('' . BRANCH . ' as t5', 't5.BranchCode = t1.BranchID', 'LEFT');
$this->db->where('t1.StudentID', $data);