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 : 13.58.221.124
function callFreshExam() {
$("#page_main_div").load("../html_modules/updatefreshexam.html", function () {
document.getElementById("display_module_name").innerHTML =
"Update Fresh Exam";
document.getElementById("module_name_for_save").value = "Update Fresh Exam";
getDefaultHeadFooterLinks("Update Fresh Exam");
loadfreshexam();
});
}
function loadfreshexam() {
$.ajax({
type: "GET",
url: $host_url + "loadfreshexam",
success: function (response) {
var encode = JSON.parse(response);
// console.log(encode.data[0].fdeggrp);
// return;
var degree_options = `<option value="">Select</option>`;
for (var i = 0; i < encode.data.length; i++) {
degree_options += `<option value="${encode.data[i].fdeggrp}">${encode.data[i].fdescpn}</option>`;
}
$("#degree").html(degree_options);
},
});
}
function savefreshexam() {
var degree = document.getElementById("degree").value;
var from = document.getElementById("from").value;
var to = document.getElementById("to").value;
var fexam = document.getElementById("fexam").value;
var insert =
"°ree=" + degree + "&from=" + from + "&to=" + to + "&fexam=" + fexam;
$.ajax({
type: "POST",
data: insert,
url: $host_url + "savefreshexam",
success: function (response) {
var encode = JSON.parse(response);
if (encode.error_code == 0) {
alert(encode.data.msg);
} else {
alert(encode.data.msg);
}
},
});
}
|