function callenableNotification() { $('#page_main_div').load( '../html_modules/viewNotifications.html', function () { document.getElementById('display_module_name').innerHTML = 'Exam Notifications' document.getElementById('module_name_for_save').value = 'Notifications' getDefaultHeadFooterLinks('View Notifications') getNotifications() loaddeggrp() } ) } function loaddeggrp() { $.ajax({ type: 'POST', url: $host_url + 'loaddeggrp', success: loaddeggrpResponse, }) } function loaddeggrpResponse($responce) { $responce = eval('(' + $responce + ')') if ($responce.error_code == -1) { alert($responce.data) return } else { var deggrp = $responce.data $op = new Option('All', '') document.getElementById('deggrp').options.add($op) for ($i = 0; $i < deggrp.length; $i++) { $op = new Option(deggrp[$i]['value'], deggrp[$i]['code']) $op.id = deggrp[$i]['code'] document.getElementById('deggrp').options.add($op) } } } function getNotifications() { let deggrp = document.getElementById('deggrp').value $.ajax({ type: 'GET', url: $host_url + 'getNotifications' + '°grp=' + deggrp, success: function (res) { let response = JSON.parse(res) console.log(response) var table = `
Exam Notifications | ||||||
---|---|---|---|---|---|---|
Sl. No. | Degree Group | Notification ID | Notification Date | Notification No. | Notification Description | Action |
${ i + 1 } | ${ response.data[i].fdeggrp } | ${ response.data[i].fnotifid } | ${ response.data[i].fnotifdate } | ${ response.data[i].fnotifno } | ${ response.data[i].fnotifname } | Report |
Exam Notifications not available! |