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.147.86.104
/*
*
* FOR THE STUDENT ENTRY FORM
* PROGRAMED BY NAVEEN
* DATE: 13/03/09
* TIME: 1:15 PM
*
*/
$g_it_module_count = 0;
console.log("it is comeing");
function LoadenableDegreeSetup() {
$("#page_main_div").load("../html_modules/degree_selection.html", function() {
document.getElementById("display_module_name").innerHTML = " Degree ";
document.getElementById("module_name_for_save").value =
"IdentifyTransactions";
clearIdentifyTransactionsField();
getDefaultHeadFooterLinks("Degree Selection");
$g_it_module_count = 0;
if (document.getElementById("report_degree_only").checked) {
getAllItDegreeCode("selected");
}
});
$("#module_details_div").hide();
}
function getAllItDegreeCode(degreeType) {
$.blockUI({
message:
"<h1 class='h1' style='font-size:12px'><img src='images/ajax-loader.gif' border='0'></h1>"
});
$.ajax({
type: "POST",
//async:false,
url: $host_url + "getITModuleData.demo°reeType=" + degreeType,
data:
"degree_range=" + encodeURIComponent(trim($("#it_degree_code").val())),
success: getITModuleDataResponse
});
}
function getITModuleDataResponse($responce) {
$responce = eval("(" + $responce + ")");
//$g_subject_appearing=$responce.data;
$.unblockUI();
$g_it_module_count = $responce.data.total_count;
if ($g_it_module_count > 0) {
$("#it_module").show();
$("#it_module").html($responce.data.html);
} else {
getAllItDegreeCode("all");
document.getElementById("report_degree_all").checked = true;
}
}
function saveIdentifyTransactions() {
$mod_arr = new Object();
for ($m = 0; $m < $g_it_module_count; $m++) {
$td_id = "it_mname_" + $m;
$chk_id = "it_fmodule_" + $m;
$mod_arr[$m] = new Object();
$mod_arr[$m]["name"] = trim($("#" + $td_id).html());
if (document.getElementById($chk_id).checked) {
$mod_arr[$m]["it_fmodule"] = 1;
} else $mod_arr[$m]["it_fmodule"] = 0;
}
var myJSONText = encodeURIComponent(JSON.stringify($mod_arr));
//console.log($mod_arr);
$.ajax({
type: "POST",
//async:false,
url: $host_url + "saveIdentifyTransactions.demo",
data: "&mod_arr=" + myJSONText,
success: saveIdentifyTransactionsResponse
});
}
function saveIdentifyTransactionsResponse($responce) {
$responce = eval("(" + $responce + ")");
alert($responce.data);
clearIdentifyTransactionsField();
}
function clearIdentifyTransactionsField() {
$("#it_degree_code").val("");
document.getElementById("it_module").innerHTML = "";
$("#it_degree_code").focus();
document.getElementById("report_degree_only").checked = true;
if (document.getElementById("report_degree_only").checked) {
getAllItDegreeCode("selected");
}
}
function GenerateDegreeReport() {
if (document.getElementById("report_degree_all").checked) {
$type = "All";
} else {
$type = "Selected only";
}
window.location.href =
$host_url + "generateDegreeReport.demo°ree_types=" + trim($type);
}
|