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.105.85
function loadhallticket() {
$.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("downloadhallticket.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>`;
}
$("#fdeptt").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 genhallticket(){
var fdeptt = $("#fdeptt").val();
var afrom = $("#afrom").val();
var ato = $("#ato").val();
window.open(
$host_url +
"reportadm_admission_ticket" +
"&fdept=" +
fdeptt +
"&afrom=" +
afrom +
"&ato=" +
ato,
"_blank"
);
}
function loadpresealallot() {
$.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("preseatallot.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>`;
}
$("#fdeptt").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 viewpresealallot()
{
var fdeptt = $("#fdeptt").val();
var fcollege = $("#fcollege").val();
if(fdeptt == '')
{
alert("Please Select Degree");
return;
}
if(fcollege == '')
{
alert("Please Select College");
return;
}
$.ajax({
type: "POST",
url: $host_url + "viewpresealallot",
async: false,
data:"&fdeptt="+fdeptt+"&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 savepresealallot(regno)
{
var catcode = $("#catcode_"+regno).val();
var quta = $("#quta_"+regno).val();
var appno = $("#appno_"+regno).html();
var fdeptt = $("#fdeptt").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 + "savepresealallot",
async: false,
data:"&appno="+appno+"&quta="+quta+"&catcode="+catcode+"&coll="+coll+"®no="+regno+"&fdeptt="+fdeptt,
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;
}
}
});
}
function getcollege() {
$.ajax({
type: "POST",
url: $host_url + "loadcollegeprovision&fcollege=" + $("#fdeptt").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;
}
},
});
}
|