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 : 52.14.255.122
function CallenableAdmissionAppList() {
$("#page_main_div").load("../html_modules/admissionapplist.html", function() {
document.getElementById("display_module_name").innerHTML =
" Admission Approve List ";
document.getElementById("module_name_for_save").value =
"Admission Approve List";
gsl_no = 0;
getDefaultHeadFooterLinks("Admission Approve List");
loadSelectDropdownList();
});
}
function loadSelectDropdownList() {
$.ajax({
type: "POST",
url: $host_url + "GetAllSelectDropdown",
success: responceLoadSelectDropdownList
});
}
function responceLoadSelectDropdownList($responce) {
$responce = eval("(" + $responce + ")");
document.getElementById("appcollege").options.length = 0;
var $lobj_Option = document.createElement("OPTION");
if ($responce.data.length > 1) {
$lobj_Option.value = "All";
$lobj_Option.text = "All";
document.getElementById("appcollege").options[0] = $lobj_Option;
} else {
$lobj_Option.value = "";
$lobj_Option.text = "Select College";
document.getElementById("appcollege").options[0] = $lobj_Option;
}
for ($i = 0; $i < $responce.data.length; $i++) {
$op = new Option(
$responce.data[$i]["value"],
$responce.data[$i]["internal_code"]
);
$op.id = $responce.data[$i]["internal_code"]; //specifying the id for options
document.getElementById("appcollege").options.add($op);
}
}
function loadCollegeDegree(collcode) {
if (trim(collcode) != "") {
$.ajax({
type: "POST",
data: "&collcode=" + collcode,
url: $host_url + "GetCollegeDegreeDropdown",
success: responceGetCollegeDegreeDropdown
});
}
}
function responceGetCollegeDegreeDropdown($responce) {
$responce = eval("(" + $responce + ")");
document.getElementById("appdegree").options.length = 0;
var $lobj_Option = document.createElement("OPTION");
$lobj_Option.value = "All";
$lobj_Option.text = "All";
document.getElementById("appdegree").options[0] = $lobj_Option;
for ($i = 0; $i < $responce.data.length; $i++) {
$op = new Option(
$responce.data[$i]["value"],
$responce.data[$i]["internal_code"]
);
$op.id = $responce.data[$i]["internal_code"]; //specifying the id for options
document.getElementById("appdegree").options.add($op);
}
}
function loadCollegeDegreeComb(degcode) {
$.ajax({
type: "POST",
//async:false,
url: $host_url + "getCombinationNames",
data: "°ree=" + encodeURIComponent(trim(degcode)),
success: function($responce) {
$responce = eval("(" + $responce + ")");
if ($responce.error_code == 0) {
document.getElementById("degcomb").options.length = 0;
var $lobj_Option = document.createElement("OPTION");
$lobj_Option.value = "All";
$lobj_Option.text = "All";
document.getElementById("degcomb").options[0] = $lobj_Option;
for ($i = 0; $i < $responce.data.length; $i++) {
$op = new Option(
$responce.data[$i]["value"],
$responce.data[$i]["internal_code"]
);
$op.id = $responce.data[$i]["internal_code"]; //specifying the id for options
document.getElementById("degcomb").options.add($op);
}
} else {
document.getElementById("degcomb").options.length = 0;
var $lobj_Option = document.createElement("OPTION");
$lobj_Option.value = "All";
$lobj_Option.text = "All";
document.getElementById("degcomb").options[0] = $lobj_Option;
}
}
});
}
function GenerateAdmissionappListReport() {
college = $("#appcollege").val();
degree = $("#appdegree").val();
combination = $("#degcomb").val();
appstatus = $("#appr_status").val();
window.location.href =
$host_url +
"GenerateAdmissionAppList&college=" +
college +
"°ree=" +
degree +
"&combination=" +
combination +
"&appstatus=" +
appstatus;
}
|