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.221.114.102
Current Path : /var/www/html/pget/js/pg/ |
| Current File : //var/www/html/pget/js/pg/seat-allotment.js |
// var $host_url =
// "http://" +
// window.location.host +
// "/" +
// window.location.pathname.split("/")[1] +
// "/app.php?a=";
function loadSeatAllotment() {
$.ajax({
type: "POST",
async: false,
url: $host_url + "getSeatAllotDet",
success: response => {
var { error_code, data, status } = JSON.parse(response);
console.log(data);
if (error_code == 0) {
$("#loadTab").load("seat-allotment.html", function() {
var seat = data.seat;
var html = `<table class="table table-bordered">
<tbody>
<tr>
<th> Round </th><td>${
seat.fallotround == "0" ? "Mock" : seat.fallotround
} Round</td>
</tr>
<tr>
<th> App. No. </th><td>${seat.fappno}</td>
</tr>
<tr>
<th> Rank </th><td>${seat.frank}</td>
</tr>
<tr>
<th> Alloted Degree </th><td>${seat.fdegree} - ${
seat.fdescpn
}</td>
</tr>
<tr>
<th> Alloted College </th><td>${seat.fcollcode} - ${
seat.fcollname
}</td>
</tr>
<tr>
<th> Alloted Category </th><td>${seat.fcatcode}</td>
</tr>
<tr>
<th> Alloted Quota </th><td>${seat.freserve}</td>
</tr>
<tr>
<th> Allotment No. </th><td>${seat.fallotno}</td>
</tr>
</tbody>
</table>
`;
$("#seatAllot").html(html);
});
} else {
swal({
title: data.msg,
html: true,
showCancelButton: false,
warning: true,
confirmButtonColor: "#5495ff",
confirmButtonText: "OK",
closeOnConfirm: false
});
}
}
});
}
function printAdmissionOrder() {
// $.blockUI({ message: "<img src='img/Loading_icon.gif' border='0'>" });
$.ajax({
type: "POST",
async: false,
url: $host_url + "pgPrintAdmissionOrder",
success: function(responce) {
// $.unblockUI();
responce = eval("(" + responce + ")");
if (responce.error_code == 0) {
var gAppNo = responce.fappno;
//var ffinsub = responce.ffinsub;
var fpaystatus = responce.fpaystatus;
// if (fpaystatus != "success") {
// alert("Payment not made.");
// return;
// }
printadmodr(gAppNo);
} else {
alert("Application Not found or Session Expired.");
}
}
});
}
function printadmodr(gAppNo) {
console.log(gAppNo);
window.location.href = $host_url + "admissionorderPGReport&appno=" + gAppNo;
}
|