coursecode added in send sms
This commit is contained in:
parent
ffc7ec858d
commit
88aa19747b
@ -101,7 +101,7 @@ class Broadcast_model extends CI_Model {
|
||||
$resultArr['UniversityID'] = $clip->UniversityID;
|
||||
$resultArr['UniversityName'] = $clip->UniversityName;
|
||||
// Course Details
|
||||
$this->db->select('t2.CourseID, t2.CourseName');
|
||||
$this->db->select('t2.CourseID, t2.CourseName,t2.CourseCode');
|
||||
$this->db->from('' . COURSE . ' as t2');
|
||||
$this->db->where('t2.UniversityID', $clip->UniversityID);
|
||||
$this->db->where('t2.IsActive', 1);
|
||||
|
||||
@ -121,6 +121,8 @@ app.controller('sendSMSsuperadminCtrl', ["$scope","$rootScope", "$filter", "ngTa
|
||||
$http(empListreq).then(function (response) {
|
||||
if (response.data.univList) {
|
||||
$scope.universityData = response.data.university_details;
|
||||
|
||||
|
||||
} else {
|
||||
}
|
||||
});
|
||||
@ -128,11 +130,14 @@ app.controller('sendSMSsuperadminCtrl', ["$scope","$rootScope", "$filter", "ngTa
|
||||
|
||||
$scope.getUniveId = function (univ) {
|
||||
let name = JSON.parse(univ);
|
||||
// console.log(name)
|
||||
$scope.searchData.University = name.UniversityID;
|
||||
$scope.searchData.Course = '';
|
||||
$scope.searchData.Batch = '';
|
||||
$scope.courseData = name.Course;
|
||||
$scope.batchData = name.Batch;
|
||||
|
||||
|
||||
//call service for array list in desc order based on date
|
||||
angular.forEach($scope.batchData,function (values,key) {
|
||||
var parts = values.BatchDate.split("-");
|
||||
|
||||
@ -56,7 +56,7 @@
|
||||
|
||||
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
|
||||
<option value="" selected>Select Course</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseCode}}-{{itemCourse.CourseName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user