diff --git a/Apollo/assets/js/controllers/studentCtrl.js b/Apollo/assets/js/controllers/studentCtrl.js index 451dda64..0fa01391 100755 --- a/Apollo/assets/js/controllers/studentCtrl.js +++ b/Apollo/assets/js/controllers/studentCtrl.js @@ -785,6 +785,75 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams", // $scope.editCourseId = -1; } + + + + + $scope.cancelnotification = function() + { + $scope.msgdetID = '-1'; + } + + $scope.MailDetails=''; + $scope.MessageDetails = ''; + $scope.StudentIDDet = ''; + $scope.msgdetID = -1; + $scope.setmessageId = function (student) + { + + //console.log(student);return false; + + var studentID= student.StudentID; + var phonenumber = student.MobileNumber; + var email = student.EmailID; + + + var sentnotification = { + method: 'POST', + url: apiPoint.url + 'Getnotificcations/', + headers: { + 'Content-Type': 'application/json' + }, + data: { + + StudentID: studentID, + Phone: phonenumber, + Email:email, + loginBranch: localDetails.localBranchID, + createdBy: localDetails.localUserID, + } + }; + $http(sentnotification).then(function (response) { + + if(response.data.status == 200) + { + $scope.MailDetails=response.data.maildetails; + $scope.MessageDetails = response.data.msgdetails; + $scope.StudentIDDet = response.data.StudentID; + $scope.msgdetID = $scope.StudentIDDet[0].StudentID; + + //console.log($scope.msgdetID); + + } + + }); + + + + + } + + + + + + + + + + + + $scope.addStudentCourse = function () { $scope.myModelCourse = { 'university': '', diff --git a/Apollo/assets/views/student/student_details.html b/Apollo/assets/views/student/student_details.html index c257f8df..81016668 100755 --- a/Apollo/assets/views/student/student_details.html +++ b/Apollo/assets/views/student/student_details.html @@ -245,6 +245,8 @@ + + @@ -253,6 +255,9 @@ + + +