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.167.85
if (location.protocol != "https:") {
var protocol = "http://";
} else {
var protocol = "https://";
}
var urlarr = window.location.pathname.split("/");
var $url = protocol + window.location.host + "/";
var $host_url1 = "";
for (var j = 1; j < urlarr.length - 1; j++) {
$host_url1 += window.location.pathname.split("/")[j] + "/";
}
$host_url = $url + $host_url1 + "app.php?a=";
function getStudDet() {
if ($("#curgno").val() == "") {
alert("Please Enter CUCET RegNo.");
$("#curgno").focus();
return;
}
if ($("#deg").val() == "") {
alert("Please Select Degree");
$("#deg").focus();
return;
}
var datastring = "curgno=" + $("#curgno").val() + "°=" + $("#deg").val();
$.ajax({
type: "POST",
async: false,
url: $host_url + "getStudDet",
data: datastring,
success: function GetCMSDropDownMenuValuesResponce(responce) {
responce = eval("(" + responce + ")");
if (responce.error_code == "-1") {
alert(responce.data);
return;
} else {
$("#loadtab").show();
$("#studname").val(responce.data["fname"]);
$("#fatname").val(responce.data["ffathname"]);
$("#motname").val(responce.data["fmothname"]);
$("#category").val(responce.data["fcatcode"]);
$("#address").val(responce.data["faddress"]);
$("#gender").val(responce.data["fgender"]);
$("#dob").val(responce.data["fdob"]);
$("#mobile").val(responce.data["fmobile"]);
$("#email").val(responce.data["femail"]);
$("#degree").val(responce.data["fdegree"]);
}
}
});
}
var gRgPerinfo;
var gFeeinfo;
function loadMasters() {
$("#personal_det").show();
$("#success_card").hide();
$("#scstate").hide();
verify = 1;
$.ajax({
type: "POST",
async: false,
url: $host_url + "getcmsdropdownmenuvalues",
success: function GetCMSDropDownMenuValuesResponce(responce) {
responce = eval("(" + responce + ")");
var serv_arr = responce.data["category"];
var serv_title = "";
FillDropdownValues(serv_arr, "category", serv_title);
var serv_arr = responce.data["degree"];
var serv_title = "";
FillDropdownValues(serv_arr, "degree", serv_title);
var serv_arr = responce.data["degree"];
var serv_title = "";
FillDropdownValues(serv_arr, "deg", serv_title);
// var serv_arr = responce.data["masschool"];
// var serv_title = "";
// FillDropdownValues(serv_arr, "school", serv_title);
// var serv_arr = responce.data["masdept"];
// var serv_title = "";
// FillDropdownValues(serv_arr, "deptcode", serv_title);
}
});
}
function loadcomb() {
var fdegree = $("#fdegree").val();
var combcode = [];
if (fdegree == "BA") {
combcode = [
{ fcombcode: "HEP", fcombdesc: "History Economics Pol.Science" },
{ fcombcode: "HEK", fcombdesc: "History Economics Kannada" },
{ fcombcode: "HES", fcombdesc: "History Economics Sociology" },
{ fcombcode: "HPE", fcombdesc: "History Pol.Science English" },
{ fcombcode: "HPS", fcombdesc: "History Pol.Science Sociology" },
{ fcombcode: "HTK", fcombdesc: "History Drama Kannada" },
{ fcombcode: "JPS", fcombdesc: "Journalism Pol.Science Sociology" }
];
} else if (fdegree == "BCOM") {
combcode = [
{ fcombcode: "GEN", fcombdesc: "GENERAL" },
{ fcombcode: "COM", fcombdesc: "COMPUTERS" }
];
} else if (fdegree == "BSC") {
combcode = [
{ fcombcode: "PCM", fcombdesc: "Physics Chemistry Mathematics" },
{ fcombcode: "PMCs", fcombdesc: "Physics Chemistry Comp.Science" },
{ fcombcode: "PME", fcombdesc: "Physics Mathematics Electronics" },
{ fcombcode: "CBZ", fcombdesc: "Chemistry Botany Zoology" }
];
} else if (fdegree == "MCOM") {
combcode = [{ fcombcode: "GEN", fcombdesc: "GENERAL" }];
}
var option = "<option value=''>-Select-</option>";
combcode.forEach(element => {
option +=
"<option value='" +
element.fcombcode +
"'>" +
element.fcombdesc +
"</option>";
});
$("#fcombcode").html(option);
}
function homeLink() {
var r = confirm(
"Do you want to go to homepage!!!. The entered values will be cleared."
);
if (r == true) {
window.location.href = "index.html";
} else {
}
}
function showregno() {
var fyear = $("#fyear").val();
$("#regdiv").hide();
if (fyear == "A") {
$("#regdiv").show();
} else {
$("#regdiv").hide();
}
}
var gsum = 0;
var gSubarray;
function getFeeDetail() {
var fdegree = $("#fdegree").val();
var fcatcode = $("#fcatcode").val();
var fyear = $("#fyear").val();
var fgender = $("#fgender").val();
var fitdip = "F";
var foutstud = "F";
if (document.getElementById("fitdip").checked == true) fitdip = "T";
if (document.getElementById("foutstud").checked == true) foutstud = "T";
if (document.getElementById("fit").checked == true) fit = "T";
// if (document.getElementById("fsuppass").checked == true) {
// $("#ffine").val("750");
// } else {
// $("#ffine").val("750");
// }
if (fdegree == "" || fcatcode == "" || fyear == "" || fgender == "") {
return;
}
var datastring =
"&fdegree=" +
fdegree +
"&fcatcode=" +
fcatcode +
"&fyear=" +
fyear +
"&fgender=" +
fgender +
"&foutstud=" +
foutstud +
"&fitdip=" +
fitdip +
"&fit=" +
fit;
$.blockUI({ message: "<img src='img/Loading_icon.gif' border='0'>" });
var amount = 0;
$host_url = "https://studentportal.universitysolutions.in/kusdde/app.php?a=";
$.ajax({
type: "POST",
data: datastring,
url: $host_url + "getFeeDetail",
success: function getFeeDetailResponce(responce) {
responce = eval("(" + responce + ")");
$.unblockUI();
if (responce.error_code == "-1") {
alert(responce.data);
$("#ffee").val(amount);
return;
} else {
amount = responce.data.fee;
$("#ffee").val(amount);
return;
}
}
});
}
function validateApplication() {
console.log("inside submit");
var errcount = 0;
jsonObj = [];
feeObj = [];
//validate and read values of text and select boxes
$("#body input[type=text],#body select").each(function() {
if (
$(this).val() == "" &&
($(this).attr("id") != "adhar" && $(this).attr("id") != "landline")
) {
$(this)
.closest(".form-group")
.find(".fieldError")
.addClass("hasError");
errcount++;
} else {
$(this)
.closest(".form-group")
.find(".fieldError")
.removeClass("hasError");
item = {};
item["id"] = $(this).attr("id");
item["value"] = $(this)
.val()
.toUpperCase();
jsonObj.push(item);
}
});
gRgPerinfo = JSON.stringify(jsonObj);
return errcount;
}
var gAppNo;
var gSum;
function saveApplication() {
//let error = validateApplication();
var fdegree = $("#fdegree").val();
var fcatcode = $("#fcatcode").val();
var fyear = $("#fyear").val();
var fgender = $("#fgender").val();
var fname = $("#fname").val();
var ffee = $("#ffee").val();
var fcombcode = $("#fcombcode").val();
var fregno = $("#fregno").val();
var ffatname = $("#ffatname").val();
var fitdip = "F";
var foutstud = "F";
var fit = "F";
var fsuppass = "F";
if (document.getElementById("fitdip").checked == true) fitdip = "T";
if (document.getElementById("foutstud").checked == true) foutstud = "T";
if (document.getElementById("fit").checked == true) fit = "T";
if (document.getElementById("fsuppass").checked == true) fsuppass = "T";
if (fdegree == "") {
alert("Please Select Degree");
$("#fdegree").focus();
return;
} else if (fcombcode == "") {
alert("Please Select Combination");
$("#fcombcode").focus();
return;
} else if (fcatcode == "") {
alert("Please Select Category");
$("#fcatcode").focus();
return;
} else if (fyear == "") {
alert("Please Select Year");
$("#fyear").focus();
return;
} else if (fgender == "") {
alert("Please Select Gender");
$("#fgender").focus();
return;
} else if (fname == "") {
alert("Please Enter Name");
$("#fname").focus();
return;
} else if (ffee == "0") {
alert("Fee Cant Be Zero");
$("#ffee").focus();
return;
} else if (ffatname == "") {
alert("Please Enter Father Name");
$("#ffathname").focus();
return;
} else if (fregno == "") {
alert("Please Enter Apllication / Register No.");
$("#fregno").focus();
return;
}
if (fyear != "A") {
}
var datastring =
"&fdegree=" +
fdegree +
"&fcatcode=" +
fcatcode +
"&fyear=" +
fyear +
"&fgender=" +
fgender +
"&fcombcode=" +
fcombcode +
"&fname=" +
fname +
"&fregno=" +
fregno +
"&ffee=" +
ffee +
"&ffatname=" +
ffatname +
"&fitdip=" +
fitdip +
"&foutstud=" +
foutstud +
"&fit=" +
fit +
"&fsuppass=" +
fsuppass;
$.blockUI({ message: "<img src='img/Loading_icon.gif' border='0'>" });
$host_url = "https://studentportal.universitysolutions.in/kusdde/app.php?a=";
$.ajax({
type: "POST",
data: datastring,
url: $host_url + "savephdApplication",
success: function(responce) {
$.unblockUI();
var { error_code, data } = JSON.parse(responce);
var { message } = data;
if (error_code === -1) {
$("#challanBtn").hide();
$("#paytmBtn").hide();
} else {
var { app_no } = data;
$("#makepayment").show();
$("#fappno").val(app_no);
$("#dapp_no1").append(app_no);
gAppNo = app_no;
}
$("#app_msg").append(message);
$("#cuid").hide();
$("#loadtab").hide();
$("#success_card").show();
}
});
}
function FillDropdownValues(arr, ele_name, def_title) {
document.getElementById(ele_name).options.length = 0;
if (ele_name == "S4") {
var op1 = new Option(" All " + def_title, "all");
op1.id = "00";
op1.selected = "selected";
document.getElementById(ele_name).options.add(op1);
}
var option = "<option value=''>--Select--</option>";
for (let value of arr) {
option +=
"<option value='" + value.int_code + "'>" + value.val + "</option>";
}
$("#" + ele_name).append(option);
}
function acceptNumbersOnlyForModule(evt) {
var charCode;
if (window.event) charCode = window.event.keyCode;
//if IE
else charCode = evt.which; //if firefox
if (charCode > 31 && (charCode < 48 || charCode > 57)) return false;
return true;
}
function charKeydown(evt) {
var charCode;
if (window.event) charCode = window.event.keyCode;
//for IE
else charCode = evt.which; //for firefox
if (charCode == 32)
//for <space> symbol
return true;
if (charCode > 31 && charCode < 65)
//for characters before 'A' in ASCII Table
return false;
if (charCode > 90 && charCode < 97)
//for characters between 'Z' and 'a' in ASCII Table
return false;
if (charCode > 122)
//for characters beyond 'z' in ASCII Table
return false;
return true;
}
function autoFilladd() {
if ($("#basic_checkbox_1").is(":checked")) {
$("#cadd1").val($("#padd1").val());
$("#cadd2").val($("#padd2").val());
$("#cadd3").val($("#padd3").val());
$("#cdistrict").val($("#pdistrict").val());
$("#cpincode").val($("#ppincode").val());
$("#cstate").val($("#pstate").val());
} else {
$("#cadd1").val("");
$("#cadd2").val("");
$("#cadd3").val("");
$("#cdistrict").val("");
$("#cpincode").val("");
$("#cstate").val("");
}
}
function makePayment() {
if (location.protocol != "https:") {
var protocol = "http://";
} else {
var protocol = "https://";
}
var appno = $("#fappno").val();
var urlarr = window.location.pathname.split("/");
var $url = protocol + window.location.host + "/";
var $host_url1 = "";
for (var j = 1; j < urlarr.length - 1; j++) {
$host_url1 += window.location.pathname.split("/")[j] + "/";
}
$host_url = $url + $host_url1 + "app.php?a=";
window.location.href = $host_url + "printapplicationfrom&app_no=" + appno;
}
function getreprint() {
if (location.protocol != "https:") {
var protocol = "http://";
} else {
var protocol = "https://";
}
var appno = $("#rappno").val();
if (appno == "") {
alert("Please Enter Application No.");
$("#rappno").focus();
return;
}
var urlarr = window.location.pathname.split("/");
var $url = protocol + window.location.host + "/";
var $host_url1 = "";
for (var j = 1; j < urlarr.length - 1; j++) {
$host_url1 += window.location.pathname.split("/")[j] + "/";
}
$host_url = $url + $host_url1 + "app.php?a=";
window.location.href = $host_url + "printapplicationfrom&app_no=" + appno;
}
function PrintApplicationFormpaytmNETBANKING(pAppNo) {
$host_url = "https://cuk.ac.in/convocation4_wait/app.php?&a=";
window.location.href = $host_url + "PrintApplicationFormSBM&app_no=" + pAppNo;
}
function getFeeDetailsMth() {
var passmth = $("#pyear").val();
passmth = passmth.split("-");
var year = passmth[1];
var date = new Date();
var curyear = date.getFullYear();
var x = parseInt(curyear) - parseInt(year);
$("#sum").val(parseInt(gsum) + 1000 * x);
//$('#sum').val(sum);
}
|