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.220.227.250
function CallEnableTeacherReport() {
$("#page_main_div").load("../html_modules/teacher_report.html", function() {
document.getElementById("display_module_name").innerHTML =
"Teachers Report";
document.getElementById("module_name_for_save").value = "Teachers Report";
getDefaultHeadFooterLinks("Teachers Report");
//AssignTeachReportDropDownMenus();
});
}
function AssignTeachReportDropDownMenus() {
$.ajax({
type: "POST",
url: $host_url + "AssignTeachDropDownMenus",
data: "id=",
success: AssignTeachReportDropDownMenusRepsonce
});
}
function AssignTeachReportDropDownMenusRepsonce($responce) {
$responce = eval("(" + $responce + ")");
document.getElementById("from_dept").options.length = 0;
document.getElementById("to_dept").options.length = 0;
document.getElementById("from_des").options.length = 0;
document.getElementById("to_des").options.length = 0;
var dept = $responce.data["dept"];
var des = $responce.data["des"];
$op = new Option("Select", "0");
$op.id = "0";
document.getElementById("from_dept").options.add($op);
$op = new Option("Select", "0");
$op.id = "0";
document.getElementById("to_dept").options.add($op);
$op = new Option("Select", "0");
$op.id = "0";
document.getElementById("from_des").options.add($op);
$op = new Option("Select", "0");
$op.id = "0";
document.getElementById("to_des").options.add($op);
for ($i = 0; $i < dept.length; $i++) {
$op = new Option(dept[$i]["value"], dept[$i]["code"]);
$op.id = dept[$i]["code"];
document.getElementById("from_dept").options.add($op);
}
for ($i = 0; $i < dept.length; $i++) {
$op = new Option(dept[$i]["value"], dept[$i]["code"]);
$op.id = dept[$i]["code"];
document.getElementById("to_dept").options.add($op);
}
for ($i = 0; $i < des.length; $i++) {
$op = new Option(des[$i]["value"], des[$i]["code"]);
$op.id = des[$i]["code"];
document.getElementById("from_des").options.add($op);
}
for ($i = 0; $i < des.length; $i++) {
$op = new Option(des[$i]["value"], des[$i]["code"]);
$op.id = des[$i]["code"];
document.getElementById("to_des").options.add($op);
}
}
function GenerateTeacherReport() {
var from_teach = $("#from_teach").val();
var to_teach = $("#to_teach").val();
var str = "&from_teach=" + from_teach + "&to_teach=" + to_teach;
window.location.href = $host_url + "GenerateTeacherReport" + str;
}
|