student changes in staff
This commit is contained in:
parent
d84a7c874e
commit
9993e7cb25
@ -72,8 +72,9 @@ class Student_model extends CI_Model
|
||||
} else {
|
||||
$results['studentList'] = false;
|
||||
}
|
||||
} else if ($loginUserType == STAFF) {
|
||||
} else if ($loginUserType == EMPLOYEE) {
|
||||
// list for staff
|
||||
|
||||
$this->db->select('*');
|
||||
$this->db->from(STUDENTS);
|
||||
$this->db->order_by('CreatedOn', 'DESC');
|
||||
@ -87,6 +88,7 @@ class Student_model extends CI_Model
|
||||
$results['studentList'] = false;
|
||||
}
|
||||
} else {
|
||||
|
||||
$results['studentList'] = false;
|
||||
}
|
||||
return $results;
|
||||
|
||||
@ -268,12 +268,12 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
|
||||
angular.element('.ng-invalid[name=' + firstError + ']').focus();
|
||||
// swal("The form cannot be submitted because it contains validation errors!", "Errors are marked with a red, dashed border!", "error");
|
||||
} else {
|
||||
alert(datas.DOJ);
|
||||
// alert(datas.DOJ);
|
||||
var formate = "dd-MM-yyyy";
|
||||
var checkDOJ = $filter('date')(new Date(datas.DOJ), formate);
|
||||
datas.IsActive = datas.IsActive === true ? 1 : 0;
|
||||
datas.DOJ = checkDOJ == "NaN-NaN-0NaN" ? datas.DOJ : $filter('date')(new Date(datas.DOJ), formate);
|
||||
alert(datas.DOJ);
|
||||
// alert(datas.DOJ);
|
||||
var req = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'updateStudentCourseDetail/',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user