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 : 52.15.190.187
// var $host_url =
// "http://" +
// window.location.host +
// "/" +
// window.location.pathname.split("/")[1] +
// "/app.php?a=";
var $photo_url =
"http://" +
window.location.host +
"/" +
window.location.pathname.split("/")[1];
$(function () {
var focusedElement;
$(document).on("focus", "input", function () {
if (focusedElement == this) return;
focusedElement = this;
setTimeout(function () {
focusedElement.select();
}, 100);
});
});
function loadReports() {
$.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("reports.html", function () {
var degrees = data;
var dept_opt = "";
for (let deg of degrees) {
dept_opt += `<option value="${deg.fdegree}">${deg.fdescpn}</option>`;
}
$("#fdept").html(dept_opt);
});
} else {
alert("Degree Deatils Not found");
return;
}
},
});
}
function loadSeatAllotmentReportAnnounce() {
$.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("seat-report-announce.html", function () {
var degrees = data;
var dept_opt = "";
for (let deg of degrees) {
dept_opt += `<option value="${deg.fdegree}">${deg.fdescpn}</option>`;
}
$("#fdept").html(dept_opt);
});
} else {
alert("Please try after some time");
return;
}
},
});
}
function seatAllotReportAnnounce() {
var fdept = $("#fdept").val();
var fround = $("#fround").val();
window.open(
$host_url +
"Degreewise_SeatAllotedList_final" +
"&fdept=" +
fdept +
"&fround=" +
fround,
"_blank"
);
}
function loadSeatAllotmentReportDegreeWise() {
$.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("seat-report-degree.html", function () {
var degrees = data;
var dept_opt = "";
for (let deg of degrees) {
dept_opt += `<option value="${deg.fdegree}">${deg.fdescpn}</option>`;
}
$("#fdept").html(dept_opt);
});
} else {
alert("Please try after some time");
return;
}
},
});
}
function seatAllotReportDegree() {
var fdept = $("#fdept").val();
var fround = $("#fround").val();
window.open(
$host_url +
"Degreewise_SeatAllotedList" +
"&fdept=" +
fdept +
"&fround=" +
fround,
"_blank"
);
}
function loadAdmissionList() {
$.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("admission-list.html", function () {
var degrees = data;
var dept_opt = "";
for (let deg of degrees) {
dept_opt += `<option value="${deg.fdegree}">${deg.fdescpn}</option>`;
}
$("#fdept").html(dept_opt);
});
} else {
alert("Please try after some time");
return;
}
},
});
}
function goAdmListView() {
var fdept = $("#fdept").val();
var datastring = "&fdept=" + fdept;
$.blockUI({ message: "<img src='../img/Loading_icon.gif' border='0'>" });
$.ajax({
type: "POST",
url: $host_url + "getAdmListView",
data: datastring,
success: function (response) {
$.unblockUI();
var { error_code, data, status } = JSON.parse(response);
// console.log(data);
$("#admList").show();
var app = data;
if (error_code == -1) {
alert(data.msg);
}
var str = `<table class="table table-bordered table-hover"
style="height: 200px; width: 170% !important; max-width: 200% !important; ">
<thead >
<tr class="bg-cyan">
<th style = "text-align: center;">Sl. No.</th>
<th style = "text-align: center;">Application No.</th>
<th style = "text-align: center;">Student Name</th>
<th style = "text-align: center;">Mobileno</th>
<th style = "text-align: center;">Caste</th>
<th style = "text-align: center;">HK / NHK</th>
<th style = "text-align: center; width: 20% !important">College</th>
<th style = "text-align: center;">Rank</th>
<th style = "text-align: center;">Round</th>
<th style = "text-align: center;">Amount</th>
<th style = "text-align: center;">Payment Status</th>
<th style = "text-align: center;">Choice</th>
<th style = "text-align: center;">Seat Status</th>
</tr>
</thead>
<tbody>`;
let i = 0;
for (let el of app) {
str += `<tr>
<td style = 'text-align: center;'>${i + 1}</td>
<td style = 'text-align: center;'>${el.fappno}</td>
<td style = 'text-align: left;'>${
el.fname
}</td>
<td style = 'text-align: center;'>${el.fmobileno}</td>
<td style = 'text-align: center;'>${el.fcategory_ver}</td>
<td style = 'text-align: center;'>${el.fhk_ver}</td>
<td style = 'text-align: left; width: 20% !important'>${
el.fcollname
}</td>
<td style = 'text-align: center;'>${el.frank}</td>
<td style = 'text-align: center;'>${el.fallotround}</td>
<td style = 'text-align: center;'>${el.fadmfee}</td>
<td style = 'text-align: center;'>${el.fpaymentstatus}</td>
<td style = 'text-align: center;'>${el.fchoice}</td>
<td style = 'text-align: center;'>${el.fseatstatus}</td>
</tr>`;
i++;
}
$("#appdet").html(str);
// $(".sticky-header").floatThead({top:200});
},
});
}
function loadSeatAllotmentReportCollegeWise() {
$.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("seat-report-college.html", function () {
var degrees = data;
var dept_opt = "";
for (let deg of degrees) {
dept_opt += `<option value="${deg.fdegree}">${deg.fdescpn}</option>`;
}
$("#fdept").html(dept_opt);
});
} else {
alert("Please try after some time");
return;
}
},
});
}
function changeColl() {
// console.log('hi')
var cfrom = $("#collfrom").val();
if (cfrom == 0) {
$("#collto").val("ZZZZZ");
} else {
// console.log(afrom)
$("#collto").val(cfrom);
}
}
function seatAllotReportCollege() {
var fdept = $("#fdept").val();
var fround = $("#fround").val();
var collfrom = $("#collfrom").val();
var collto = $("#collto").val();
window.open(
$host_url +
"Collegewise_SeatAllotedList" +
"&fdept=" +
fdept +
"&fround=" +
fround +
"&collfrom=" +
collfrom +
"&collto=" +
collto,
"_blank"
);
}
function getDate() {
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth() + 1; //January is 0!
var yyyy = today.getFullYear();
if (dd < 10) {
dd = "0" + dd;
}
if (mm < 10) {
mm = "0" + mm;
}
var today = dd + "/" + mm + "/" + yyyy;
return today;
}
function loadreportdet() {
var reporttype = $("#freports").val();
var dtfrom = $("#dtfrom").val();
var dtto = $("#dtto").val();
var fdept = $("#fdept").val();
if (reporttype == "applicationlist") {
console.log(dtfrom, dtto);
window.open(
$host_url +
"ApplicationReport" +
"&fdept=" +
fdept +
"&dtfrom=" +
dtfrom +
"&dtto=" +
dtto,
"_blank"
);
} else if (reporttype == "applicationfeereport") {
window.open(
$host_url +
"Applicationfeereport" +
"&fdept=" +
fdept +
"&dtfrom=" +
dtfrom +
"&dtto=" +
dtto,
"_blank"
);
} else if (reporttype == "applicationfeesummary") {
window.open(
$host_url +
"ApplicationFeeSum" +
"&fdept=" +
fdept +
"&dtfrom=" +
dtfrom +
"&dtto=" +
dtto,
"_blank"
);
} else if (reporttype == "getAdmissionList") {
window.open(
$host_url +
"getreportAdmList" +
"&fdept=" +
fdept +
"&dtfrom=" +
dtfrom +
"&dtto=" +
dtto,
"_blank"
);
} else if (reporttype == "seatallotmentsummary") {
window.open(
$host_url +
"seat_allotment_summary" +
"&fdept=" +
fdept +
"&dtfrom=" +
dtfrom +
"&dtto=" +
dtto,
"_blank"
);
} else if (reporttype == "seatAllotdegreewise") {
window.open(
$host_url + "Degreewise_SeatAllotedList" + "&fdept=" + fdept,
"_blank"
);
} else if (reporttype == "seatAllotdegreewiseall") {
window.open(
$host_url + "Degreewise_SeatAllotedList_all" + "&fdept=" + fdept,
"_blank"
);
} else if (reporttype == "seatAllotCollegwise") {
window.open(
$host_url + "Collegewise_SeatAllotedList" + "&fdept=" + fdept,
"_blank"
);
} else if (reporttype == "getAdmissionFeeSummary") {
window.open($host_url + "getAdmissionFeeSummary", "_blank");
}
}
function reporttypechange() {
// console.log('change');
if (
$("#freports").val() == "seatAllotCollegwise" ||
$("#freports").val() == "seatAllotdegreewise" ||
$("#freports").val() == "seatAllotdegreewiseall"
) {
// console.log('if');
$("#alootround").show();
$("#daterangerpt").hide();
} else {
$("#alootround").hide();
$("#daterangerpt").show();
}
}
function loadMeritList() {
$("#loadTab").load("merit_list.html", function () {});
}
function genarateMeritList() {
var fdegfrom = $("#afrom").val();
var fdegto = $("#ato").val();
window.open(
$host_url + "MeritList&fdegfrom=" + fdegfrom + "&fdegto=" + fdegto,
"_blank"
);
}
|