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.145.2.6
function callroomallotmantsummary() {
$("#page_main_div").load(
"html_modules/roomallotmantsummary.html",
function() {
document.getElementById("display_module_name").innerHTML =
"Room Allotment Summary";
document.getElementById("module_name_for_save").value =
"Room Allotment Summary";
getDefaultHeadFooterLinks("Room Allotment Summary");
getBatchdet();
}
);
//$('#module_details_div').hide();
}
function getBatchdet() {
$.ajax({
type: "POST",
url: $host_url + "getBatchdet",
data: "id=",
success: getBatchdetSuccess
});
}
function getBatchdetSuccess($responce) {
$responce = eval("(" + $responce + ")");
var batch = $responce.data["batchdet"];
console.log(batch);
var batchoptins = `<option value = ''>-Select-</option>`;
for ($i = 0; $i < batch.length; $i++) {
batchoptins += `<option value = '${batch[$i]["fbatch"]}'>${
batch[$i]["fdescpn"]
}</option>`;
}
console.log(batchoptins);
$("#fbatch").html(batchoptins);
}
function Generateroomallotmantsummary() {
if (date_format($("#frm_date").val()) == "") {
alert("Enter Date");
$("#frm_date").focus();
return false;
}
if (date_format($("#session").val()) == "") {
alert("Enter Date");
$("#session").focus();
return false;
}
var datastring =
"&frm_date=" +
trim($("#frm_date").val()) +
"&session=" +
trim($("#session").val()) +
"&fbatch=" +
$("#fbatch").val();
window.location.href =
$host_url + "Generateroomallotmantsummary" + datastring;
}
|