Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.15.3.17
Current Path : /kop/admin/ |
| Current File : //kop/admin/onload_notif.js |
function load_notification_1() {
// alert("table.HTML");
$.ajax({
type: "get",
url: "onload.php",
success: function (response) {
var response = JSON.parse(response);
console.log(response);
var details = response.data;
var table = `<table class="table" style="width: 80%;">
<th scope="col" style="background: #95503d; color: white; text-align: center; font-size: 18px;">Particulars</th>
<th scope="col" style="background: #95503d; color: white; text-align: center; font-size: 18px;">Updated On</th>
<th scope="col" style="background: #95503d; color: white; ">
</th>`;
for (let i in details) {
if (details[i]["FTYPE"].search("notify") != -1) {
table += `<tr>
<td style="font-size: 16px; width:80%; ">${details[i].FTITLE}</td>
<td style="color: black;"><center> ${details[i].FCREATE} </center></td>
<td style="font-size: 20px;"><a style="color: orangered;" href="admin/${details[i].FPATH}" target="_blank">View</a></td>
</tr>`;
}
}
table += `</table>`;
console.log(table);
$("#table_notification").html(table);
},
});
}
// <tr>
// <td style="font-size: 20px; width:80%;">
// <a data-new="new" href="admission.php" target="_blank" style="color:white;">
// Admission 2021-2022 is open
// </a>
//
// </td>
// <td>05-06-2021</td>
// </tr>;
|