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.189.170.65
function Calllateralentry() {
$("#page_main_div").load("html_modules/lateralentry.html", function() {
document.getElementById("display_module_name").innerHTML =
"BCU Lateral Entry";
document.getElementById("module_name_for_save").value = "BCU Lateral Entry";
getDefaultHeadFooterLinks("BCU Lateral Entry");
});
}
function getstuddet() {
var regno = $("#regno").val();
if (regno == "") {
alert("Enter the Register No.");
$("#regno").val("");
return;
}
var datastring = "®no=" + regno;
$.ajax({
type: "POST",
data: datastring,
url: $host_url + "getstuddet",
success: function(responce) {
responce = eval("(" + responce + ")");
if (responce.error_code == 0) {
var table = `<table class="payment" width = "60%" cellspacing="0" border = "1" cellpadding="5" style = "margin:1% auto;">`;
table += `<tr>
<td width = "12%;" style = "text-align: left;">
<b>Student Name</b>
</td>
<td width = "12%;" style = "text-align: left;">
${responce.data["fname"]}
</td>
</tr>
<tr>
<td width = "12%;" style = "text-align: left;">
<b>Degree</b>
</td>
<td width = "12%;" style = "text-align: left;">
${responce.data["fdescpn"]}
</td>
</tr>
<tr>
<td width = "12%;" style = "text-align: left;">
<b>Old College Name</b>
</td>
<td width = "12%;" style = "text-align: left;">
${responce.data["collname"]}
</td>
</tr>
<tr>
<td width = "12%;" style = "text-align: left;">
<b>Fee Collected</b>
</td>
<td width = "12%;" style = "text-align: left;">
<input type = 'text' id = 'fee' placeholder="Lateral Entry Fee">
<input type = 'hidden' id = 'fcollcode' value = '${
responce.data["fcollcode"]
}'>
<input type = 'hidden' id = 'fdegree' value = '${
responce.data["fdegree"]
}'>
</td>
</tr>
<tr>
<td width = "12%;" style = "text-align: left;">
<b>Fee Details</b>
</td>
<td width = "12%;" style = "text-align: left;">
<textarea style="width : 100%" id = 'remarks' name = 'Remarks' > </textarea>
</td>
</tr>
<tr >
<td width = "12%;" style = "text-align: left;" colspan = '2'>
<span class="raval_submit_td" style = "float:right">
<span
style="cursor: pointer; color:#35721F;line-height: 19px;font-size:14px;font-weight:bold;"
onclick="savestuddet()"
>Save</span
>
</span>
</td>
</tr>
</table>`;
$("#bankdet").show();
$("#bankdet").html(table);
return;
} else if (responce.error_code == -2) {
alert(responce.data);
return;
} else {
alert("Login again and enter");
return;
}
}
});
}
function savestuddet() {
var regno = $("#regno").val();
var fee = $("#fee").val();
var remarks = $("#remarks").val();
var fcollcode = $("#fcollcode").val();
var fdegree = $("#fdegree").val();
if (regno == "") {
alert("Enter the Register No.");
$("#regno").val("");
return;
}
if (fee == "") {
alert("Enter the Fee Collected Details");
$("#fee").val("");
return;
}
var datastring =
"®no=" +
regno +
"&fee=" +
fee +
"&remarks=" +
remarks +
"°ree=" +
fdegree +
"&oldcollcode=" +
fcollcode;
$.ajax({
type: "POST",
data: datastring,
url: $host_url + "savestuddet",
success: function(responce) {
responce = eval("(" + responce + ")");
if (responce.error_code == 0) {
alert(responce.data);
$("#bankdet").html("");
$("#bankdet").hide();
$("#regno").val("");
$("#regno").focus();
return;
} else if (responce.error_code == -2) {
alert(responce.data);
return;
} else {
alert(responce.data);
return;
}
}
});
}
function GenerateLatReprt() {
console.log("qwerty");
window.location.href = $host_url + "GenerateLatReport";
}
function GenerateLatReprtStud() {
// window.location.href = $host_url + "GenerateLatReport";
var regno = $("#regno").val();
if (regno == "") {
alert("Enter the Register No.");
$("#regno").val("");
return;
}
window.location.href = $host_url + "reportStudLatStudwise&fregno=" + regno;
}
|