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.133.145.168
function LoadenableMarksListStudentWise() {
$geditinternalcode = 0;
window.enable_proper_module = "enableMarksListStudentWise";
$("#page_main_div").load(
"../html_modules/marklist_studentwise.html",
function() {
document.getElementById("display_module_name").innerHTML = "Marks List";
document.getElementById("module_name_for_save").value =
"saveMarklistStudentWise";
getDefaultHeadFooterLinks("Marks List (Studentwise)");
$("#report_marklist_student_degree_code").focus();
$("#report_marklist_student_degree_code").val("");
if (
getCookie("username") != "admin" &&
getCookie("username") != "super"
) {
//alert(getCookie('username'));
document.getElementById("report_student").disabled = true;
}
$("#report_marklist_student_degree_name").val("");
$("#report_marklist_student_Examno_name").val("");
$("#report_marklist_student_Examno").val("");
$("#percentage").hide();
}
);
$("#module_details_div").hide();
}
function GenerateMarksStudentListReport() {
if (trim($("#report_marklist_student_degree_code").val()) == "") {
alert("Please Enter Degree Code!!");
$("#report_marklist_student_degree_code").focus();
return;
}
if (
!document.getElementById("report_student").checked &&
!document.getElementById("report_subject").checked
) {
alert("Select Report Type");
return;
}
if (
trim($("#sectionfrom").val()) == "" ||
trim($("#sectionto").val()) == ""
) {
alert("Enter Section range.");
return;
}
var percentage = "F";
var percent = "";
if (document.getElementById("report_percent").checked) {
percentage = "T";
document.getElementById("percent").focus();
if (trim($("#percent").val()) == "") {
alert("Enter Percentage");
return;
}
var percent = $("#percent").val();
}
var dataString =
"°ree_code=" +
trim($("#report_marklist_student_degree_code").val()) +
"&exam_code=" +
trim($("#report_marklist_student_Examno").val());
dataString +=
"®_start=" +
trim($("#report_marklist_reg_start_from").val()) +
"®_end=" +
trim($("#report_marklist_reg_end_to").val());
dataString +=
"&subwise_start=" +
trim($("#report_marklist_subject_start_from").val()) +
"&subwise_end=" +
trim($("#report_marklist_subject_end_to").val()) +
"§ionfrom=" +
trim($("#sectionfrom").val()) +
"§ionto=" +
trim($("#sectionto").val()) +
"&percentage=" +
percentage +
"&percent=" +
percent;
if (document.getElementById("report_student").checked) {
if (document.getElementById("report_m_se_subject_subcode").checked) {
$search_field = "sub.FCSUBCODE";
}
if (document.getElementById("report_m_se_subject_shortname").checked) {
$search_field = "sub.FSUBSHORT";
}
dataString += "&search_field=" + trim($search_field);
window.location.href =
$host_url + "GenerateMarksEntryStudentWiseReport.demo" + dataString;
}
if (document.getElementById("report_subject").checked) {
window.location.href =
$host_url + "GenerateMarksEntrySubjectWiseReport.demo" + dataString;
}
}
function showpercentage() {
$("#percentage").hide();
if (document.getElementById("report_percent").checked)
$("#percentage").show();
else {
document.getElementById("percent").value = "";
$("#percentage").hide();
}
}
function GetMarklistStudentGeneralGetExamNO($Examno) {
switch (document.getElementById("module_name_for_save").value) {
case "saveMarklistStudentWise":
$degcode = document.getElementById("report_marklist_student_degree_code")
.value;
if ($degcode == "") {
alert("please Enter Degree Code");
document.getElementById("report_marklist_student_degree_code").focus();
return;
}
PopupMarkEntrySubGetExamNO($degcode, $Examno);
break;
}
}
|