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.135.186.233
// var $host_url =
// "http://" +
// window.location.host +
// "/" +
// window.location.pathname.split("/")[1] +
// "/app.php?a=";
var $host_url1 =
"http://" +
window.location.host +
"/" +
window.location.pathname.split("/")[1] +
"/";
var deg;
var gAppNo;
var fappno = "";
var ffappno = "";
var photo_path = "";
var months = "";
function homeLink() {
var r = confirm("Do You Want To Logout!");
if (r == true) {
window.location.href = "index.html";
} else {
}
}
// function login1() {
// $.ajax({
// type: "POST",
// async: true,
// url: "../pgetadm/login.php",
// success: isLoggedInResponce
// });
// function isLoggedInResponce($responce) {
// $responce = eval("(" + $responce + ")");
// if ($responce.error_code == 1) {
// alert("User not logged in");
// window.location.href = "pgindex.html";
// }
// }
// }
var combcode = [];
var combsubject = [];
var optdegarry = [];
function loadSeatAllot() {
$.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("dudseatallot.html", function() {
var deg = data;
let options = "";
options += `<option value="">--Select--</option>`;
deg.map((el, i) => {
options += `<option value="${deg[i]["fdegree"]}">${
deg[i]["fdegree"]
} - ${deg[i]["fdescpn"]}</options>`;
});
$("#degcode").html(options);
});
} else {
alert(data);
return;
}
}
});
}
function loadChangea() {
// console.log('hi')
var afrom = $("#afrom").val();
if (afrom == 0) {
$("#ato").val("ZZZZZZZZZZ");
} else {
// console.log(afrom)
$("#ato").val(afrom);
}
}
function loadChanged() {
// console.log('hi')
var dfrom = $("#dfrom").val();
if (dfrom == 0) {
$("#dto").val("ZZZZZ");
} else {
// console.log(afrom)
$("#dto").val(dfrom);
}
}
function loadAppDetailsView() {
var dfrom = $("#dfrom").val();
var dto = $("#dto").val();
var afrom = $("#afrom").val();
var ato = $("#ato").val();
// if (dfrom == "0") {
// alert("Fill Degree Range");
// return;
// }
// if (dto == "ZZZZ") {
// alert("Fill Degree Range");
// return;
// }
// if (afrom == "0") {
// alert("Fill Application Range");
// return;
// }
// if (ato == "ZZZZ") {
// alert("Fill Application Range");
// return;
// }
$("#next").show();
var datastring =
"&dfrom=" + dfrom + "&dto=" + dto + "&afrom=" + afrom + "&ato=" + ato;
$.blockUI({ message: "<img src='../img/Loading_icon.gif' border='0'>" });
$.ajax({
type: "POST",
url: $host_url + "loadAppDetailsView",
data: datastring,
success: function(response) {
$.unblockUI();
var { error_code, data, status } = JSON.parse(response);
// console.log(data);
var app = data;
var str = `<table class="table table-bordered" style="height: 200px;">
<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;">Applied Date</th>
<th style = "text-align: center;">Degree Applied</th>
<th style = "text-align: center;">Student Name</th>
<th style = "text-align: center;">Caste</th>
<th style = "text-align: center;">Entry Mode</th>
<th style = "text-align: center;">HK / NHK</th>
<th style = "text-align: center;">Amount</th>
<th style = "text-align: center;">Action</th>
</tr>
</thead>
<tbody>`;
for (var i = 0; i < app.length; i++) {
str += `<tr>
<td style = 'text-align: center;'>${i + 1}</td>
<td style = 'text-align: center;'>${app[i]["fappno"]}</td>
<td style = 'text-align: center;'>${app[i]["fappdate"]}</td>
<td style = 'text-align: left;'>${app[i]["degree"]}</td>
<td style = 'text-align: left;'>${
app[i]["fname"]
}</td>
<td style = 'text-align: center;'>${app[i]["fcategory"]}</td>
<td style = 'text-align: center;'>${app[i]["fenttype"]}</td>
<td style = 'text-align: center;'>${app[i]["fhk"]}</td>
<td style = 'text-align: center;'>${app[i]["ftotfee"]}</td>
<td style = 'text-align: center;'><button class="btn-info"
style="padding-right: 8px;padding-left: 8px;padding-top: 2px;padding-bottom: 2px;"
onclick="loadPersonalDetails('${app[i]["fappno"]}','${
app[i]["fname"]
}','${app[i]["usertype"]}','${app[i]["fenttype"]}')">View</button></td>
</tr>`;
}
$("#appdet").html(str);
}
});
}
function studentback() {
$("#next").show();
$("#add").show();
$("#perdetl").hide();
$("#application").hide();
$("#apphead").hide();
$("#basicDet").hide();
$("#prevAcadDetCard").hide();
$("#submitButton").hide();
$("#optdeg_det").hide();
$("#upload_doc_det").hide();
$("#FeeDet").hide();
$("#perdetl").hide();
}
function loadPersonalDetails(fappno, fname, usrtype, studtype) {
$("#application").show();
$("#application").load("../dud/ent-application.html", function() {
// login1();
$("#next").hide();
$("#add").hide();
$("#apphead").show();
$("#submitButton").show();
$("#success_card").hide();
$("#basicDet").show();
$("#prevAcadDetCard").show();
$("#optdeg_det").show();
$("#upload_doc_det").show();
$("#FeeDet").hide();
$("#perdetl").show();
$("#fbcuetype").hide();
$("#idChangePhoto").hide();
$("#vfd").attr("checked", false);
var cnd = true;
if (usrtype == "adm") cnd = false;
$("#idPerDet input[type=text],#idPerDet select").each(function() {
$(this).attr("disabled", cnd);
});
$("#hprevAcadDet input[type=text],#hprevAcadDet select").each(function() {
$(this).attr("disabled", cnd);
});
$(
"#basicDet input[type=radio], #basicDet input[type=checkbox], #fgender input[type=radio]"
).each(function() {
$(this).attr("disabled", cnd);
});
// console.log(fappno,fname);
var datastring = "&fappno=" + fappno + "&fname=" + fname;
$.blockUI({ message: "<img src='../img/Loading_icon.gif' border='0'>" });
$.ajax({
type: "POST",
data: datastring,
url: $host_url + "getFacultyDegreeView",
success: response => {
$.unblockUI();
var { error_code, data, status } = JSON.parse(response);
// console.log(data);
if (error_code == 0) {
var fmobileno = data.fmobileno;
combcode = data.combcode;
combsubject = data.combsubs;
// console.log(combcode,combsubject);
$("#fmobileno").val(fmobileno);
$("#fmobileno").prop("disabled", "disabled");
var options;
deg = data.degree;
options += `<option value="">--Select--</option>`;
deg.map((el, i) => {
options += `<option value="${deg[i]["int_code"]}">${
deg[i]["int_code"]
} - ${deg[i]["val"]}</options>`;
});
$("#fdegree").html(options);
// var options = "";
// lanres = data.lanres;
// options += `<option value="">--Select--</option>`;
// lanres.map((el, i) => {
// options += `<option value="${lanres[i]["int_code"]}">${
// lanres[i]["val"]
// }</options>`;
// });
// $("#flang1").html(options);
// $("#flang2").html(options);
lanres = data.lanres;
lansub = data.lanres;
// options += `<option value="">--Select--</option>`;
// lanres.map((el, i) => {
// options += `<option value="${lanres[i]["int_code"]}">${
// lanres[i]["val"]
// }</options>`;
// });
// $("#flang1").html(options);
// $("#flang2").html(options);
loadlansubjects();
// loadsemtotmarks();
var options = "";
// prefdocvrfloc = data.prefdocvrfloc;
// options += `<option value="">--Select--</option>`;
// prefdocvrfloc.map((el, i) => {
// options += `<option value="${prefdocvrfloc[i]["fcollcode"]}">${
// prefdocvrfloc[i]["fcollname"]
// }</options>`;
// });
// $("#fdocloc").html(options);
var year = "";
var d = new Date();
var n = d.getFullYear();
for (var j = n; j > 1980; j--) {
year += "<option value='" + j + "'>" + j + "</option>";
}
$("#fqyear").append(year);
$("#fpgyear").append(year);
var monthNames = [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
];
var months = monthNames
.map(month => {
return "<option>" + month + "</option>";
})
.join("");
$("#fqmonth").html(months);
$("#fpgmonth").html(months);
$.ajax({
type: "GET",
async: false,
url: $host_url + "getCategory",
success: response => {
var { error_code, data, status } = JSON.parse(response);
// console.log(data);
var options;
if (error_code == 0) {
cat = data.category;
options += `<option value="">--Select--</option>`;
cat.map((el, i) => {
options += `<option value="${cat[i]["fcategory"]}">${
cat[i]["fcategory"]
}</options>`;
});
}
if (error_code == -1) {
options += `<option>---Select---</option>
<option value="">No Category Found</option>`;
}
$("#fcategory").html(options);
}
});
// console.log(fappno);
if (fappno != "") loadSavedData(fappno);
loadotdeg(fappno);
console.log(fappno);
$("#uploaddetdet input,#uploaddetdet button").each(function() {
$(this).attr("disabled", "true");
});
// fappno = fappno;
// console.log(fappno);
}
if (error_code == -1) {
alert("Something went wrong, Please Try after sometime.");
}
}
});
});
// console.log(statusandremarks);
}
function loadotdeg(fappno) {
var degcode = $("#fdegree").val();
console.log(fappno);
var combcode = $("#fcombcode").val();
$.ajax({
type: "POST",
url: $host_url + "loadotdeg",
data: "fappno=" + fappno + "°code=" + degcode + "&combcode=" + combcode,
success: response => {
var { error_code, data, status } = JSON.parse(response);
// console.log(data);
var { msg } = data;
if (error_code === -1) {
swal({
title: data.msg,
html: true,
showCancelButton: false,
confirmButtonColor: "#5495ff",
confirmButtonText: "OK",
closeOnConfirm: false
});
} else {
var optdeg = data.optdeg;
optdegarry = data.optdeg;
var optdegtable = `<table class='table table-bordered table-upd' id="optdet" style="margin: 20px;">
<thead>
<tr class="bg-cyan">
<th style="width :8%">Sl. No.</th>
<th style="width : 40%;">Degree Name</th>
<th style="width : 5%;">Select</th>
</tr>
</thead>
<tbody>`;
var i = 1;
optdeg.forEach(element => {
optdegtable += `<tr>
<td style="text-align: center;">${i}</td>
<td style="text-align: left;" id="doc_upload_1" >${element.fdescpn}
<input type = 'hidden' value = '${element.fdegree}' id = 'h_optdeg_${i}' >
</td>
<td><input type = 'checkbox' ${element.sddeg} value = '${element.fdegree}' id = 'deg_${i}' name = 'deg_${i}' disabled />
<label for="deg_${i}" style="font-size:10px !important;"></label>
</td>`;
// if(element.sddeg == '0')
// {
// optdegtable += `<td><input type = 'checkbox' ${element.sddeg} value = '${element.fdegree}' id = 'deg_${i}'>
// <label for="deg_${i}" style="font-size:10px !important;"></label>
// </td>`;
// }else
// {
// optdegtable += `<td><input type = 'checkbox' value = '${element.fdegree}' checked id = 'deg_${i}'>
// <label for="deg_${i}" style="font-size:10px !important;"></label></td>`;
// }
optdegtable += `</tr>`;
i++;
});
optdegtable += `</tbody></table>`;
$("#optdeg").html(optdegtable);
}
}
});
}
const adminSavePGAdmDet = finsub => {
var errorcount = savepgApplication();
var ackvfd = $("#vfd").is(":checked");
if (finsub == "T" && errorcount > 0) {
swal({
title: `Fill All the missing fields. Missing fields are highlighted in red color.`,
html: true,
showCancelButton: false,
confirmButtonColor: "#5495ff",
confirmButtonText: "OK",
closeOnConfirm: false
});
return;
}
ackvfd = "T";
// console.log(ffappno);
fappno = fappno;
$.blockUI({ message: "<img src='../img/Loading_icon.gif' border='0'>" });
$.ajax({
type: "POST",
url: $host_url + "admpgsaveApplication",
data:
"fappno=" +
fappno +
"&final=" +
finsub +
"&feestr=" +
JSON.stringify(feestr) +
"&data=" +
JSON.stringify(jsonObj) +
"&privackd=" +
JSON.stringify(privackd) +
"&lansub=" +
JSON.stringify(lansub) +
"&privsub=" +
JSON.stringify(privsub) +
"&finaloptdeg=" +
JSON.stringify(finaloptdeg),
success: response => {
$.unblockUI();
var { error_code, data, status } = JSON.parse(response);
// console.log(data)
var { message } = data;
if (error_code === -1) {
swal({
title: data.message,
html: true,
showCancelButton: false,
confirmButtonColor: "#5495ff",
confirmButtonText: "OK",
closeOnConfirm: false
});
} else {
var { app_no } = data;
gAppNo = app_no;
$("#next").show();
$("#add").show();
$("#perdetl").hide();
$("#application").hide();
$("#apphead").hide();
$("#basicDet").hide();
$("#prevAcadDetCard").hide();
$("#submitButton").hide();
$("#optdeg_det").hide();
$("#upload_doc_det").hide();
$("#FeeDet").hide();
$("#perdetl").hide();
swal({
title: `Updated successfully.`,
html: true,
showCancelButton: false,
confirmButtonColor: "#5495ff",
confirmButtonText: "OK",
closeOnConfirm: false
});
}
}
});
};
function loadRcubAppView() {
var dfrom = $("#dfrom").val();
var dto = $("#dto").val();
var afrom = $("#afrom").val();
var ato = $("#ato").val();
var status = $("#status").val();
$("#next").show();
var datastring =
"&dfrom=" +
dfrom +
"&dto=" +
dto +
"&afrom=" +
afrom +
"&ato=" +
ato +
"&status=" +
status;
$.blockUI({ message: "<img src='../img/Loading_icon.gif' border='0'>" });
$.ajax({
type: "POST",
url: $host_url + "loadRcubAppView",
data: datastring,
success: function(response) {
$.unblockUI();
var { error_code, data, status } = JSON.parse(response);
// console.log(data);
var app = data;
if (error_code != "-1") {
var str = `<table class="table table-bordered" style="height: 200px;">
<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;">Degree</th>
<th style = "text-align: center;">Student <br>Name</th>
<th style = "text-align: center;">Tot. Max <br>Marks</th>
<th style = "text-align: center;">Tot. Sec. <br>Marks</th>
<th style = "text-align: center;">Tot. Perc.</th>
<th style = "text-align: center;">Opt. Max. <br>Marks</th>
<th style = "text-align: center;">Opt. Sec. <br>Marks</th>
<th style = "text-align: center;">Opt. Perc.</th>
<th style = "text-align: center;">Status</th>
<th style = "text-align: center;">Merit Type</th>
<th style = "text-align: center;">Remarks</th>
<th style = "text-align: center;">Print</th>
<th style = "text-align: center;">Action</th>
</tr>
</thead>
<tbody>`;
for (var i = 0; i < app.length; i++) {
var cnd = "";
var cnd1 = "";
var cnd2 = "";
if (app[i]["fstatus"] == "Approved") {
cnd = "";
cnd1 = "selected";
cnd2 = "";
} else if (app[i]["fstatus"] == "Rejected") {
cnd = "";
cnd1 = "";
cnd2 = "selected";
} else {
cnd = "selected";
cnd1 = "";
cnd2 = "";
}
str += `<tr>
<td style = 'text-align: center;'>${i + 1}</td>
<td style = 'text-align: center;'>${app[i]["fappno"]}</td>
<td style = 'text-align: center;'>${app[i]["fdegree"]}</td>
<td style = 'text-align: left;'>${app[i]["fname"]}<br>
Cat.:${app[i]["fcategory"]}<br>
MOB:${app[i]["fmobileno"]}
</td>
<td style = 'text-align: center;'><input type = 'text' style = 'width: 50px;' onchange = "getappercent('${i}')" value = '${
app[i]["ftotmax"]
}' id = 'totmax_${i}'></td>
<td style = 'text-align: center;'><input type = 'text' style = 'width: 50px;' onchange = "getappercent('${i}')" value = '${
app[i]["ftotsec"]
}' id = 'totsec_${i}'></td>
<td style = 'text-align: center;'><input type = 'text' style = 'width: 50px;' disabled value = '${
app[i]["ftotper"]
}' id = 'totper_${i}'></td>
<td style = 'text-align: center;'><input type = 'text' style = 'width: 50px;' onchange = "getappercent('${i}')" value = '${
app[i]["foptmax"]
}' id = 'optmax_${i}'></td>
<td style = 'text-align: center;'><input type = 'text' style = 'width: 50px;' onchange = "getappercent('${i}')" value = '${
app[i]["foptsec"]
}' id = 'optsec_${i}'></td>
<td style = 'text-align: center;'><input type = 'text' style = 'width: 50px;' disabled value = '${
app[i]["foptper"]
}' id = 'optper_${i}'></td>
<td style = 'text-align: center;'>
<select class="form-control" id="status_${i}">
<option ${cnd} value="">-Select-</option>
<option ${cnd1} value="Approved" >Approved</option>
<option ${cnd2} value="Rejected">Rejected</option>
</select>
</td>
<td style = 'text-align: center;'>
<select class="form-control" id="fmerit_${i}">
<option value="">-Select-</option>
<option value="RC">RCU Student</option>
<option value="AT">RCU Student (Autonomous College)</option>
<option value="KN">Other University Students (Within Karnataka)</option>
<option value="NK">Other University Students (Outside Karnataka)</option>
</select>
</td>
<td style = 'text-align: center;'><input type = 'text' style = 'width: 75px;'
value = '${app[i]["fremarks"]}' id = 'remarks_${i}'></td>
<td style = 'text-align: center;'><button class="btn-info"
style="padding-right: 8px;padding-left: 8px;padding-top: 2px;padding-bottom: 2px;"
onclick="printapp('${app[i]["fappno"]}','${
app[i]["fdegree"]
}')">Print</button></td>
<td style = 'text-align: center;'><button class="btn-info"
style="padding-right: 8px;padding-left: 8px;padding-top: 2px;padding-bottom: 2px;"
onclick="saveappprevdet('${app[i]["fappno"]}','${
app[i]["fdegree"]
}','${i}')">Save</button></td>
</tr>`;
}
$("#appdet").html(str);
for (var i = 0; i < app.length; i++) {
$("#fmerit_" + i).val(app[i]["fmerittype"]);
}
} else {
alert(data);
$("#appdet").html("");
return;
}
}
});
}
function loadrcubApplicationView() {
$("#loadTab").load("applicationview.html", function() {});
}
function saveappprevdet(appno, degree, row) {
var totmax = $("#totmax_" + row).val();
var totsec = $("#totsec_" + row).val();
var optmax = $("#optmax_" + row).val();
var optsec = $("#optsec_" + row).val();
var totper = $("#totper_" + row).val();
var optper = $("#optper_" + row).val();
var status = $("#status_" + row).val();
var remarks = $("#remarks_" + row).val();
var fmerit = $("#fmerit_" + row).val();
if (status == "") {
alert("Please Select Status");
$("#status_" + row).focus();
return;
}
if (status == "Rejected") {
if (remarks == "") {
alert("Please Enter Remarks");
return;
}
}
$.blockUI({ message: "<img src='../img/Loading_icon.gif' border='0'>" });
$.ajax({
type: "POST",
url: $host_url + "saveappprevdet",
data:
"fappno=" +
appno +
"°ree=" +
degree +
"&totmax=" +
totmax +
"&totsec=" +
totsec +
"&optmax=" +
optmax +
"&optsec=" +
optsec +
"&totper=" +
totper +
"&optper=" +
optper +
"&status=" +
status +
"&remarks=" +
remarks +
"&fmerit=" +
fmerit,
success: response => {
$.unblockUI();
var { error_code, data, status } = JSON.parse(response);
// console.log(data)
var { message } = data;
if (error_code == "-1") {
swal({
title: data,
html: true,
showCancelButton: false,
confirmButtonColor: "#5495ff",
confirmButtonText: "OK",
closeOnConfirm: false
});
} else {
swal({
title: `Updated successfully.`,
html: true,
showCancelButton: false,
confirmButtonColor: "#5495ff",
confirmButtonText: "OK",
closeOnConfirm: false
});
}
}
});
}
function getappercent(row) {
var totmax = $("#totmax_" + row).val();
var totsec = $("#totsec_" + row).val();
var optmax = $("#optmax_" + row).val();
var optsec = $("#optsec_" + row).val();
var totper = 0;
var optper = 0;
if (totmax != "" && totsec != "") {
totper = (totsec / totmax) * 100;
$("#totper_" + row).val(totper);
}
if (optmax != "" && optsec != "") {
optper = (optsec / optmax) * 100;
$("#optper_" + row).val(optper);
}
}
function printapp(appno, degree) {
window.open(
"http://universitysolutions.in/pget/app.php?db=rcub&a=applicationFormPGReport&appno=" +
appno +
"°ree=" +
degree
);
}
function loadSeatAllotSingal()
{
$("#loadTab").load("dudseatallotsingal.html", function() {
});
}
function loadDudStuddet()
{
let regno = $('#regno').val();
if(regno == '')
{
alert("Please Enter Reg. No.");
document.getElementById('regno').focus();
return;
}
$.ajax({
type: "POST",
url: $host_url + "loadDudStuddet",
async: false,
data:"regno="+$('#regno').val(),
success: function(response) {
var { error_code, data, status } = JSON.parse(response);
if (error_code == "0") {
let studdet = data.studdet;
let colldet = data.colldet;
document.getElementById('regno').disabled = true;
$('#appno').val(studdet['fappno']);
$('#name').val(studdet['fname']);
$('#catcode').val(studdet['fcategory']);
$('#unistud').val(studdet['funiv']);
$('#degree').val(studdet['degname']);
$('#hdegree').val(studdet['fdegree']);
let collopt = "<option>--Select--</option>";
for(let i =0;i<colldet.length;i++)
{
collopt +=`<option value = '${colldet[i]['fcollcode']}'>${colldet[i]['fcollname']}</option>`;
}
$('#college').html(collopt);
} else {
alert(data);
return;
}
}
});
}
function getstudfee()
{
let hdegree = $('#hdegree').val();
let seattype = $('#seattype').val();
let studfrom = $('#studfrom').val();
let catcode = $('#catcode').val();
let funiv = $('#unistud').val();
if(hdegree == '')
{
alert("Please Degree Not Selected");
document.getElementById('degree').focus();
return;
}
if(seattype == '')
{
alert("Please Merit Type");
document.getElementById('seattype').focus();
return;
}
if(studfrom == '')
{
alert("Please Student From");
document.getElementById('studfrom').focus();
return;
}
$.ajax({
type: "POST",
url: $host_url + "getstudfee",
async: false,
data:"hdegree="+hdegree+"&seattype="+seattype+"&studfrom="+studfrom+"&catcode="+catcode+"&funiv="+funiv,
success: function(response) {
var { error_code, data, status } = JSON.parse(response);
if (error_code == "0") {
let fee = data.fee;
let feeedit = data.feeedit;
$('#amount').val(fee);
$('#pamount').val(fee);
if(feeedit == 'T')
document.getElementById('pamount').disabled = false;
} else {
alert(data);
return;
}
}
});
}
function SaveDudSeatAllot()
{
let regno = $('#regno').val();
let appno = $('#appno').val();
let hdegree = $('#hdegree').val();
let seattype = $('#seattype').val();
let studfrom = $('#studfrom').val();
let catcode = $('#catcode').val();
let amount = $('#amount').val();
let pamount = $('#pamount').val();
let college = $('#college').val();
if(hdegree == '')
{
alert("Please Degree Not Selected");
document.getElementById('degree').focus();
return;
}
if(college == '')
{
alert("Please College Not Selected");
document.getElementById('college').focus();
return;
}
if(seattype == '')
{
alert("Please Merit Type");
document.getElementById('seattype').focus();
return;
}
if(studfrom == '')
{
alert("Please Student From");
document.getElementById('studfrom').focus();
return;
}
if(amount == '')
{
alert("Amount cant be zero");
document.getElementById('amount').focus();
return;
}
if(pamount == '')
{
alert("Amount cant be zero");
document.getElementById('pamount').focus();
return;
}
$.ajax({
type: "POST",
url: $host_url + "SaveDudSeatAllot",
async: false,
data:"hdegree="+hdegree+"&seattype="+seattype+"&studfrom="+studfrom+"&catcode="+catcode+"&amount="+amount+"&pamount="+pamount+"&college="+college+"®no="+regno+"&appno="+appno,
success: function(response) {
var { error_code, data, status } = JSON.parse(response);
if (error_code == "0") {
alert(data);
loadSeatAllotSingal();
} else {
alert(data);
return;
}
}
});
}
|