0xV3NOMx
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.191.171.72


Current Path : /var/www/oasis/js_old/
Upload File :
Current File : /var/www/oasis/js_old/examAttendanceReport.js

function callExamAttendanceReport() {
  $g_focus_element = "";
  $("#page_main_div").load("../html_modules/exam_attendance.html", function() {
    $geditinternalcode = 0;
    window.enable_proper_module = "DailyReportQP";
    getDefaultHeadFooterLinks("Exam Attendance Report");
    document.getElementById("display_module_name").innerHTML =
      "Exam Attendance Report";
    document.getElementById("module_name_for_save").value =
      "Exam Attendance Report";

    var today = new Date();
    var dd = today.getDate();
    var mm = today.getMonth() + 1;
    var yyyy = today.getFullYear();
    var date = dd + "/" + mm + "/" + yyyy;
    $("#report_drpt_exam_date_from").val(date);
  });
}

/* function getDegExmDaily($thsId)
 {
	if($thsId == 'report_drpt_SubCode_start')
	{
		 window.location.g_popup_degree_code=$("#report_drpt_degree_code_start").val();
		// $deg=$("#report_drpt_degree_code_start").val();
		 window.location.g_popup_exam_no=$("#report_drpt_Examno_start").val();
		// $exam=$("#report_drpt_Examno_start").val();
		// alert($deg+'-'+$exam);
	}
	else if($thsId == 'report_drpt_SubCode_End')
	{
		 window.location.g_popup_degree_code=$("#report_drpt_degree_code_End").val();
		// $deg=$("#report_drpt_degree_code_End").val();
		 window.location.g_popup_exam_no=$("#report_drpt_Examno_End").val();
		 //$exam=$("#report_drpt_Examno_End").val();
		 //alert($deg+'-'+$exam);
	}
} */

function GenerateExamAttendanceReport() {
  $date_start = document.getElementById("report_drpt_exam_date_from").value;

  if (trim($("#qp_code_start").val()) == "") {
    alert("Please Enter QP Code!!");
    $("#qp_code_start").focus();
    return;
  }

  if (document.getElementById("report_drpt_session_morning").checked) {
    $session_chck = "'AM'";
  } else if (document.getElementById("report_drpt_session_afternoon").checked) {
    $session_chck = "'PM'";
  } else if (document.getElementById("report_drpt_session_both").checked) {
    $session_chck = "'PM','AM'";
  }

  qp_start = document.getElementById("qp_code_start").value;
  qp_end = trim(document.getElementById("qp_code_end").value);
  if (qp_end == "") {
    qp_end = qp_start;
  }

  window.location.href =
    $host_url +
    "ExamAttendanceSummary&qp_code_start=" +
    qp_start +
    "&qp_code_end=" +
    qp_end +
    "&exdate=" +
    $date_start;
  "&session=" + $session_chck;
}