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.194.225
// 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 loadadmorder_ru() {
$.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("admorder_ru.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);
});
} else {
alert("Degree Deatils Not found");
return;
}
},
});
}
function viewstuddetadmissionorder() {
$.ajax({
type: "POST",
url:
$host_url +
"viewstuddetadmissionorder&fdegree=" +
$("#fdeptt").val() +
"&fpaytype=" +
$("#fpaytype").val(),
async: false,
success: function (response) {
// console.log(response);
var { error_code, data, status } = JSON.parse(response);
console.log(data);
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"]);
}
}
var $demoMaskedInput = $(".daterange");
//Date
$demoMaskedInput
.find(".date")
.inputmask("dd/mm/yyyy", { placeholder: "__/__/____" });
} else {
alert("Please try after some time");
return;
}
},
});
}
function printadorder_ru(appno) {
window.open(
$host_url + "admorder_bnu" + "&fappno=" + appno,
"_blank"
);
}
function printchallan(appno) {
window.open(
$host_url + "PrintApplicationFormBankChallan" + "&app_no=" + appno,
"_blank"
);
}
function saveadmorder(appno) {
var payid = $("#payid_" + appno).val();
var paydate = $("#paydate_" + appno).val();
if (payid == "") {
alert("Please Select Payment ID");
document.getElementById;
return;
}
if (paydate == "") {
alert("Please Select Payment date");
document.getElementById;
return;
}
$.ajax({
type: "POST",
url: $host_url + "saveadmorder",
async: false,
data: "&payid=" + payid + "&paydate=" + paydate + "&appno=" + appno,
success: function (response) {
// console.log(response);
var { error_code, data, status } = JSON.parse(response);
// console.log(data);
if (error_code == "0") {
alert(data);
} else {
alert("Please try after some time");
return;
}
},
});
}
|