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 : 18.119.255.183
Current Path : /var/www/oasis/js_old/ |
| Current File : /var/www/oasis/js_old/freeze_Ad_Cl_Me.js |
/*
*
* FOR THE Freeze Adminssion/CandidateList/Marks Entry FORM
* PROGRAMED BY NAVEEN
* DATE: 2/04/09
* TIME: 11:45 AM
*
*/
$g_adclme_module_count = 0;
function LoadFreezeAdClMe() {
$("#page_main_div").load(
"../html_modules/modulewise_freezing.html",
function() {
document.getElementById("display_module_name").innerHTML =
"Freeze AD/CL/ME";
document.getElementById("module_name_for_save").value = "FreezeAdClMe";
getDefaultHeadFooterLinks("Modulewise Freezing");
clearAdClMeField();
$("#print_row").hide();
$g_it_module_count = 0;
}
);
}
function getAllAdClMeDegreeCode() {
$.ajax({
type: "POST",
//async:false,
url: $host_url + "getAllAdClMeDegreeCode.demo",
data:
"degree_range=" +
encodeURIComponent(trim($("#adclme_degree_code").val())),
success: getAllAdClMeDegreeCodeResponse
});
}
function getAllAdClMeDegreeCodeResponse($responce) {
$responce = eval("(" + $responce + ")");
$("#adclme_module").show();
$("#adclme_module").html($responce.data.html);
$g_adclme_module_count = $responce.data.total_count;
}
function saveAdClMe() {
$adm_arr = new Object();
for ($m = 0; $m < $g_adclme_module_count; $m++) {
$adclme_ADid = "adclme_CHKCADCH_" + $m;
$adclme_CLid = "adclme_CHKCCLCH_" + $m;
$adclme_MEid = "adclme_CHKCMECH_" + $m;
$adm_arr[$m] = new Object();
$adm_arr[$m]["name"] = trim($("#adclme_mname_" + $m).html());
if (document.getElementById($adclme_ADid).checked)
$adm_arr[$m]["adclme_CHKCADCH"] = 1;
else if (!document.getElementById($adclme_ADid).checked)
$adm_arr[$m]["adclme_CHKCADCH"] = 0;
if (document.getElementById($adclme_ADid).disabled)
$adm_arr[$m]["adclme_CHKCADCH"] = -1;
if (document.getElementById($adclme_CLid).checked)
$adm_arr[$m]["adclme_CHKCCLCH"] = 1;
else if (!document.getElementById($adclme_CLid).checked)
$adm_arr[$m]["adclme_CHKCCLCH"] = 0;
if (document.getElementById($adclme_CLid).disabled)
$adm_arr[$m]["adclme_CHKCCLCH"] = -1;
if (document.getElementById($adclme_MEid).checked)
$adm_arr[$m]["adclme_CHKCMECH"] = 1;
else if (!document.getElementById($adclme_MEid).checked)
$adm_arr[$m]["adclme_CHKCMECH"] = 0;
if (document.getElementById($adclme_MEid).disabled)
$adm_arr[$m]["adclme_CHKCMECH"] = -1;
}
var myJSONText = encodeURIComponent(JSON.stringify($adm_arr));
//console.log($mod_arr);
$.ajax({
type: "POST",
//async:false,
url: $host_url + "saveAdClMe.demo",
data: "&adm_arr=" + myJSONText,
success: saveAdClMeResponse
});
}
function saveAdClMeResponse($responce) {
$responce = eval("(" + $responce + ")");
alert($responce.data);
clearAdClMeField();
}
function clearAdClMeField() {
$("#adclme_degree_code").val("");
document.getElementById("adclme_module").innerHTML = "";
$("#adclme_degree_code").focus();
}
|