batch filter
This commit is contained in:
parent
c8fb8b1ce7
commit
31f59c875c
@ -362,57 +362,191 @@ class Student_model extends CI_Model {
|
||||
$Batch = '';
|
||||
$StuStatus = $getSearchData['Status'];
|
||||
if ($StuStatus == '') {
|
||||
if ($University != '' && $Course == '') {
|
||||
if ($University != '' && $Course == '' && $batchcode=='') {
|
||||
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
WHERE
|
||||
SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
|
||||
ORDER BY S.CreatedOn";
|
||||
} else if ($University != '' && $Course != '') {
|
||||
} else if ($University != '' && $Course != '' && $batchcode=='') {
|
||||
$subQuery = "SELECT S.* , SC.id as Student_Course_id , U.UniversityName, C.CourseName
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
WHERE
|
||||
SC.CourseID = '$Course' AND SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
ORDER BY S.CreatedOn";
|
||||
}
|
||||
} else {
|
||||
if ($University != '' && $Course == '') {
|
||||
|
||||
|
||||
else if($University !='' && $Course == '' && $batchcode!='')
|
||||
{
|
||||
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
WHERE
|
||||
SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
AND sfs.BatchCode = '$batchcode'
|
||||
group by Student_Course_id,StudentID
|
||||
ORDER BY S.CreatedOn";
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
else if($University !=''&&$Course != '' && $batchcode !='')
|
||||
{
|
||||
|
||||
$subQuery = "SELECT S.* , SC.id as Student_Course_id , U.UniversityName, C.CourseName
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
WHERE
|
||||
SC.CourseID = '$Course' AND SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
AND sfs.BatchCode = '$batchcode'
|
||||
group by Student_Course_id,StudentID
|
||||
ORDER BY S.CreatedOn";
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($University != '' && $Course == '' && $batchcode =='') {
|
||||
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
|
||||
WHERE
|
||||
SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
AND S.IsActive = '$StuStatus'
|
||||
ORDER BY S.CreatedOn";
|
||||
} else if ($University != '' && $Course != '') {
|
||||
}
|
||||
else if ($University != '' && $Course != '' && $batchcode =='')
|
||||
{
|
||||
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
|
||||
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
|
||||
WHERE
|
||||
SC.CourseID = '$Course' AND SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
AND S.IsActive = '$StuStatus'
|
||||
ORDER BY S.CreatedOn";
|
||||
} else {
|
||||
}
|
||||
|
||||
|
||||
|
||||
else if($University != '' && $Course == '' && $batchcode !='')
|
||||
{
|
||||
|
||||
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
|
||||
WHERE
|
||||
SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
AND S.IsActive = '$StuStatus'
|
||||
|
||||
AND sfs.BatchCode = '$batchcode'
|
||||
|
||||
group by Student_Course_id,StudentID
|
||||
ORDER BY S.CreatedOn";
|
||||
}
|
||||
|
||||
else if($University != '' && $Course != '' && $batchcode !='')
|
||||
{
|
||||
|
||||
|
||||
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
|
||||
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
|
||||
WHERE
|
||||
SC.CourseID = '$Course' AND SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
AND S.IsActive = '$StuStatus'
|
||||
|
||||
AND sfs.BatchCode = '$batchcode'
|
||||
|
||||
group by Student_Course_id,StudentID
|
||||
ORDER BY S.CreatedOn";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$subQuery = "SELECT S.*, SC.id as Student_Course_id , U.UniversityName, C.CourseName
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
|
||||
WHERE
|
||||
SC.BranchID = '$loginUserBranchId'
|
||||
AND S.IsActive = '$StuStatus'
|
||||
@ -454,62 +588,218 @@ class Student_model extends CI_Model {
|
||||
$Batch = '';
|
||||
$StuStatus = $getSearchData['Status'];
|
||||
if ($StuStatus == '') {
|
||||
if ($University != '' && $Course == '') {
|
||||
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
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
LEFT JOIN " . STUDENTS_FEES_PAID . " as SFP ON SFP.StudentID = S.StudentID
|
||||
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
WHERE
|
||||
SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
GROUP BY SC.id
|
||||
ORDER BY S.CreatedOn";
|
||||
} else if ($University != '' && $Course != '') {
|
||||
} 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
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
LEFT JOIN " . STUDENTS_FEES_PAID . " as SFP ON SFP.StudentID = S.StudentID
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
|
||||
WHERE
|
||||
SC.CourseID = '$Course' AND SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
GROUP BY SC.id
|
||||
ORDER BY S.CreatedOn";
|
||||
} // ### query branch code changed from student branch code to student course branch code
|
||||
}
|
||||
|
||||
|
||||
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
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
LEFT JOIN " . STUDENTS_FEES_PAID . " as SFP ON SFP.StudentID = S.StudentID
|
||||
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
WHERE
|
||||
SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
AND sfs.BatchCode = '$batchcode'
|
||||
|
||||
group by Student_Course_id,StudentID,SC.id
|
||||
|
||||
ORDER BY S.CreatedOn";
|
||||
}
|
||||
|
||||
|
||||
|
||||
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
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
LEFT JOIN " . STUDENTS_FEES_PAID . " as SFP ON SFP.StudentID = S.StudentID
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
|
||||
WHERE
|
||||
SC.CourseID = '$Course' AND SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
AND sfs.BatchCode = '$batchcode'
|
||||
|
||||
group by Student_Course_id,StudentID,SC.id
|
||||
|
||||
ORDER BY S.CreatedOn";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// ### query branch code changed from student branch code to student course branch code
|
||||
// AND S.BranchCode = '$loginUserBranchId' -> SC.BranchCode = '$loginUserBranchId'
|
||||
// (SC.UniversityID = '$University'
|
||||
// OR (SC.CourseID = '$Course' AND SC.UniversityID = '$University'))
|
||||
} else {
|
||||
if ($University != '' && $Course == '') {
|
||||
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
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
LEFT JOIN " . STUDENTS_FEES_PAID . " as SFP ON SFP.StudentID = S.StudentID
|
||||
|
||||
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
|
||||
|
||||
WHERE
|
||||
SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
AND S.IsActive = '$StuStatus'
|
||||
GROUP BY SC.id
|
||||
ORDER BY S.CreatedOn";
|
||||
} else if ($University != '' && $Course != '') {
|
||||
} 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
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
LEFT JOIN " . STUDENTS_FEES_PAID . " as SFP ON SFP.StudentID = S.StudentID
|
||||
|
||||
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
WHERE
|
||||
SC.CourseID = '$Course' AND SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
AND S.IsActive = '$StuStatus'
|
||||
GROUP BY SC.id
|
||||
ORDER BY S.CreatedOn";
|
||||
} else {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
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
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
LEFT JOIN " . STUDENTS_FEES_PAID . " as SFP ON SFP.StudentID = S.StudentID
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
|
||||
|
||||
WHERE
|
||||
SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
AND S.IsActive = '$StuStatus'
|
||||
AND sfs.BatchCode = '$batchcode'
|
||||
|
||||
group by Student_Course_id,StudentID,SC.id
|
||||
|
||||
ORDER BY S.CreatedOn";
|
||||
}
|
||||
|
||||
|
||||
|
||||
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
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
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 " . COURSE . " as C ON SC.CourseID = C.CourseID AND SC.BranchID = C.BranchCode
|
||||
LEFT JOIN " . STUDENTS_FEES_PAID . " as SFP ON SFP.StudentID = S.StudentID
|
||||
|
||||
LEFT JOIN ".STUDENTS_FEES_STATUS." as sfs on sfs.CourseID=SC.CourseID AND sfs.StudentID=SC.StudentID
|
||||
and C.CourseID=sfs.CourseID
|
||||
|
||||
WHERE
|
||||
SC.CourseID = '$Course' AND SC.UniversityID = '$University'
|
||||
AND SC.BranchID = '$loginUserBranchId'
|
||||
AND S.IsActive = '$StuStatus'
|
||||
|
||||
AND sfs.BatchCode = '$batchcode'
|
||||
|
||||
group by Student_Course_id,StudentID,SC.id
|
||||
|
||||
ORDER BY S.CreatedOn";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
else {
|
||||
$subQuery = "SELECT S.*, IF(SFP.ID > 0, '1' , '0') as Fee_paid_exist , SC.id as Student_Course_id , U.UniversityName, C.CourseName
|
||||
FROM " . STUDENTCOURSE . " as SC
|
||||
LEFT JOIN " . STUDENTS . " as S ON SC.StudentID = S.StudentID
|
||||
|
||||
@ -186,6 +186,9 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
|
||||
$scope.studentListLength = 0;
|
||||
$scope.getStudentList = function () {
|
||||
$scope.loader = true;
|
||||
|
||||
|
||||
console.log($scope.searchData);
|
||||
var empListreq = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'getStudentList/',
|
||||
|
||||
@ -122,6 +122,28 @@
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3">
|
||||
<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)">
|
||||
<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>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div ng-if="loader == true" class="col-md-12" align="center">
|
||||
<!--<spinner name="html5spinner">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user