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.13.15
function preseatallot2() {
$.ajax({
type: "POST",
url: $host_url + "loadRange",
async: false,
success: function (response) {
// console.log(response);
var { error_code, data, status } = JSON.parse(response);
console.log(data);
if (error_code == "0") {
$("#loadTab").load("preseatallot2.html", function () {
var degrees = data;
var dept_opt = `<option value="">--Select--</option>`;
for (let deg of degrees) {
dept_opt += `<option value="${deg.fdegree}">${deg.fdescpn}</option>`;
}
$("#fdepttt").html(dept_opt);
});
// var date = getDate();
// console.log(date);
// document.getElementById('dtfrom').value = date;
// document.getElementById('dtto').value = date;
// $('#dtfrom').val(date);
// $('#dtto').val(date);
} else {
alert("Please try after some time");
return;
}
},
});
}
function getcollege2() {
$.ajax({
type: "POST",
url: $host_url + "loadcollegeprovision&fcollege=" + $("#fdepttt").val(),
async: false,
success: function (response) {
// console.log(response);
var { error_code, data, status } = JSON.parse(response);
console.log(data);
if (error_code == "0") {
var degrees = data;
var fcoll_opt = "<option value=''>--Select--</option>";
for (let deg of degrees) {
fcoll_opt += `<option value="${deg.fcollcode}">${
deg.fcollcode + " - " + deg.fcollname
}</option>`;
}
$("#fcollege").html(fcoll_opt);
} else {
alert("Please try after some time");
return;
}
},
});
}
function viewpresealallot2() {
var fdepttt = $("#fdepttt").val();
var fcollege = $("#fcollege").val();
if (fdepttt == "") {
alert("Please Select Degree");
return;
}
if (fcollege == "") {
alert("Please Select College");
return;
}
$.ajax({
type: "POST",
url: $host_url + "viewpresealallot2",
async: false,
data: "&fdepttt=" + fdepttt + "&collcode=" + fcollege,
success: function (response) {
// console.log(response);
var { error_code, data, status } = JSON.parse(response);
if (error_code == "0") {
$("#appdet").html(data.html);
let studdet = data.studdata;
console.log(studdet);
console.log(studdet.length);
for (let i = 0; i < studdet.length; i++) {
if (studdet[i]["fallotcoll"] != null) {
$("#catcode_" + studdet[i]["fregno"]).val(
studdet[i]["fallotcatcode"]
);
$("#quta_" + studdet[i]["fregno"]).val(studdet[i]["fallotquota"]);
}
}
} else {
alert(data.msg);
return;
}
},
});
}
function savepresealallot2(regno) {
var catcode = $("#catcode_" + regno).val();
var quta = $("#quta_" + regno).val();
var appno = $("#appno_" + regno).html();
var fdepttt = $("#fdepttt").val();
var coll = $("#fcollege").val();
if (catcode != "" || quta != "") {
if (catcode == "") {
alert("Please Select Catgory");
document.getElementById;
return;
}
if (quta == "") {
alert("Please Select Quota");
document.getElementById;
return;
}
}
if (coll == "") {
alert("Please Select College");
document.getElementById;
return;
}
$.ajax({
type: "POST",
url: $host_url + "savepresealallot2",
async: false,
data:
"&appno=" +
appno +
"&quta=" +
quta +
"&catcode=" +
catcode +
"&coll=" +
coll +
"®no=" +
regno +
"&fdepttt=" +
fdepttt,
success: function (response) {
// console.log(response);
var { error_code, data, status } = JSON.parse(response);
if (error_code == "0") {
alert(data);
} else {
alert("Please try after some time");
return;
}
},
});
}
|