PageSourceSearch

https://www.du.ac.bd/fontView/assets/modules/du_home.js?v=1

js du.ac.bd collected 2026-09-24 09:24:06 UTC 45,093 bytes, 1,430 lines download raw bytes

1$(function () {
2    $(".datepicker").datepicker({
3        changeMonth: true,
4        dateFormat: "dd-mm-yy",
5    });
6
7    $(".findYourProgram").hide();
8    $(".showingProgramName").hide();
9    $("#looking_for").change(function () {
10        let lookingType = $(this).val();
11        if (lookingType != null) {
12            $(".findYourProgram").show();
13        } else {
14            $(".findYourProgram").hide();
15        }
16    });
17    $("#deptName").change(function () {
18        let deptID = $(this).val();
19        if (deptID != null) {
20            $(".showingProgramName").show();
21        } else {
22            $(".showingProgramName").hide();
23        }
24    });
25    $("#institute_portion").hide();
26});
27function clickFindProgram() {
28    $(".findYourProgram").hide();
29    $(".showingProgramName").hide();
30}
31
32function serchingFindProgram() {
33    $.ajax({
34        type: "GET",
35        url: base_url + "/search_find_program",
36        data: $("#search_find_program_form").serialize(),
37        dataType: "json",
38        success: function (response) {
39            if (response.status == "success") {
40                $(".showProgramName").html("");
41                if (response.data.length === 0) {
42                    $(".showProgramName").html("No Program Exist.");
43                } else {
44                    $.each(response.data, function (index, Obj) {
45                        $(".showProgramName").append(
46                            '<a  href="show_program_details/' +
47                                Obj.id +
48                                '"><i class="fas fa-share prefix grey-text"></i> ' +
49                                Obj.program_name +
50                                '</a> <div class="clearfix"></div>'
51                        );
52                    });
53                }
54            } else {
55                $(".showProgramName").html(
56                    '<div style="color:red"> <i class="fas fa-share prefix grey-text"></i> No Program Exist.</div>'
57                );
58            }
59        },
60    });
61}
62
63function saveNewsLetter(email) {
64    $.ajax({
65        type: "GET",
66        url: base_url + "/save_news_letter",
67        data: { email: email },
68        dataType: "json",
69        success: function (response) {
70            if (response.status == "success") {
71                $("#newsLetterEmail").val("");
72                alert(response.message);
73            } else {
74                alert(response.message);
75            }
76        },
77    });
78}
79$("input[name$='searching_type_aca_program']").click(function () {
80    var search_type = $(this).val();
81    $("#show_result").html("");
82    if (search_type == "faculty") {
83        $("#faculty_portion_academic").show();
84        $("#institute_portion_academic").hide();
85        $("#department_aca").html(
86            '<option value="">Select Department</option>'
87        );
88    } else if (search_type == "institute") {
89        $("#faculty_portion_academic").hide();
90        $("#institute_portion_academic").show();
91        $.ajax({
92            type: "GET",
93            url: base_url + "/showBodyInfoType",
94            data: { parent_id: "INST" },
95            dataType: "json",
96            success: function (response) {
97                console.log(response);
98                var toAppend = "";
99                $("#institute_name_aca").html(
100                    '<option value="">Select Institute</option>'
101                );
102                if (response.status == "success") {
103                    var data = response.data;
104                    $.each(data, function (index, val) {
105                        toAppend +=
106                            "<option value='" +
107                            val.id +
108                            "'>" +
109                            val.name +
110                            "</option>";
111                    });
112                    $("#institute_name_aca").append(toAppend);
113                } else {
114                    $("#institute_name_aca").html(
115                        '<option value="">Select Institute</option>'
116                    );
117                }
118            },
119        });
120    }
121});
122
123function showDeptByFacultyID(val) {
124    $("#show_result").html("");
125    $.ajax({
126        type: "GET",
127        url: base_url + "/showBodyInfoType",
128        data: { parent_id: val },
129        dataType: "json",
130        success: function (response) {
131            var toAppend = "";
132            $(".department").html(
133                '<option value="">Select Department</option>'
134            );
135            if (response.status == "success") {
136                var data = response.data;
137                $.each(data, function (index, val) {
138                    toAppend +=
139                        "<option value='" +
140                        val.id +
141                        "'>" +
142                        val.name +
143                        "</option>";
144                });
145                $(".department").append(toAppend);
146            } else {
147                $(".department").html(
148                    '<option value="">Select Department</option>'
149                );
150            }
151        },
152    });
153}
154function showAcademicCalenderInfo() {
155    $("#show_result").html("");
156    $(".loader").show();
157    var data = $("#search_academic_calender_info_form").serialize();
158    $.ajax(base_url + "/showAacademicCalenderInfo?" + data, {
159        success: function (data, status, xhr) {
160            // success callback function
161            $(".loader").hide();
162            $("#show_result").html(data);
163        },
164    });
165}
166
167$("#facultyName").change(function () {
168    var facultyID = $(this).val();
169    $.ajax({
170        type: "POST",
171        url: base_url + "/showAllDeptByFaculty",
172        headers: {
173            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
174        },
175        data: { parent_id: facultyID },
176        success: function (data) {
177            $("#show_result").html(data);
178        },
179        error: function (data) {
180            console.log(data);
181        },
182    });
183    return false;
184});
185
186$("#depatmentName").keyup(function () {
187    var deptSearching = $(this).val();
188    $.ajax({
189        type: "POST",
190        url: base_url + "/showAllDeptByFaculty",
191        headers: {
192            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
193        },
194        data: { deptSearching: deptSearching },
195        success: function (data) {
196            $("#show_result").html(data);
197        },
198        error: function (data) {
199            console.log(data);
200        },
201    });
202    return false;
203});
204
205$("#searchBody").change(function () {
206    var facultyID = $(this).val();
207    $.ajax({
208        type: "POST",
209        url: base_url + "/showAllDeptByFaculty",
210        headers: {
211            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
212        },
213        data: { bodyid: facultyID },
214        success: function (data) {
215            $("#show_result").html(data);
216        },
217        error: function (data) {
218            console.log(data);
219        },
220    });
221    return false;
222});
223
224function searchCollegesInfo(val, type) {
225    $.ajax({
226        type: "POST",
227        url: base_url + "/showCollegesInfo",
228        headers: {
229            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
230        },
231        data: { searching_item: val, type: type },
232        success: function (data) {
233            $("#show_result_colleges").html(data);
234        },
235        error: function (data) {
236            console.log(data);
237        },
238    });
239    return false;
240}
241$("#accordion").on("show.bs.collapse", function () {
242    $("#accordion .in").collapse("hide");
243});
244
245function saveQuickContact() {
246    $.ajax({
247        type: "POST",
248        url: base_url + "/saveQickContactLetter",
249        headers: {
250            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
251        },
252        data: $("#quickContactForm").serialize(),
253
254        dataType: "json",
255        success: function (data) {
256            if (data.error.length > 0) {
257                var error_html = "";
258                for (var count = 0; count < data.error.length; count++) {
259                    error_html +=
260                        '<div class="alert alert-danger">' +
261                        data.error[count] +
262                        "</div>";
263                }
264                $("#message").html(error_html);
265            } else {
266                $("#quickContactForm")[0].reset();
267                var successMsg =
268                    '<div class="alert alert-success">' +
269                    data.success +
270                    "</div>";
271                $("#message").html(successMsg);
272                setTimeout(function () {
273                    $("#message").html("");
274                }, 1000);
275            }
276        },
277    });
278}
279function showAcademicProgramInfo() {
280    $("#show_result").html("");
281    $(".loader").show();
282    var data = $("#search_academic_program_info_form").serialize();
283    $.ajax(base_url + "/showAacademicProgramInfo?" + data, {
284        success: function (data, status, xhr) {
285            // success callback function
286            $(".loader").hide();
287            $("#show_result").html(data);
288        },
289    });
290}
291
292// Employee Directory
293function directorySearchAgain() {
294    $("#search_employee_directory_form")[0].reset();
295    $("#show_result").html("");
296    $("#office_portion").hide();
297    $("#faculty_portion").hide();
298    $("#institute_portion").hide();
299    $("#hall_portion").hide();
300    $("#employee_type_portion").hide();
301    $("#research_center_portion").hide();
302    $("#searching_portion").hide();
303}
304
305$(document).ready(function () {
306    $("#office_portion").hide();
307    $("#faculty_portion").hide();
308    $("#institute_portion").hide();
309    $("#hall_portion").hide();
310    $("#employee_type_portion").hide();
311    $("#research_center_portion").hide();
312    $("#searching_portion").hide();
313
314    $("#faculty_portion_academic").show();
315    $("#institute_portion_academic").hide();
316
317    $("input[name$='searching_type']").click(function () {
318        //$('#search_employee_directory_form')[0].reset();
319        var search_type = $(this).val();
320        $("#show_result").html("");
321        if (search_type == "office") {
322            $("#office_portion").show();
323            $("#employee_type_portion").show();
324            $("#faculty_portion").hide();
325            $("#institute_portion").hide();
326            $("#research_center_portion").hide();
327            $("#hall_portion").hide();
328
329            $("#searching_portion").show();
330
331            $.ajax({
332                type: "GET",
333                headers: {
334                    "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr(
335                        "content"
336                    ),
337                },
338                url: base_url + "/search_employee_search_type",
339                data: { searchType: search_type },
340                dataType: "json",
341                success: function (response) {
342                    var toAppend = "";
343                    $("#office_name").html(
344                        '<option value="">Select Office</option>'
345                    );
346                    if (response.status == "success") {
347                        var data = response.data;
348                        $.each(data, function (index, val) {
349                            toAppend +=
350                                "<option value='" +
351                                val.id +
352                                "'>" +
353                                val.title +
354                                "</option>";
355                        });
356                        $("#office_name").append(toAppend);
357                    } else {
358                        $("#office_name").html(
359                            '<option value="">Select Office</option>'
360                        );
361                    }
362                },
363            });
364        } else if (search_type == "faculty") {
365            $("#office_portion").hide();
366            $("#employee_type_portion").show();
367            $("#faculty_portion").show();
368            $("#institute_portion").hide();
369            $("#research_center_portion").hide();
370            $("#hall_portion").hide();
371            $("#searching_portion").show();
372            $("#department").html(
373                '<option value="">Select Department</option>'
374            );
375
376            $.ajax({
377                type: "GET",
378                headers: {
379                    "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr(
380                        "content"
381                    ),
382                },
383                url: base_url + "/search_employee_search_type",
384                data: { searchType: search_type },
385                dataType: "json",
386                success: function (response) {
387                    var toAppend = "";
388                    $("#faculty_name").html(
389                        '<option value="">Select Faculty</option>'
390                    );
391                    if (response.status == "success") {
392                        var data = response.data;
393                        $.each(data, function (index, val) {
394                            toAppend +=
395                                "<option value='" +
396                                val.id +
397                                "'>" +
398                                val.title +
399                                "</option>";
400                        });
401                        $("#faculty_name").append(toAppend);
402                    } else {
403                        $("#faculty_name").html(
404                            '<option value="">Select Faculty</option>'
405                        );
406                    }
407                },
408            });
409        } else if (search_type == "instituteInfo") {
410            $("#office_portion").hide();
411            $("#employee_type_portion").show();
412            $("#faculty_portion").hide();
413            $("#institute_portion").show();
414            $("#research_center_portion").hide();
415            $("#hall_portion").hide();
416            $("#searching_portion").show();
417            $.ajax({
418                type: "GET",
419                headers: {
420                    "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr(
421                        "content"
422                    ),
423                },
424                url: base_url + "/search_employee_search_type",
425                data: { searchType: search_type },
426                dataType: "json",
427                success: function (response) {
428                    var toAppend = "";
429                    $("#institute_name").html(
430                        '<option value="">
430Select Institute</option>'
431                    );
432                    if (response.status == "success") {
433                        var data = response.data;
434                        $.each(data, function (index, val) {
435                            toAppend +=
436                                "<option value='" +
437                                val.id +
438                                "'>" +
439                                val.title +
440                                "</option>";
441                        });
442                        $("#institute_name").append(toAppend);
443                    } else {
444                        $("#institute_name").html(
445                            '<option value="">Select Institute</option>'
446                        );
447                    }
448                },
449            });
450        } else if (search_type == "research_center") {
451            $("#office_portion").hide();
452            $("#employee_type_portion").show();
453            $("#faculty_portion").hide();
454            $("#institute_portion").hide();
455            $("#research_center_portion").show();
456            $("#hall_portion").hide();
457
458            $("#searching_portion").show();
459
460            $.ajax({
461                type: "GET",
462                headers: {
463                    "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr(
464                        "content"
465                    ),
466                },
467                url: base_url + "/search_employee_search_type",
468                data: { searchType: search_type },
469                dataType: "json",
470                success: function (response) {
471                    var toAppend = "";
472                    $("#research_center_name").html(
473                        '<option value="">Select Research Centre</option>'
474                    );
475                    if (response.status == "success") {
476                        var data = response.data;
477                        $.each(data, function (index, val) {
478                            toAppend +=
479                                "<option value='" +
480                                val.id +
481                                "'>" +
482                                val.title +
483                                "</option>";
484                        });
485                        $("#research_center_name").append(toAppend);
486                    } else {
487                        $("#research_center_name").html(
488                            '<option value="">Select Research Centre</option>'
489                        );
490                    }
491                },
492            });
493        } else if (search_type == "halls") {
494            $("#office_portion").hide();
495            $("#employee_type_portion").show();
496            $("#faculty_portion").hide();
497            $("#institute_portion").hide();
498            $("#research_center_portion").hide();
499            $("#hall_portion").show();
500
501            $("#searching_portion").show();
502
503            $.ajax({
504                type: "GET",
505                headers: {
506                    "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr(
507                        "content"
508                    ),
509                },
510                url: base_url + "/search_employee_search_type",
511                data: { searchType: search_type },
512                dataType: "json",
513                success: function (response) {
514                    var toAppend = "";
515                    $("#hall_name").html(
516                        '<option value="">Select Hall</option>'
517                    );
518                    if (response.status == "success") {
519                        var data = response.data;
520                        $.each(data, function (index, val) {
521                            toAppend +=
522                                "<option value='" +
523                                val.id +
524                                "'>" +
525                                val.title +
526                                "</option>";
527                        });
528                        $("#hall_name").append(toAppend);
529                    } else {
530                        $("#hall_name").html(
531                            '<option value="">Select Hall</option>'
532                        );
533                    }
534                },
535            });
536        }
537    });
538});
539$("#faculty_name").change(function () {
540    var facultyName = $(this).val();
541    $.ajax({
542        type: "GET",
543        headers: {
544            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
545        },
546        url: base_url + "/search_employee_search_type",
547        data: { searchType: "deptInfo", faculty_id: facultyName },
548        dataType: "json",
549        success: function (response) {
550            var deptAppend = "";
551            $("#department").html(
552                '<option value="">Select Department <option value="ডিন অফিস">Dean Office </option></option>'
553            );
554            if (response.status == "success") {
555                var data = response.data;
556                $.each(data, function (index, val) {
557                    deptAppend +=
558                        "<option value='" +
559                        val.id +
560                        "'>" +
561                        val.title +
562                        "</option>";
563                });
564                $("#department").append(deptAppend);
565            } else {
566                $("#department").html(
567                    '<option value="">Select Department</option>'
568                );
569            }
570        },
571    });
572});
573
574function searching_employee_info() {
575    $(".loader").show();
576    $.ajax({
577        type: "GET",
578        headers: {
579            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
580        },
581        url: base_url + "/search_employee_directory_info",
582        data: $("#search_employee_directory_form").serialize(),
583        success: function (response) {
584            $(".loader").hide();
585            $("#show_result").html(response);
586        },
587    });
588}
589// Show all Publiction
590function showEmployeePublication(employee_id, deptID) {
591    $(".publication-ul-li").css("background", "white");
592    $("#activeEmployeeSelected_" + employee_id).css({
593        "background-color": "lightgray",
594        "border-radius": "5px",
595    });
596    var publicationCtgArr = [];
597    $("input.publicationCtg:checkbox:checked").each(function () {
598        publicationCtgArr.push($(this).val());
599    });
600    $(".loader").show();
601    $("#EmployeeInfoID").val(employee_id);
602    $.ajax({
603        type: "POST",
604        headers: {
605            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
606        },
607        url: base_url + "/showEmployeePublication",
608        data: {
609            employee_id: employee_id,
610            deptID: deptID,
611            publicationCtg: publicationCtgArr,
612        },
613        success: function (response) {
614            $(".loader").hide();
615            $("#show_result").html(response);
616        },
617    });
618}
619
620$("#searchingEmployeeInfo").keyup(function () {
621    var searchName = $(this).val();
622    var url = $(location).attr("href");
623    var segments = url.split("/");
624    var deptID = segments[segments.length - 1];
625    $.ajax({
626        type: "POST",
627        url: base_url + "/showEmployeeInfo",
628        headers: {
629            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
630        },
631        data: { searchInfo: searchName, deptID: deptID },
632        success: function (data) {
633            $("#showEmployeeInfo").html(data);
634        },
635        error: function (data) {
636            console.log(data);
637        },
638    });
639    return false;
640});
641$("#searchingDeptInfo").keyup(function () {
642    $.ajax({
643        type: "POST",
644        url: base_url + "/showDepartmentInfo",
645        headers: {
646            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
647        },
648        data: $("#research_publication_form").serialize(),
649        success: function (data) {
650            $("#showDeptInfo").html(data);
651        },
652        error: function (data) {
653            console.log(data);
654        },
655    });
656    return false;
657});
658
659$("#searchingFacultyName").change(function () {
660    $.ajax({
661        type: "POST",
662        url: base_url + "/showDepartmentInfoByFaculty",
663        headers: {
664            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
665        },
666        data: $("#research_publication_form").serialize(),
667        success: function (data) {
668            $("#showDeptInfo").html(data);
669        },
670        error: function (data) {
671            console.log(data);
672        },
673    });
674    return false;
675});
676
677$(".publicationCtg").click(function () {
678    // var element_id = elementId($(this).attr('id'));
679    var empID = $("#EmployeeInfoID").val();
680    var publicationCtgArr = [];
681    $("input.publicationCtg:checkbox:checked").each(function () {
682        publicationCtgArr.push($(this).val());
683    });
684    var url = $(location).attr("href");
685    var segments = url.split("/");
686    var deptID = segments[segments.length - 1];
687    $(".loader").show();
688    $.ajax({
689        type: "POST",
690        headers: {
691            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
692        },
693        url: base_url + "/showEmployeePublication",
694        data: {
695            publicationCtg: publicationCtgArr,
696            deptID: deptID,
697            employee_id: empID,
698        },
699        success: function (response) {
700            $(".loader").hide();
701            $("#show_result").html(response);
702        },
703    });
704});
705
706function elementId(id_arr) {
707    var id = id_arr.split("_");
708    return id[id.length - 1];
709}
710$(document).ready(function () {
711    $("#example").DataTable();
712});
713
714//funded project
715$("#searchingFacultyNameFundedProject").change(function () {
716    $.ajax({
717        type: "POST",
718        url: base_url + "/searching_funded_project",
719        headers: {
720            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
721        },
722        data: $("#funded_project_form").serialize(),
723        success: function (data) {
724            $("#showData").html(data);
725        },
726        error: function (data) {
727            console.log(data);
728        },
729    });
730    return false;
731});
732$("#searchingDeptInfoFundedProject").keyup(function () {
733    $.ajax({
734        type: "POST",
735        url: base_url + "/searching_funded_project",
736        headers: {
737            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
738        },
739        data: $("#funded_project_form").serialize(),
740        success: function (data) {
741            $("#showData").html(data);
742        },
743        error: function (data) {
744            console.log(data);
745        },
746    });
747    return false;
748});
749
750function goBack() {
751    window.history.back();
752}
753
754// NOC
755
756$(document).ready(function () {
757    var nocRecordTable= $("#nocList").DataTable({
758        serverSide: true,
759        "ajax": {
760            url: base_url + "/du_nocDataSource",
761            method: "get",
762            data: function (d) {
763                 d.applyType      = $("input[name='applyType']:checked"). val();
764            }
765        },
766        language: {
767            processing: "<img src='fontView/assets/img/ajax-loader.gif' />"
768        },
769        columnDefs: [
770            {
771                targets: [4],
772                orderable: false,
773            },
774        ],
775    });
776    $(".applyType").change(function () {
777        nocRecordTable.draw();
778    });
779
780    $("#trustFunds").DataTable({
781        serverSide: true,
782        ajax: {
783            url: base_url + "/trustFundsAction",
784            method: "get",
785        },
786        columnDefs: [
787            {
788                targets: [4],
789                orderable: false,
790            },
791        ],
792    });
793
794    $("#duBartaInfoData").DataTable({
795        serverSide: true,
796        ajax: {
797            url: base_url + "/duBartaInfoAction",
798            method: "get",
799        },
800        columnDefs: [
801            {
802                targets: [4],
803                orderable: false,
804            },
805        ],
806    });
807
808    $("#myTable").DataTable({
809
810    });
811
812    $("#scholarshipFinancialInfo").DataTable({
813        serverSide: true,
814        ajax: {
815            url: base_url + "/scholarshipFinancialInfoAction",
816            method: "get",
817        },
818        columnDefs: [
819            {
820                targets: [4],
821                orderable: false,
822            },
823        ],
824    });
825
826
827    var regGraduateListTable= $("#regGraduateList").DataTable({
828        serverSide: true,
829        "ajax": {
830            url: base_url + "/registeredGraduateAction",
831            method: "get",
832            data: function (d) {
833                d.district      = $(".districtChange"). val();
834                d.upazila       = $(".upazilaInfo"). val();
835            }
836        },
837        language: {
838            processing: "<img src='fontView/assets/img/ajax-loader.gif' />"
839        },
840        columnDefs: [
841            {
842                targets: [4],
843                orderable: false,
844            },
845        ],
846    });
847    $(".districtChange,.upazilaInfo").change(function () {
848        regGraduateListTable.draw();
849    });
850});
851
852// update faculty member views
853
854$("#facultyMemberName").keyup(function () {
855    $.ajax({
856        type: "POST",
857        url: base_url + "/searching_faculty_member_info",
858        headers: {
859            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
860        },
861        data: $("#facultyMemberSearchingInfo").serialize(),
862        success: function (data) {
863            $("#showData").html(data);
864        },
865        error: function (data) {
866            console.log(data);
867        },
868    });
869    return false;
870});
871
872$("#facultyIdSearchingfacultyMember").change(function () {
873    var facultyId = $(this).val();
874    $.ajax({
875        type: "GET",
876        url: base_url + "/showBodyInfoType",
877        data: { parent_id: facultyId },
878        dataType: "json",
879        success: function (response) {
880            var toAppend = "";
881            $("#deptIdSearchingfacultyMember").html(
882                '<option value="">Select One</option>'
883            );
884            if (response.status == "success") {
885                var data = response.data;
886                $.each(data, function (index, val) {
887                    toAppend +=
888                        "<option value='" +
889                        val.id +
890                        "'>" +
891                        val.name +
892                        "</option>";
893                });
894                $("#deptIdSearchingfacultyMember").append(toAppend);
895            } else {
896                $("#deptIdSearchingfacultyMember").html(
897                    '<option value="">Select One</option>'
898                );
899            }
900        },
901    });
902});
903$("#deptIdSearchingfacultyMember").change(function () {
904    $.ajax({
905        type: "POST",
906        url: base_url + "/searching_faculty_member_info",
907        headers: {
908            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
909        },
910        data: $("#facultyMemberSearchingInfo").serialize(),
911        success: function (data) {
912            $("#showData").html(data);
913        },
914        error: function (data) {
915            console.log(data);
916        },
917    });
918    return false;
919});
920
921$("#deptIdSearchingOfficer").change(function () {
922    $.ajax({
923        type: "POST",
924        url: base_url + "/searching_officer_info",
925        headers: {
926            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
927        },
928        data: $("#facultyMemberSearchingInfo").serialize(),
929        success: function (data) {
930            $("#showData").html(data);
931        },
932        error: function (data) {
933            console.log(data);
934        },
935    });
936    return false;
937});
938
939$("#officerMemberName").keyup(function () {
940    $.ajax({
941        type: "POST",
942        url: base_url + "/searching_officer_info",
943        headers: {
944            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
945        },
946        data: $("#facultyMemberSearchingInfo").serialize(),
947        success: function (data) {
948            $("#showData").html(data);
949        },
950        error: function (data) {
951            console.log(data);
952        },
953    });
954    return false;
955});
956
957$(".panel-collapse").on("show.bs.collapse", function () {
958    $(this).siblings(".panel-heading").addClass("active");
959});
960
961$(".panel-collapse").on("hide.bs.collapse", function () {
962    $(this).siblings(".panel-heading").removeClass("active");
963});
964
965$("#countryNameCollaboration").change(function () {
966    $.ajax({
967        type: "POST",
968        url: base_url + "/searching_research_collaboration_info",
969        headers: {
970            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
971        },
972        data: $("#research_collaboration_form").serialize(),
973        success: function (data) {
974            // console.log(count_data);
975            $("#showData").html(data);
976        },
977        error: function (data) {
978            console.log(data);
979        },
980    });
981    return false;
982});
983
984$("#searchingCollaboration").keyup(function () {
985    $.ajax({
986        type: "POST",
987        url: base_url + "/searching_research_collaboration_info",
988        headers: {
989            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
990        },
991        data: $("#research_collaboration_form").serialize(),
992        success: function (data) {
993            // console.log(count_data);
994            $("#showData").html(data);
995        },
996        error: function (data) {
997            console.log(data);
998        },
999    });
1000    return false;
1001});
1002
1003$("#facultyNameChairman").change(function () {
1004    $.ajax({
1005        type: "POST",
1006        url: base_url + "/searchDeptChairmanInfo",
1007        headers: {
1008            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
1009        },
1010        data: $("#chairman_list_form").serialize(),
1011        success: function (data) {
1012            // console.log(count_data);
1013            $("#showData").html(data);
1014        },
1015        error: function (data) {
1016            console.log(data);
1017        },
1018    });
1019    return false;
1020});
1021
1022$("#depatmentNameChairman").keyup(function () {
1023    $.ajax({
1024        type: "POST",
1025        url: base_url + "/searchDeptChairmanInfo",
1026        headers: {
1027            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
1028        },
1029        data: $("#chairman_list_form").serialize(),
1030        success: function (data) {
1031            // console.log(count_data);
1032            $("#showData").html(data);
1033        },
1034        error: function (data) {
1035            console.log(data);
1036        },
1037    });
1038    return false;
1039});
1040
1041function toggleIcon(e) {
1042    $(e.target)
1043        .prev(".panel-heading")
1044        .find(".more-less")
1045        .toggleClass("glyphicon-plus glyphicon-minus");
1046}
1047$(".panel-group").on("hidden.bs.collapse", toggleIcon);
1048$(".panel-group").on("shown.bs.collapse", toggleIcon);
1049
1050// $( function() {
1051//     console.log('hello the world');
1052//     var availableTags = [
1053//         "ActionScript",
1054//         "AppleScript",
1055//         "Asp",
1056//         "BASIC",
1057//         "C",
1058//         "C++",
1059//         "Clojure",
1060//         "COBOL",
1061//         "ColdFusion",
1062//         "Erlang",
1063//         "Fortran",
1064//         "Groovy",
1065//         "Haskell",
1066//         "Java",
1067//         "JavaScript",
1068//         "Lisp",
1069//         "Perl",
1070//         "PHP",
1071//         "Python",
1072//         "Ruby",
1073//         "Scala",
1074//         "Scheme"
1075//     ];
1076//     $( "#eventSearching" ).autocomplete({
1077//         source: availableTags
1078//     });
1079// });
1080
1081function autoCompleteSearchingPosting(data) {
1082    var type = $("#type").val();
1083    if (data.value.trim() == "") {
1084        $("#eventSearching").val("");
1085        return false;
1086    }
1087    var options = {
1088        minLength: 1,
1089        source: function (request, response) {
1090            $.ajax({
1091                url: base_url + "/searching_posting_info",
1092                method: "post",
1093                dataType: "json",
1094                autoFocus: true,
1095                headers: {
1096                    "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr(
1097                        "content"
1098                    ),
1099                },
1100                data: {
1101                    term: request.term,
1102                    type: type,
1103                },
1104                success: function (data) {
1105                    response(data);
1106                },
1107            });
1108        },
1109        select: function (event, ui) {
1110            //$( "#showInfo" ).hide();
1111            if (ui.item.value != "") {
1112                $("#eventSearchingId").val(ui.item.id);
1113                $("#eventSearching").val(ui.item.value);
1114                var eventSearching=$("#eventSearching").val();
1115                $(".loadlater").show();
1116                $.ajax({
1117                    type: "POST",
1118                    url: base_url + "/searchingPost",
1119                    headers: {
1120                        "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr(
1121                            "content"
1122                        ),
1123                    },
1124                    data: { post_id: ui.item.id, type: type,searchingInfoPostTitle:eventSearching },
1125                    success: function (response) {
1126                        $(".loadlater").hide();
1127                        if (response != "") {
1128                            $("#showInfo").html(response);
1129                        } else {
1130                            $("#showInfo").html("");
1131                        }
1132                    },
1133                });
1134            } else {
1135                $("#employee_name_search").val("");
1136                $("#employee_id_search").val("");
1137                $("#employee_info_search").hide();
1138            }
1139            return false;
1140        },
1141    };
1142    $("body").on("keydown.autocomplete", "#eventSearching", function () {
1143        $(this).autocomplete(options);
1144    });
1145}
1146
1147function searchingEventInfo() {
1148    $(".loadlater").show();
1149    $.ajax({
1150        type: "POST",
1151        url: base_url + "/searchingPost",
1152        headers: {
1153            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
1154        },
1155        data: $("#searchingForm").serialize(),
1156        success: function (response) {
1157            $(".loadlater").hide();
1158            if (response != "") {
1159                $("#showInfo").html(response);
1160            } else {
1161                $("#showInfo").html("");
1162            }
1163        },
1164    });
1165}
1166
1167$(document).ready(function () {
1168    jQuery(".programLevel").click(function () {
1169        var selectedProgramLevel = new Array();
1170        var n = jQuery(".programLevel:checked").length;
1171        if (n > 0) {
1172            jQuery(".programLevel:checked").each(function () {
1173                selectedProgramLevel.push($(this).val());
1174            });
1175        }
1176        var selectedFaculty = new Array();
1177        var n = jQuery(".programFaculty:checked").length;
1178        if (n > 0) {
1179            jQuery(".programFaculty:checked").each(function () {
1180                selectedFaculty.push($(this).val());
1181            });
1182        }
1183        $("#showCourseFinder").html("");
1184        $(".loadlater").show();
1185        $.ajax({
1186            type: "POST",
1187            url: base_url + "/searchingProgramInfo",
1188            headers: {
1189                "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
1190            },
1191            data: {
1192                programLevel: selectedProgramLevel,
1193                programFaculty: selectedFaculty,
1194            },
1195            success: function (response) {
1196                $(".loadlater").hide();
1197                if (response != "") {
1198                    $("#showCourseFinder").html(response);
1199                } else {
1200                    $("#showCourseFinder").html("");
1201                }
1202            },
1203        });
1204    });
1205
1206    jQuery(".programFaculty").click(function () {
1207        var selectedFaculty = new Array();
1208        var n = jQuery(".programFaculty:checked").length;
1209        if (n > 0) {
1210            jQuery(".programFaculty:checked").each(function () {
1211                selectedFaculty.push($(this).val());
1212            });
1213        }
1214        var selectedProgramLevel = new Array();
1215        var n = jQuery(".programLevel:checked").length;
1216        if (n > 0) {
1217            jQuery(".programLevel:checked").each(function () {
1218                selectedProgramLevel.push($(this).val());
1219            });
1220        }
1221
1222        $(".loadlater").show();
1223        $("#showInfo").html("");
1224        $.ajax({
1225            type: "POST",
1226            url: base_url + "/searchingProgramInfo",
1227            headers: {
1228                "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
1229            },
1230            data: {
1231                programFaculty: selectedFaculty,
1232                programLevel: selectedProgramLevel,
1233            },
1234            success: function (response) {
1235                $(".loadlater").hide();
1236                if (response != "") {
1237                    $("#showCourseFinder").html(response);
1238                } else {
1239                    $("#showCourseFinder").html("");
1240                }
1241            },
1242        });
1243    });
1244});
1245
1246function searchingProgram(data) {
1247    if (data.value.trim() == "") {
1248        $("#programNameID").val("");
1249        $("#programName").val("");
1250        return false;
1251    }
1252    var options = {
1253        minLength: 1,
1254        source: function (request, response) {
1255            $.ajax({
1256                url: base_url + "/searching_program_info",
1257                method: "post",
1258                dataType: "json",
1259                autoFocus: true,
1260                headers: {
1261                    "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr(
1262                        "content"
1263                    ),
1264                },
1265                data: {
1266                    term: request.term,
1267                },
1268                success: function (data) {
1269                    response(data);
1270                },
1271            });
1272        },
1273        select: function (event, ui) {
1274            //$( "#showInfo" ).hide();
1275            if (ui.item.value != "") {
1276                $("#programNameID").val(ui.item.id);
1277                $("#programName").val(ui.item.value);
1278                $(".loadlater").show();
1279                $.ajax({
1280                    type: "POST",
1281                    url: base_url + "/searchingProgramInfo",
1282                    headers: {
1283                        "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr(
1284                            "content"
1285                        ),
1286                    },
1287                    data: { program_id: ui.item.id },
1288                    success: function (response) {
1289                        $(".loadlater").hide();
1290                        if (response != "") {
1291                            $("#showCourseFinder").html(response);
1292                        } else {
1293                            $("#showCourseFinder").html("");
1294                        }
1295                    },
1296                });
1297            } else {
1298                $("#programNameID").val("");
1299                $("#programName").val("");
1300            }
1301            return false;
1302        },
1303    };
1304    $("body").on("keydown.autocomplete", "#programName", function () {
1305        $(this).autocomplete(options);
1306    });
1307}
1308
1309$("#programName").keyup(function (e) {
1310    var searchProgram = $(this).val();
1311    $.ajax({
1312        type: "POST",
1313        url: base_url + "/searchingProgramInfo",
1314        headers: {
1315            "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
1316        },
1317        data: { searchProgram: searchProgram },
1318        success: function (response) {
1319            $(".loadlater").hide();
1320            if (response != "") {
1321                $("#showCourseFinder").html(response);
1322            } else {
1323                $("#showCourseFinder").html("");
1324            }
1325        },
1326    });
1327});
1328
1329$(document).ready(function () {
1330    var searchProgram = $("#programName").val();
1331    if (searchProgram != "") {
1332        $.ajax({
1333            type: "POST",
1334            url: base_url + "/searchingProgramInfo",
1335            headers: {
1336                "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
1337            },
1338            data: { searchProgram: searchProgram },
1339            success: function (response) {
1340                $(".loadlater").hide();
1341                if (response != "") {
1342                    $("#showCourseFinder").html(response);
1343                } else {
1344                    $("#showCourseFinder").html("");
1345                }
1346            },
1347        });
1348    }
1349});
1350
1351$(".districtChange").change(function () {
1352    var districtID = $(this).val();
1353    $.ajax({
1354        type: "GET",
1355        url: base_url + "/showUpazilaFromDistrictID",
1356        data: { districtID: districtID },
1357        dataType: "json",
1358        success: function (response) {
1359            var toAppend = "";
1360            $(".upazilaInfo").html(
1361                '<option value="">Select Upazila</option>'
1362            );
1363            if (response.status == "success") {
1364                var data = response.data;
1365                $.each(data, function (index, val) {
1366                    toAppend +=
1367                        "<option value='" +
1368                        val +
1369                        "'>" +
1370                        index +
1371                        "</option>";
1372                });
1373                $(".upazilaInfo").append(toAppend);
1374            } else {
1375                $(".upazilaInfo").html(
1376                    '<option value="">Select Upazila</option>'
1377                );
1378            }
1379        },
1380    });
1381});
1382
1383
1384$(document).ready(function () {
1385    $("#service_received_date").datepicker({dateFormat: 'dd-mm-yy'});
1386});
1387
1388function starSet(rating) {
1389    for (var i = 1; i <= 5; i++) {
1390        var element = document.getElementById("star" + i);
1391        element.classList.remove("checked");
1392    }
1393    for (var i = 1; i <= rating; i++) {
1394        var element = document.getElementById("star" + i);
1395        element.classList.add("checked");
1396    }
1397    document.getElementById('rating').value = rating;
1398    console.log(document.getElementById('rating').value)
1399
1400}
1401
1402function getFeedbackUserType(userType) {
1403    if (userType == "Student") {
1404        $('#registration_no').css('display', 'block');
1405        $('#employee_id').css('display', 'none');
1406
1407    } else if (userType == "T_O_S") {
1408        $('#registration_no').css('display', 'none');
1409        $('#employee_id').css('display', 'block');
1410    } else {
1411        $('#registration_no').css('display', 'none');
1412        $('#employee_id').css('display', 'none');
1413    }
1414}
1415
1416$("#myTable_service_list").DataTable({
1417    "bPaginate": false
1418});
1419
1420
1421$("#reload").click(function(){
1422    $.ajax({
1423        type:"GET",
1424        url:base_url+"/refresh_captcha",
1425
1426        success:function(data){
1427            $(".captcha span").html(data.captcha);
1428        }
1429    });
1430});

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.