pend doc course change

This commit is contained in:
venbatechnologies@gmail.com 2018-10-10 12:28:01 +05:30
parent ee0154a0fc
commit e60ee40621
4 changed files with 35 additions and 35 deletions

View File

@ -42,7 +42,7 @@ class Student_model extends CI_Model {
// list for super admin based on branch // list for super admin based on branch
if ($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') { if ($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') {
$this->db->select('S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID'); $this->db->select('S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseCode,C.CourseID');
$this->db->from('' . STUDENTCOURSE . ' as SC'); $this->db->from('' . STUDENTCOURSE . ' as SC');
$this->db->join('' . STUDENTS . ' as S', 'S.StudentID = SC.StudentID', 'LEFT'); $this->db->join('' . STUDENTS . ' as S', 'S.StudentID = SC.StudentID', 'LEFT');
$this->db->join('' . UNIVERSITY . ' as U', 'SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode', 'LEFT'); $this->db->join('' . UNIVERSITY . ' as U', 'SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode', 'LEFT');
@ -67,7 +67,7 @@ class Student_model extends CI_Model {
$StuStatus = $getSearchData['Status']; $StuStatus = $getSearchData['Status'];
if ($StuStatus == '') { if ($StuStatus == '') {
if ($University != '' && $Course == '' && $batchcode=='') { if ($University != '' && $Course == '' && $batchcode=='') {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseCode,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -83,7 +83,7 @@ class Student_model extends CI_Model {
ORDER BY S.CreatedOn"; ORDER BY S.CreatedOn";
// GROUP BY SC.StudentID // GROUP BY SC.StudentID
} else if ($University != '' && $Course != '' && $batchcode=='') { } else if ($University != '' && $Course != '' && $batchcode=='') {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseCode,C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -107,7 +107,7 @@ class Student_model extends CI_Model {
else if($University !='' && $Course == '' && $batchcode!='') else if($University !='' && $Course == '' && $batchcode!='')
{ {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseCode,C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -129,7 +129,7 @@ class Student_model extends CI_Model {
else if($University !=''&&$Course != '' && $batchcode !='') else if($University !=''&&$Course != '' && $batchcode !='')
{ {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName,C.CourseCode, C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -155,7 +155,7 @@ class Student_model extends CI_Model {
else else
{ {
if ($University != '' && $Course == '' && $batchcode=='' ) { if ($University != '' && $Course == '' && $batchcode=='' ) {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName,C.CourseCode, C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID FROM " . STUDENTCOURSE . " as SC LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID LEFT JOIN " . COURSE . " as C ON LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID LEFT JOIN " . COURSE . " as C ON
SC.CourseID = C.CourseID SC.CourseID = C.CourseID
@ -170,7 +170,7 @@ class Student_model extends CI_Model {
group by Student_Course_id,StudentID group by Student_Course_id,StudentID
ORDER BY S.CreatedOn"; ORDER BY S.CreatedOn";
} else if ($University != '' && $Course != '' && $batchcode=='') { } else if ($University != '' && $Course != '' && $batchcode=='') {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseCode,C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -190,7 +190,7 @@ class Student_model extends CI_Model {
if ($University != '' && $Course == ''&& $batchcode=='' ) { if ($University != '' && $Course == ''&& $batchcode=='' ) {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseCode,C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID FROM " . STUDENTCOURSE . " as SC LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID LEFT JOIN " . COURSE . " as C ON LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID LEFT JOIN " . COURSE . " as C ON
SC.CourseID = C.CourseID SC.CourseID = C.CourseID
@ -206,7 +206,7 @@ class Student_model extends CI_Model {
group by Student_Course_id,StudentID group by Student_Course_id,StudentID
ORDER BY S.CreatedOn"; ORDER BY S.CreatedOn";
} else if ($University != '' && $Course != '' && $batchcode=='') { } else if ($University != '' && $Course != '' && $batchcode=='') {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseCode,C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -227,7 +227,7 @@ class Student_model extends CI_Model {
else if($University != '' && $Course == '' && $batchcode !='' ) else if($University != '' && $Course == '' && $batchcode !='' )
{ {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseCode,C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID FROM " . STUDENTCOURSE . " as SC LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID LEFT JOIN " . COURSE . " as C ON LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID LEFT JOIN " . COURSE . " as C ON
SC.CourseID = C.CourseID SC.CourseID = C.CourseID
@ -254,7 +254,7 @@ class Student_model extends CI_Model {
{ {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName,C.CourseCode, C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -281,7 +281,7 @@ class Student_model extends CI_Model {
else{ else{
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName,C.CourseCode, C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -319,7 +319,7 @@ class Student_model extends CI_Model {
} else if ($loginUserType == ADMIN) { } else if ($loginUserType == ADMIN) {
// list for admin // list for admin
if ($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') { if ($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') {
$this->db->select('S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID'); $this->db->select('S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseCode,C.CourseName,C.CourseID');
$this->db->from('' . STUDENTCOURSE . ' as SC'); $this->db->from('' . STUDENTCOURSE . ' as SC');
$this->db->join('' . STUDENTS . ' as S', 'S.StudentID = SC.StudentID', 'LEFT'); $this->db->join('' . STUDENTS . ' as S', 'S.StudentID = SC.StudentID', 'LEFT');
$this->db->join('' . UNIVERSITY . ' as U', 'SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode', 'LEFT'); $this->db->join('' . UNIVERSITY . ' as U', 'SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode', 'LEFT');
@ -342,7 +342,7 @@ class Student_model extends CI_Model {
$StuStatus = $getSearchData['Status']; $StuStatus = $getSearchData['Status'];
if ($StuStatus == '') { if ($StuStatus == '') {
if ($University != '' && $Course == '' && $batchcode=='') { if ($University != '' && $Course == '' && $batchcode=='') {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName,C.CourseCode, C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -355,7 +355,7 @@ class Student_model extends CI_Model {
ORDER BY S.CreatedOn"; ORDER BY S.CreatedOn";
} else if ($University != '' && $Course != '' && $batchcode=='') { } else if ($University != '' && $Course != '' && $batchcode=='') {
$subQuery = "SELECT S.* , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.* , SC.id as Student_Course_id , U.UniversityName,C.CourseCode, C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -371,7 +371,7 @@ class Student_model extends CI_Model {
else if($University !='' && $Course == '' && $batchcode!='') else if($University !='' && $Course == '' && $batchcode!='')
{ {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseCode,C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -394,7 +394,7 @@ class Student_model extends CI_Model {
else if($University !=''&&$Course != '' && $batchcode !='') else if($University !=''&&$Course != '' && $batchcode !='')
{ {
$subQuery = "SELECT S.* , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.* , SC.id as Student_Course_id , U.UniversityName,C.CourseCode, C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -417,7 +417,7 @@ class Student_model extends CI_Model {
else else
{ {
if ($University != '' && $Course == '' && $batchcode =='') { if ($University != '' && $Course == '' && $batchcode =='') {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName,C.CourseCode, C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -432,7 +432,7 @@ class Student_model extends CI_Model {
} }
else if ($University != '' && $Course != '' && $batchcode =='') else if ($University != '' && $Course != '' && $batchcode =='')
{ {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName,C.CourseCode, C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -451,7 +451,7 @@ class Student_model extends CI_Model {
else if($University != '' && $Course == '' && $batchcode !='') else if($University != '' && $Course == '' && $batchcode !='')
{ {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseCode,C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -477,7 +477,7 @@ class Student_model extends CI_Model {
{ {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName,C.CourseCode, C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -502,7 +502,7 @@ class Student_model extends CI_Model {
else else
{ {
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName,C.CourseCode, C.CourseName,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -531,7 +531,7 @@ class Student_model extends CI_Model {
} else if ($loginUserType == EMPLOYEE || $loginUserType == TRAINEE) { } else if ($loginUserType == EMPLOYEE || $loginUserType == TRAINEE) {
// list for staff // list for staff
if ($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') { if ($getSearchData["University"] === '' && $getSearchData["Course"] === '' && $getSearchData["Status"] === '') {
$this->db->select("S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID"); $this->db->select("S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseCode,C.CourseID");
$this->db->from('' . STUDENTCOURSE . ' as SC'); $this->db->from('' . STUDENTCOURSE . ' as SC');
$this->db->join('' . STUDENTS . ' as S', 'S.StudentID = SC.StudentID', 'LEFT'); $this->db->join('' . STUDENTS . ' as S', 'S.StudentID = SC.StudentID', 'LEFT');
$this->db->join('' . UNIVERSITY . ' as U', 'SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode', 'LEFT'); $this->db->join('' . UNIVERSITY . ' as U', 'SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode', 'LEFT');
@ -555,7 +555,7 @@ class Student_model extends CI_Model {
$StuStatus = $getSearchData['Status']; $StuStatus = $getSearchData['Status'];
if ($StuStatus == '') { if ($StuStatus == '') {
if ($University != '' && $Course == '' && $batchcode=='') { if ($University != '' && $Course == '' && $batchcode=='') {
$subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseCode,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -569,7 +569,7 @@ class Student_model extends CI_Model {
GROUP BY SC.id GROUP BY SC.id
ORDER BY S.CreatedOn"; ORDER BY S.CreatedOn";
} else if ($University != '' && $Course != '' && $batchcode=='') { } else if ($University != '' && $Course != '' && $batchcode=='') {
$subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseCode,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -588,7 +588,7 @@ class Student_model extends CI_Model {
else if ($University != '' && $Course == '' && $batchcode !='') else if ($University != '' && $Course == '' && $batchcode !='')
{ {
$subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseCode,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -612,7 +612,7 @@ class Student_model extends CI_Model {
else if ($University != '' && $Course != '' && $batchcode !='') { else if ($University != '' && $Course != '' && $batchcode !='') {
$subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseCode,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -651,7 +651,7 @@ class Student_model extends CI_Model {
// OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University')) // OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University'))
} else { } else {
if ($University != '' && $Course == '' && $batchcode=='') { if ($University != '' && $Course == '' && $batchcode=='') {
$subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseCode,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -667,7 +667,7 @@ class Student_model extends CI_Model {
GROUP BY SC.id GROUP BY SC.id
ORDER BY S.CreatedOn"; ORDER BY S.CreatedOn";
} else if ($University != '' && $Course != '' && $batchcode=='') { } else if ($University != '' && $Course != '' && $batchcode=='') {
$subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseCode,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -687,7 +687,7 @@ class Student_model extends CI_Model {
else if ($University != '' && $Course == '' && $batchcode !='') { else if ($University != '' && $Course == '' && $batchcode !='') {
$subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseCode,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -713,7 +713,7 @@ class Student_model extends CI_Model {
else if ($University != '' && $Course != '' && $batchcode!='') { else if ($University != '' && $Course != '' && $batchcode!='') {
$subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseCode,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode
@ -752,7 +752,7 @@ class Student_model extends CI_Model {
else { else {
$subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseID $subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName,C.CourseCode,C.CourseID
FROM " . STUDENTCOURSE . " as SC FROM " . STUDENTCOURSE . " as SC
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode LEFT JOIN " . UNIVERSITY . " as U ON SC.UniversityID = U.UniversityID AND SC.BranchID = U.BranchCode

View File

@ -608,7 +608,7 @@
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="course" ng-model="myModelAddPendingDocDetails.course"> <select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="course" ng-model="myModelAddPendingDocDetails.course">
<option value="" selected>Select Course</option> <option value="" selected>Select Course</option>
<option ng-repeat="item in allcourselist" value="{{item.CourseID}}">{{item.CourseName}}-{{item.CourseCode}} ({{item.UniversityName}}) </option> <option value="{{item.CourseID}}">{{p.CourseName}}-{{p.CourseCode}} ({{p.UniversityName}}) </option>
</select> </select>
</div> </div>

View File

@ -132,7 +132,7 @@
<div class="col-md-3"> <div class="col-md-3">
<label for="form-field-select-2">Batch</label> <label for="form-field-select-2">Batch</label>
<select ui-select2 class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Batch" ng-change="getValueChange(searchData)"> <select ui-select2 class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Batch" ng-disabled="coursedropdownstatus" ng-change="getValueChange(searchData)">
<option value="" selected>Select Batch</option> <option value="" selected>Select Batch</option>
<option ng-repeat="item in batchData" value="{{item.BatchCode}}">{{item.BatchName}}<span ng-show="item.BatchCode != ''">(<strong>{{item.BatchCode}}</strong>)</span></option> <option ng-repeat="item in batchData" value="{{item.BatchCode}}">{{item.BatchName}}<span ng-show="item.BatchCode != ''">(<strong>{{item.BatchCode}}</strong>)</span></option>
</select> </select>

View File

@ -170,7 +170,7 @@
<div class="col-md-3"> <div class="col-md-3">
<label for="form-field-select-2">Batch</label> <label for="form-field-select-2">Batch</label>
<select ui-select2 class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Batch" ng-change="getValueChange(searchData)"> <select ui-select2 class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Batch" ng-disabled="coursedropdownstatus" ng-change="getValueChange(searchData)">
<option value="" selected>Select Batch</option> <option value="" selected>Select Batch</option>
<option ng-repeat="item in batchData" value="{{item.BatchCode}}">{{item.BatchName}}<span ng-show="item.BatchCode != ''">(<strong>{{item.BatchCode}}</strong>)</span></option> <option ng-repeat="item in batchData" value="{{item.BatchCode}}">{{item.BatchName}}<span ng-show="item.BatchCode != ''">(<strong>{{item.BatchCode}}</strong>)</span></option>
</select> </select>