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.223.209.114
// 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 provisionalsellist() {
$.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("provisinalsellist.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 getcollegeprovision() {
$.ajax({
type: "POST",
url: $host_url + "loadcollegeprovision&fcollege=" + $("#fdept").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 genrateprovisionlist() {
var fdept = $("#fdept").val();
var fcollege = $("#fcollege").val();
var fround = $("#fround").val();
// console.log(fround);
// return;
window.open(
$host_url +
"provisionsellistReport" +
"&fdept=" +
fdept +
"&fcollege=" +
fcollege +
"&fround=" +
fround,
"_blank"
);
}
|