1596 duplicate course remove
This commit is contained in:
parent
83daeb3e98
commit
c7ea3c3fb9
@ -118,7 +118,7 @@ class Studentview_model extends CI_Model
|
||||
$this->db->join( BRANCH . ' as BR', 'BR.BranchCode = SCU.BranchID');
|
||||
$this->db->join( COURSE . ' as CU', 'CU.CourseID = SCU.CourseID');
|
||||
$this->db->join( UNIVERSITY . ' as US', 'US.UniversityID = SCU.UniversityID AND SCU.BranchID=US.BranchCode');
|
||||
$this->db->join( ADMISSIONS .' as AD','AD.StudentID = SCU.StudentID and AD.UniversityID = SCU.UniversityID','LEFT');
|
||||
$this->db->join( ADMISSIONS .' as AD','AD.StudentID = SCU.StudentID and AD.UniversityID = SCU.UniversityID and AD.CourseID = CU.CourseID ');
|
||||
$this->db->where('SCU.StudentID',$studentId);
|
||||
if($accessFrom == 'Web'){
|
||||
$this->db->where('BR.Is_StudentWebAccessActive', 1);
|
||||
@ -175,11 +175,12 @@ class Studentview_model extends CI_Model
|
||||
$this->db->where('StudentID',$studentId);
|
||||
$subQuery = $this->db->get_compiled_select();*/
|
||||
// subquery end
|
||||
$this->db->distinct();
|
||||
$this->db->select('SCU.EnrollmentID,CU.CourseID,CU.CourseName,US.UniversityID,US.UniversityName,US.UniversityShortName,AD.CreatedOn,AD.AdmittedBy');
|
||||
$this->db->from( STUDENTCOURSE . ' as SCU');
|
||||
$this->db->join( COURSE . ' as CU', 'CU.CourseID = SCU.CourseID');
|
||||
$this->db->join( UNIVERSITY . ' as US', 'US.UniversityID = SCU.UniversityID AND SCU.BranchID=US.BranchCode');
|
||||
$this->db->join( ADMISSIONS .' as AD','AD.StudentID = SCU.StudentID and AD.UniversityID = SCU.UniversityID','LEFT');
|
||||
$this->db->join( ADMISSIONS .' as AD','AD.StudentID = SCU.StudentID and AD.UniversityID = SCU.UniversityID and AD.CourseID = CU.CourseID ');
|
||||
// $this->db->join(STUDENTS_FEES_PAID . ' as SFP','SFP.StudentID = SCU.StudentID ');
|
||||
|
||||
// $this->db->join(STUDENTS_FEES_STATUS . ' as SFS','SFS.FeesID = SFP.FeesId and SFS.StudentID = SFP.StudentID');
|
||||
|
||||
@ -229,7 +229,7 @@
|
||||
<h4 class="panel-title text-purple">{{course.UniversityName}} / {{course.CourseName}}</h4>
|
||||
<h3>
|
||||
-->
|
||||
<h3>
|
||||
<h3 style="text-align:center;">
|
||||
<a class="text-blue">
|
||||
{{course.CourseName}}
|
||||
</a>
|
||||
@ -238,7 +238,7 @@
|
||||
</div>
|
||||
<div class="col-xs-12 no-padding">
|
||||
<a class="text-blue" tooltip="University">
|
||||
{{course.UniversityName}} Enrollment ID : {{course.EnrollmentID}} Date Of Joining : {{course.CreatedOn}}
|
||||
{{course.UniversityName}} Enrollment ID : {{course.EnrollmentID}} Date Of Joining : {{course.CreatedOn}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user