PageSourceSearch

https://samarthinstitute.edu.in/web-assets/angular/angularjs/controllers/cms-birthday.js?version=1772287900

js samarthinstitute.edu.in collected 2026-10-09 23:59:14 UTC 3,983 bytes, 110 lines download raw bytes

1var csrfloginHash = $("#csrfloginHash").val();
2
3var app = angular.module('myApp', []);
4app.controller("birthdayServicesCtrl", function ($scope, $http, toastr, $location) {
5
6	$scope.birthdayListInit = function () {
7
8		$scope.parameters = $location;
9		$scope.url = $scope.parameters.absUrl();
10		$scope.facultyUrl = $scope.url.split("/");
11		$scope.facultyDepartmentId = $scope.facultyUrl[$scope.facultyUrl.length - 2];
12
13		$scope.base_url = base_url;
14		$scope.birthdayListArray = [];
15		$scope.nonTeachingbirthdayListArray = [];
16		$scope.TeachingbirthdayListArray = [];
17		$scope.dataArray = [];
18		$scope.facultyDeptListArray = [];
19		$scope.getDepartments();
20		$scope.getBirthday();
21	};
22
23
24
25	// Get all Faculty List Service
26	$scope.getBirthday = function () {
27		var transform = function (data) {
28			return $.param(data);
29		};
30		$http
31			.post(
32				window.site_url + "FrontEndAPI/getBirthdayList",
33				{
34					inputSearchValue: $scope.inputSearchValue,
35				},
36				{
37					headers: {
38						"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
39					},
40					transformRequest: transform,
41				}
42			)
43			.then(function (response) {
44				if (response.data.status.status == "200") {
45					$scope.birthdayListArray = response.data.data;
46
47				} else {
48					toastr.error(response.data.status.message);
49				}
50			});
51	};
52
53	
54
55    // $scope.getAllQuickLinksListService = function () {
56    //     var transform = function (data) {
57    //         return $.param(data);
58    //     };
59
60    //     console.log('Fetching results for year:', $scope.eventyear); // Debugging log
61
62    //     $http.post(window.site_url + "AdminQuickLinks/getQuickLinkList", {
63    //         inputSearchValue: $scope.inputSearchValue,
64    //         eventyear: $scope.eventyear
65    //     }, {
66    //         headers: { "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8" },
67    //         transformRequest: transform
68    //     }).then(function (response) {
69    //         try {
70    //             var responseData = response.data;
71    //             console.log('Raw Response:', responseData);
72
73    //             if (responseData && responseData.status && responseData.status.status === "201") {
74    //                 let tempFileManagerArray = [];
75
76    //                 if (Array.isArray(responseData.data)) {
77    //                     responseData.data.forEach(function (getFileManagerObject) {
78    //                         tempFileManagerArray.push(getFileManagerObject);
79    //                     });
80    //                     $scope.resultsListArray = tempFileManagerArray;
81    //                     $scope.isLoading = false;
82    //                     console.log("Filtered resultListArray:", $scope.resultsListArray);
83    //                 } else {
84    //                     console.error("Unexpected data format:", responseData.data);
85    //                     toastr.error('Unexpected data format.');
86    //                     $scope.isLoading = false
87    //                 }
88    //             } else {
89    //                 var errorMessage = responseData.status && responseData.status.message ? responseData.status.message : 'Unknown error';
90    //                 toastr.error(errorMessage);
91    //                 $scope.isLoading = false
92    //             }
93    //         } catch (error) {
94    //             console.error("Failed to parse response:", error);
95    //             toastr.error('An error occurred while processing the results.');
96    //             $scope.isLoading = false
97    //         }
98    //     }).catch(function (error) {
99    //         console.error("HTTP Request Error:", error);
100    //         toastr.error('An error occurred while fetching the results.');
101    //         $scope.isLoading = false
102    //     });
103    // };
104
105    $scope.filterResultsByYear = function () {
106        console.log('Filtering by Year:', $scope.eventyear); // Debugging log
107        $scope.getAllQuickLinksListService(); // Fetch data based on the selected year
108    };
109
110});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.