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.222.108.185
var $host_url =
"https://" +
window.location.host +
"/" +
window.location.pathname.split("/")[1] +
"/app.php?a=";
function loadssp_bon() {
$("#loadtab").load(
"html_modules/uploadsspdata_bonf.html?v=" + version,
() => {
loadUnivs("univname");
loadsspbonfpush();
}
);
}
function uploadSSPdata_bonf() {
var univcode = $("#univname").val();
//var gfilename = $("#file").val();
console.log("gfilename", gfilename);
var parameters = "univcode=" + univcode + "&gfilename=" + gfilename;
$.blockUI({ message: "<img src='images/Loading_icon.gif' border='0'>" });
$.ajax({
type: "post",
url: $host_url + "uploadSSPData_bonf",
data: parameters,
success: function (response) {
$.unblockUI();
alert(response.data);
$("#file").val("");
loadsspbonfpush();
},
});
}
function uploadSSPData_bonffile() {
file_file = "file";
var file_name = $("#" + file_file).val();
var file_size = $("#" + file_file)[0].files[0].size;
var file_extn = file_name.split(".").pop();
var file_extn = file_extn.toLowerCase();
if (file_extn == "xlsx") {
} else {
alert("Only XLSX files are allowed!");
return false;
}
if (file_size >= 1000000) {
alert("Upload files with size less then 1MB!");
return false;
}
var file_data = $("#" + file_file).prop("files")[0];
var form_data = new FormData();
form_data.append("file", file_data);
$.blockUI({
message:
"<h1 class='h1' style='font-size:12px'><img src='../images/ajax-loader.gif' border='0'></h1>",
});
$.ajax({
type: "POST",
url: "upload_file.php",
data: form_data,
cache: false,
contentType: false,
processData: false,
success: function (data) {
$.unblockUI();
console.log(data);
gfilename = data;
},
error: function (data) {
alert(data);
},
});
}
function loadsspbonfpush() {
var univcode = $("#univname").val();
//var gfilename = $("#file").val();
console.log("univcode", univcode);
var parameters = "univcode=" + univcode;
$.blockUI({ message: "<img src='images/Loading_icon.gif' border='0'>" });
$.ajax({
type: "post",
url: $host_url + "loadsspbonfpush",
data: parameters,
success: function (response) {
$.unblockUI();
let html = `<table style = '100%' class="table table-bordered table-hover">
<tr class='bg-green'>
<th width='4%'><center>University Code</center></th>
<th width='20%'><center>Univerity Name</center></th>
<th width='5%'><center>Tot. stud.</center></th>
<th width='5%'><center>Push. Stud</center></th>
<th width='5%'><center>Pending Stud.</center></th>
<th width='5%'><center>One Day OTP</center></th>
<th width='5%'><center>Push</center></th>
<th width='5%'><center>Error Log</center></th>
</tr>
<tbody>
<tr>
<td><center>${response.data["University_SSP_Code"]}</center></td>
<td>${response.data["University_Name"]}</td>
<td><center>${response.data["tot"]}</center></td>
<td><center>${response.data["pushed"]}</center></td>
<td><center>${response.data["not_pushed"]}</center></td>
<td><center><input type = 'text' id = 'uniotp' value = '' placeholder = 'OTP'></center></td>
<td><center><button type="button" class="m-t-5 btn btn-success waves-effect btn-lg" onclick="pushsspbonfdata()">Push</button></center> </td>
<td><center><button type="button" class="m-t-5 btn btn-warning waves-effect btn-lg" onclick="errorsspbonfdata()">Error File</button></center> </td>
</tr>
</tbody>
</table>`;
$("#sspbonfpush").html(html);
},
});
}
function pushsspbonfdata() {
var univcode = $("#univname").val();
var uniotp = $("#uniotp").val();
if (univcode == "") {
alert("Please Select University");
return;
}
if (uniotp == "") {
alert("Please Enter OTP");
return;
}
window.open(
`https://universitysolutions.in/univadmin/app.php?a=sspdbonafideatanew&univcode=${univcode}&uniotp=${uniotp}`,
"_blank"
);
}
function errorsspbonfdata() {
alert("Hi Error");
}
function loadssp_res_data() {
$("#loadtab").load(
"html_modules/uploadsspdata_res.html?v=" + version,
() => {
loadUnivs("univname");
var univcode = $("#univname").val();
var parameters = "univcode=" + univcode;
$.blockUI({ message: "<img src='images/Loading_icon.gif' border='0'>" });
$.ajax({
type: "post",
url: $host_url + "loadsspdegcodes",
data: parameters,
success: function (response) {
$.unblockUI();
let degdata = response.data;
let degopt = `<option value = "">--Select--</option>`;
for (let i = 0; i < degdata.length; i++) {
degopt += `<option value = '${degdata[i]['fdegree']}'> ${degdata[i]['fdegree']}</option>`;
}
$("#degcode").html(degopt);
},
});
}
);
}
function viewResData() {
var univcode = $("#univname").val();
var degcode = $("#degcode").val();
var coll_frm = $("#coll_frm").val();
var coll_to = $("#coll_to").val();
var reg_frm = $("#reg_frm").val();
var reg_to = $("#reg_to").val();
var parameters = "univcode=" +univcode+
"°code=" +
degcode +
"&coll_frm=" +
coll_frm +
"&coll_to=" +
coll_to +
"®_frm=" +
reg_frm +
"®_to=" +
reg_to;
$.blockUI({ message: "<img src='images/Loading_icon.gif' border='0'>" });
$.ajax({
type: "post",
url: $host_url + "viewResData",
data: parameters,
success: function (response) {
$.unblockUI();
let html = `<table style = '100%' class="table table-bordered table-hover">
<tr class='bg-green'>
<th width='4%'><center>University Code</center></th>
<th width='20%'><center>Univerity Name</center></th>
<th width='5%'><center>Tot. stud.</center></th>
<th width='5%'><center>Push. Stud</center></th>
<th width='5%'><center>Pending Stud.</center></th>
<th width='5%'><center>One Day OTP</center></th>
<th width='5%'><center>Push</center></th>
</tr>
<tbody>
<tr>
<td><center>${response.data["University_SSP_Code"]}</center></td>
<td>${response.data["University_Name"]}</td>
<td><center>${response.data["tot"]}</center></td>
<td><center>${response.data["pushed"]}</center></td>
<td><center>${response.data["not_pushed"]}</center></td>
<td><center><input type = 'text' id = 'uniotp' value = '' placeholder = 'OTP'></center></td>
<td><center><button type="button" class="m-t-5 btn btn-success waves-effect btn-lg" onclick="pusresdate()">Push</button></center> </td>
</tr>
</tbody>
</table>`;
$("#sspbonfpush").html(html);
},
});
}
function pusresdate() {
var univcode = $("#univname").val();
var uniotp = $("#uniotp").val();
var degcode = $("#degcode").val();
var coll_frm = $("#coll_frm").val();
var coll_to = $("#coll_to").val();
var reg_frm = $("#reg_frm").val();
var reg_to = $("#reg_to").val();
if (univcode == "") {
alert("Please Select University");
return;
}
if (uniotp == "") {
alert("Please Enter OTP");
return;
}
window.open(
`https://universitysolutions.in/univadmin/app.php?a=sspdexamdataanew&univcode=${univcode}&uniotp=${uniotp}°code=${degcode}&coll_frm=${coll_frm}&coll_to=${coll_to}®_frm=${reg_frm}®_to=${reg_to}`,
"_blank"
);
}
|