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.117.231.160
Current Path : /var/www/oasis/js/ |
| Current File : /var/www/oasis/js/freezeiaprici.js |
function getPriFreezeDegree() {
$.ajax({
type: "GET",
url: $host_url + "getMarkDegreeName",
success: function (response) {
let res = JSON.parse(response);
// console.log(res.data.length);
// return;
if (res.error_code == 0) {
var degree = `<option>---Select---</option>`;
for (var i = 0; i < res.data.length; i++) {
degree += `<option value='${res.data[i].fdegree}'>${res.data[i].fdegree} - ${res.data[i].fdescpn}</option>`;
}
$("#fmacas_degree_code").html(degree);
} else {
alert(res.data.msg);
return;
}
},
});
}
function getPriExamno() {
let degree = $("#fmacas_degree_code").val();
// console.log(degree);
// return;
$.ajax({
type: "GET",
data: "°ree=" + degree,
url: $host_url + "getMarkExamName",
data: "°ree=" + degree,
success: function (response) {
let res = JSON.parse(response);
// console.log(res);
// return;
if (res.error_code == 0) {
var sem = `<option>---select---</option>`;
for (var i = 0; i < res.data.length; i++) {
sem += `<option value='${res.data[i].fexamno}'>${res.data[i].fexamno} - ${res.data[i].fexamname}</option>`;
}
$("#fmacas_sub_Examno").html(sem);
} else {
alert(res.data.msg);
return;
}
},
});
}
$g_fmacs_total_row_count = 0;
$g_fmacas_org_rem_sub = "";
$g_fmacas_rem_sub = "";
function cllFreezeIaPrici() {
$g_fmacs_total_row_count = 0;
$g_fmacas_rem_sub = "";
$g_fmacas_org_rem_sub = "";
$("#page_main_div").load(
"../html_modules/freezeiaprici_new.html",
function () {
document.getElementById("display_module_name").innerHTML =
"Principal Subject Freeze";
document.getElementById("module_name_for_save").value =
"freezeModuleAtAdminCollegeSubject";
document.getElementById("is_add_edit").value = "Add";
document.getElementById(
"freeze_module_at_university_college"
).style.height = "420px";
getDefaultHeadFooterLinks("Freez Marks");
document.getElementById("fmacas_degree_code").value = "";
document.getElementById("fmacas_degree_name").value = "";
document.getElementById("fmacas_sub_Examno").value = "";
document.getElementById("fmacas_sub_Exam_name").value = "";
document.getElementById("fmacas_module_subject_data").innerHTML = "";
$("#error_msg").html("");
$("#fmauc_module_colldeg_data").hide();
$("#fmauc_module_colldeg_data").html("");
$("#fmauc_degree_code").val("");
$("#fmauc_degree_code_degree_name").val("");
$("#print_row").hide();
if (db == "demo") {
$("#fmacas_degree_code").val("BCA1");
$("#fmacas_degree_name").val(
"Bachelor of Computer Application (2018 Batch Only)"
);
$("#fmacas_sub_Examno").val("E");
$("#fmacas_sub_Exam_name").val("V Semseter");
}
}
);
$("#module_details_div").hide();
getPriFreezeDegree();
}
function getFreezeiaPrici() {
if (trim(document.getElementById("fmacas_degree_code").value) == "") {
alert("Please enter the Degree Code");
$("#fmacas_degree_code").focus();
return;
}
if (trim(document.getElementById("fmacas_sub_Examno").value) == "") {
alert("Please enter the Exam No.");
$("#fmacas_sub_Examno").focus();
return;
}
//$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" });
$.ajax({
type: "POST",
data:
"°ree=" +
$("#fmacas_degree_code").val() +
"&exam_no=" +
$("#fmacas_sub_Examno").val(),
url: $host_url + "getFreezeiaPrici.demo",
success: getFreezeiaPriciResponce,
});
}
function getFreezeiaPriciResponce($responce) {
$responce = eval("(" + $responce + ")");
//$.unblockUI();
if ($responce.error_code == 0) {
document.getElementById("fmacas_degree_code").disabled = true;
document.getElementById("fmacas_sub_Examno").disabled = true;
$("#fmacas_module_subject_data").show();
$("#fmacas_module_subject_data").html("");
$("#fmacas_module_subject_data").html($responce.data.html_data);
$g_fmacas_total_row_count = $responce.data.total_count;
$g_fmacas_org_rem_sub = $responce.data.rem_sub;
$g_fmacas_rem_sub = $responce.data.rem_sub;
} else {
alert($responce.data);
$("#fmacas_module_subject_data").show();
$("#fmacas_module_subject_data").html("");
$g_fmacas_total_row_count = 0;
}
}
function saveFreezeiaPrici() {
if (trim(document.getElementById("fmacas_degree_code").value) == "") {
alert("Please enter the Degree. Code");
document.getElementById("fmacas_degree_code").focus();
return;
}
if (trim(document.getElementById("fmacas_sub_Examno").value) == "") {
alert("Please enter the Degree. Code");
document.getElementById("fmacas_sub_Examno").focus();
return;
}
$checked_subjects = "";
$unchecked_subjects = "";
$arr = new Object();
for ($k = 0; $k < $g_fmacas_total_row_count; $k++) {
if (
document.getElementById("fmacas_FCSTATUS_check_" + $k).checked !=
document.getElementById("fmacas_FCSTATUS_checkH_" + $k).checked
) {
if (document.getElementById("fmacas_FCSTATUS_check_" + $k).checked)
$checked_subjects += trim($("#fmacas_FSUBCODE_" + $k).html()) + "*";
if (!document.getElementById("fmacas_FCSTATUS_check_" + $k).checked)
$unchecked_subjects += trim($("#fmacas_FSUBCODE_" + $k).html()) + "*";
}
}
//$g_fmacas_rem_sub = $g_fmacas_rem_sub+'*'+$checked_subjects;
$g_fmacas_rem_sub = $checked_subjects;
// alert($g_fmacas_rem_sub);
$.ajax({
type: "POST",
data:
"degree=" +
$("#fmacas_degree_code").val() +
"&exam_no=" +
document.getElementById("fmacas_sub_Examno").value +
"&rem_sub=" +
$g_fmacas_rem_sub +
"&rem_unsub=" +
$unchecked_subjects,
url: $host_url + "saveFreezeiaPrici.demo",
success: saveFreezeiaPriciResponce,
});
}
function saveFreezeiaPriciResponce($responce) {
$responce = eval("(" + $responce + ")");
alert($responce.data);
$g_fmacas_rem_sub = $g_fmacas_org_rem_sub;
document.getElementById("fmacas_module_subject_data").innerHTML = "";
}
function checkAllFamuFcSubjects($id) {
if (document.getElementById($id).checked) {
for ($k = 0; $k < $g_fmacas_total_row_count; $k++) {
document.getElementById("fmacas_FCSTATUS_check_" + $k).checked = true;
}
} else {
for ($k = 0; $k < $g_fmacas_total_row_count; $k++) {
document.getElementById("fmacas_FCSTATUS_check_" + $k).checked = false;
}
}
}
function ClearFreezeModuleAtAdminCollegeSubject() {
document.getElementById("fmacas_degree_code").value = "";
document.getElementById("fmacas_degree_name").value = "";
document.getElementById("fmacas_sub_Examno").value = "";
document.getElementById("fmacas_sub_Exam_name").value = "";
document.getElementById("fmacas_module_subject_data").innerHTML = "";
}
function subjectwiseiapending(subcode, degree) {
window.open(
$host_url +
"GenerateMarksEntrySubjectWisePendingReport.demo°ree=" +
degree +
"&subcode=" +
subcode
);
}
// /*
// *
// * PROGRAMED BY Natesha
// * FOR THE freezeModuleAtUniversityOrCollege list ENTRY FORM
// * DATE: 31/03/09
// * TIME: 1:15 PM
// *
// */
// $g_fmacs_total_row_count = 0;
// $g_fmacas_org_rem_sub = "";
// $g_fmacas_rem_sub = "";
// function cllFreezeIaPrici() {
// $g_fmacs_total_row_count = 0;
// $g_fmacas_rem_sub = "";
// $g_fmacas_org_rem_sub = "";
// $("#page_main_div").load("../html_modules/freezeiaprici.html", function () {
// document.getElementById("display_module_name").innerHTML =
// "Principal Subject Freeze";
// document.getElementById("module_name_for_save").value =
// "freezeModuleAtAdminCollegeSubject";
// document.getElementById("is_add_edit").value = "Add";
// document.getElementById(
// "freeze_module_at_university_college"
// ).style.height = "420px";
// getDefaultHeadFooterLinks("Freez Marks");
// document.getElementById("fmacas_degree_code").value = "";
// document.getElementById("fmacas_degree_name").value = "";
// document.getElementById("fmacas_sub_Examno").value = "";
// document.getElementById("fmacas_sub_Exam_name").value = "";
// document.getElementById("fmacas_module_subject_data").innerHTML = "";
// $("#error_msg").html("");
// $("#fmauc_module_colldeg_data").hide();
// $("#fmauc_module_colldeg_data").html("");
// $("#fmauc_degree_code").val("");
// $("#fmauc_degree_code_degree_name").val("");
// $("#print_row").hide();
// if (db == "demo") {
// $("#fmacas_degree_code").val("BCA1");
// $("#fmacas_degree_name").val(
// "Bachelor of Computer Application (2018 Batch Only)"
// );
// $("#fmacas_sub_Examno").val("E");
// $("#fmacas_sub_Exam_name").val("V Semseter");
// }
// $("#ldegcode").html(`${ldegas} :`);
// });
// $("#module_details_div").hide();
// }
// function getFreezeiaPrici() {
// if (trim(document.getElementById("fmacas_degree_code").value) == "") {
// alert("Please enter the Degree Code");
// $("#fmacas_degree_code").focus();
// return;
// }
// if (trim(document.getElementById("fmacas_sub_Examno").value) == "") {
// alert("Please enter the Exam No.");
// $("#fmacas_sub_Examno").focus();
// return;
// }
// //$.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='img/ajax-loader.gif' border='0'></h1>" });
// $.ajax({
// type: "POST",
// data:
// "°ree=" +
// $("#fmacas_degree_code").val() +
// "&exam_no=" +
// $("#fmacas_sub_Examno").val(),
// url: $host_url + "getFreezeiaPrici.demo",
// success: getFreezeiaPriciResponce,
// });
// }
// function getFreezeiaPriciResponce($responce) {
// $responce = eval("(" + $responce + ")");
// //$.unblockUI();
// if ($responce.error_code == 0) {
// document.getElementById("fmacas_degree_code").disabled = true;
// document.getElementById("fmacas_sub_Examno").disabled = true;
// $("#fmacas_module_subject_data").show();
// $("#fmacas_module_subject_data").html("");
// $("#fmacas_module_subject_data").html($responce.data.html_data);
// $g_fmacas_total_row_count = $responce.data.total_count;
// $g_fmacas_org_rem_sub = $responce.data.rem_sub;
// $g_fmacas_rem_sub = $responce.data.rem_sub;
// } else {
// alert($responce.data);
// $("#fmacas_module_subject_data").show();
// $("#fmacas_module_subject_data").html("");
// $g_fmacas_total_row_count = 0;
// }
// }
// function saveFreezeiaPrici() {
// if (trim(document.getElementById("fmacas_degree_code").value) == "") {
// alert("Please enter the Degree. Code");
// document.getElementById("fmacas_degree_code").focus();
// return;
// }
// if (trim(document.getElementById("fmacas_sub_Examno").value) == "") {
// alert("Please enter the Degree. Code");
// document.getElementById("fmacas_sub_Examno").focus();
// return;
// }
// $checked_subjects = "";
// $unchecked_subjects = "";
// $arr = new Object();
// for ($k = 0; $k < $g_fmacas_total_row_count; $k++) {
// if (
// document.getElementById("fmacas_FCSTATUS_check_" + $k).checked !=
// document.getElementById("fmacas_FCSTATUS_checkH_" + $k).checked
// ) {
// if (document.getElementById("fmacas_FCSTATUS_check_" + $k).checked)
// $checked_subjects += trim($("#fmacas_FSUBCODE_" + $k).html()) + "*";
// if (!document.getElementById("fmacas_FCSTATUS_check_" + $k).checked)
// $unchecked_subjects += trim($("#fmacas_FSUBCODE_" + $k).html()) + "*";
// }
// }
// //$g_fmacas_rem_sub = $g_fmacas_rem_sub+'*'+$checked_subjects;
// $g_fmacas_rem_sub = $checked_subjects;
// // alert($g_fmacas_rem_sub);
// $.ajax({
// type: "POST",
// data:
// "degree=" +
// $("#fmacas_degree_code").val() +
// "&exam_no=" +
// document.getElementById("fmacas_sub_Examno").value +
// "&rem_sub=" +
// $g_fmacas_rem_sub +
// "&rem_unsub=" +
// $unchecked_subjects,
// url: $host_url + "saveFreezeiaPrici.demo",
// success: saveFreezeiaPriciResponce,
// });
// }
// function saveFreezeiaPriciResponce($responce) {
// $responce = eval("(" + $responce + ")");
// alert($responce.data);
// $g_fmacas_rem_sub = $g_fmacas_org_rem_sub;
// document.getElementById("fmacas_module_subject_data").innerHTML = "";
// }
// function checkAllFamuFcSubjects($id) {
// if (document.getElementById($id).checked) {
// for ($k = 0; $k < $g_fmacas_total_row_count; $k++) {
// document.getElementById("fmacas_FCSTATUS_check_" + $k).checked = true;
// }
// } else {
// for ($k = 0; $k < $g_fmacas_total_row_count; $k++) {
// document.getElementById("fmacas_FCSTATUS_check_" + $k).checked = false;
// }
// }
// }
// function ClearFreezeModuleAtAdminCollegeSubject() {
// document.getElementById("fmacas_degree_code").value = "";
// document.getElementById("fmacas_degree_name").value = "";
// document.getElementById("fmacas_sub_Examno").value = "";
// document.getElementById("fmacas_sub_Exam_name").value = "";
// document.getElementById("fmacas_module_subject_data").innerHTML = "";
// }
// function subjectwiseiapending(subcode, degree) {
// window.location.href =
// $host_url +
// "GenerateMarksEntrySubjectWisePendingReport.demo°ree=" +
// degree +
// "&subcode=" +
// subcode;
// }
|