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
Apache
: 172.26.7.228 | : 3.145.45.223
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
gcg /
adm /
js /
[ HOME SHELL ]
Name
Size
Permission
Action
MainPage.js
58.89
KB
-rwxr-xr-x
MainPage_03082019.js
50.68
KB
-rwxr-xr-x
Registrationpage.js
1.8
KB
-rwxr-xr-x
admin.js
15.25
KB
-rwxr-xr-x
advanced-form-elements.js
5.41
KB
-rwxr-xr-x
appForm.js
13.62
KB
-rwxr-xr-x
appStatus.js
4.09
KB
-rwxr-xr-x
control.js
18.43
KB
-rwxr-xr-x
demo.js
3.33
KB
-rwxr-xr-x
form_submit.js
1.3
KB
-rwxr-xr-x
helpers.js
576
B
-rwxr-xr-x
kusPhdAdm.js
13.07
KB
-rw-r--r--
login.js
1.06
KB
-rwxr-xr-x
printCor.js
0
B
-rwxr-xr-x
script.js
3
B
-rwxr-xr-x
validate.js
9.29
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : MainPage.js
var verify = 0; var $host_url1 = "http://" + window.location.host + "/" + window.location.pathname.split("/")[1] + "/" + window.location.pathname.split("/")[2] + "/"; var $host_url = "http://" + window.location.host + "/" + window.location.pathname.split("/")[1] + "/" + window.location.pathname.split("/")[2] + "/app.php?a="; 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="; //var $host_url="http://"+window.location.host+"/"+window.location.pathname.split('/')[1]+"/app.php?a="; var gSublen = ""; var garry = []; 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; } var ftotsub = 0; function getStudDet() { if ($("#regno").val() == "") { alert("Please Enter Reg. No."); $("#regno").focus(); return; } var datastring = "regno=" + $("#regno").val(); $.ajax({ type: "POST", async: false, url: $host_url + "getStudDet", data: datastring, success: function getStudDetResponce(responce) { responce = eval("(" + responce + ")"); if (responce.error_code == "-1") { alert(responce.data); return; } else { $("#loadtab").show(); $("#studname").val(responce.data.data["fname"]); $("#fatname").val(responce.data.data["ffatname"]); $("#degree").val(responce.data.data["fdescpn"]); $("#fexamname").val(responce.data.data["fexamname"]); $("#category").val(responce.data.data["fcaste"]); $("#amount").val(responce.data.data["ffee"]); $("#vregno").val(responce.data.data["fregno"]); $("#acno").val(responce.data.data["facountno"]); $("#ifsc").val(responce.data.data["fifsccode"]); $("#aadhar").val(responce.data.data["faadharno"]); $("#fcaste").val(responce.data.data["FSUBCASTE"]); $("#fmob").val(responce.data.data["fmob"]); $("#fmotname").val(responce.data.data["fmotname"]); var z = 1; var combopt = `<option value = "">-Select Subject-</option>`; for (var i = 0; i < responce.data.combdata.length; i++) { combopt += `<option value = "${responce.data.combdata[i]["fcombcode"]}">${ responce.data.combdata[i]["fcombdesc"] }</option>`; } $('#fcombcode').html(combopt); $("#fcombcode").val(responce.data.data["fcombcode"]); gSublen = responce.data.sub.length; ftotsub = responce.data.ftotsub; $("#subdet").html(responce.data.subdiv); let madsub = responce.data['madsub']; madsub.forEach(element => { let sub = element.subcode.split(","); let fsubtype = element.fsubtype; let sublen = sub.length; let z =0; for(let i =1;i<=element.ftotsub;i++) { if(z < sublen) { let newsub = sub[z].split("-"); $(`#${fsubtype}${i}`).val(newsub[0]); if(newsub[1] == 'T') document.getElementById(`${fsubtype}${i}`).disabled = true; }else { } z++; } }); // if (responce.data.sub.length > 0) { // var str = `<div class='row' style = 'padding:30px;'> // <p><b>Select Subjects</b></p> // <center><div class=' col-md-offset-2 col-md-8'> // <table id='feeMainTable' class='table table-striped table-condensed table-bordered'> // <thead> // <tr class='bg-cyan'> // <th style = 'width:8%;'><center>Sl. No.</center></th> // <th style = 'width:70%;'><center>Subject Name</center></th> // </tr> // </thead> // <tbody>`; // var z = 1; // var option = `<option value = "">-Select Subject-</option>`; // for (var i = 0; i < responce.data.sub.length; i++) { // option += `<option value = "${responce.data.sub[i]["fsubcode"]}">${ // responce.data.sub[i]["fsubname"] // }</option>`; // } // var x = responce.data.ftotsub - 1; // var y = responce.data.ftotsub - 2; // if (responce.data.fexamno == "C") { // var option1 = `<option value = "">-Select Subject-</option>`; // for (var i = 0; i < responce.data.secsub.length; i++) { // option1 += `<option value = "${ // responce.data.secsub[i]["fsubcode"] // }">${responce.data.secsub[i]["fsubname"]}</option>`; // } // for (var i = 0; i < responce.data.ftotsub; i++) { // if (i == x) { // str += `<tr> // <td> // ${z} // </td> // <td> // <select style = "width: 100%;" id = "subcode_${i}" onchange = "checkdata('${i}')">${option1}</select> // </td> // </tr>`; // } else { // str += `<tr> // <td> // ${z} // </td> // <td> // <select style = "width: 100%;" id = "subcode_${i}" onchange = "checkdata('${i}')">${option}</select> // </td> // </tr>`; // } // z++; // } // } else { // var option1 = `<option value = "">-Select Subject-</option>`; // for (var i = 0; i < responce.data.secsub.length; i++) { // option1 += `<option value = "${ // responce.data.secsub[i]["fsubcode"] // }">${responce.data.secsub[i]["fsubname"]}</option>`; // } // var option2 = `<option value = "">-Select Subject-</option>`; // for (var i = 0; i < responce.data.gesub.length; i++) { // option2 += `<option value = "${ // responce.data.gesub[i]["fsubcode"] // }">${responce.data.gesub[i]["fsubname"]}</option>`; // } // for (var i = 0; i < responce.data.ftotsub; i++) { // if (i == x) { // str += `<tr> // <td> // ${z} // </td> // <td> // <select style = "width: 100%;" id = "subcode_${i}" onchange = "checkdata('${i}')">${option1}</select> // </td> // </tr>`; // } else if (i == y && responce.data.data.fdegree != "BSC2") { // str += `<tr> // <td> // ${z} // </td> // <td> // <select style = "width: 100%;" id = "subcode_${i}" onchange = "checkdata('${i}')">${option2}</select> // </td> // </tr>`; // } else { // str += `<tr> // <td> // ${z} // </td> // <td> // <select style = "width: 100%;" id = "subcode_${i}" onchange = "checkdata('${i}')">${option}</select> // </td> // </tr>`; // } // z++; // } // } // str += `</tbody></table></div><center></div>`; // $("#subdet").html(str); // for (var i = 0; i < responce.data.ftotsub; i++) { // $(`#subcode_${i}`).val(responce.data.sub[i]["oldsubcode"]); // } // } } } }); } function checkdata(id) { var value = $(`#subcode_${id}`).val(); if (garry.indexOf(value) >= 0) { alert("Same Subject can't be taken"); $(`#subcode_${id}`).val(""); return; } else { garry.push(value); } } function loadMasters() { $("#subject_det").hide(); $("#fee_det").hide(); $("#personal_det").show(); $("#success_card").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); loaduploads(); } }); getRegnoDetails_give_edit(); } //global variables for re-rigistration var cat; var reg_no; var payment_type; var total_fee; var fexamno; var mand_sub = []; var opt_cnt; function getRegnoDetails_give_edit() { var page = getUrlParameter("page"); var lateral = getUrlParameter("lateral"); $("#dee").hide(); $("#passuniv").hide(); $("#lyear").hide(); if (lateral != undefined) { $("#optionsdiv").hide(); $("#mbacomb").hide(); $("#subjectdet").hide(); $("#feedetl").hide(); $("#passuniv").show(); $("#lyear").show(); $("#def").hide(); $("#dee").show(); } // console.log(lateral); if (page != undefined) { var datastring = "&page=mainpage"; $.ajax({ type: "POST", async: false, data: datastring, url: $host_url + "getRerigistrationDetails", success: function getsubjectdetResponce(responce) { responce = eval("(" + responce + ")"); $("#regno").append( '<b>Register Number</b><div class="form-group p-b-20"><div class="form-line"><input type="text" id="RegisterNumber" class="form-control" maxlength="60" style="text-transform: uppercase" disabled value=' + responce.FREGNO + ' autocomplete="off"></div></div>' ); if (responce.FNAME !== "") { $("#studname").val(responce.FNAME); $("#studname").prop("disabled", true); } if (responce.FFATNAME !== "") { $("#fatname").val(responce.FFATNAME); $("#fatname").prop("disabled", true); } if (responce.FMOTNAME !== "") { $("#motname").val(responce.FMOTNAME); $("#motname").prop("disabled", true); } if (responce.FRELIGION !== "") { $("#religion").val(responce.FRELIGION); $("#religion").prop("disabled", true); } if (responce.FCASTE !== "") { $("#category option[value='" + responce.FCASTE + "']").prop( "selected", "selected" ); } if (responce.FSUBCASTE !== "") { $("#caste").val(responce.FSUBCASTE); $("#caste").prop("disabled", true); } if (responce.FSEX !== "") { $("input[name=gender][value=" + responce.FSEX + "]").attr( "checked", "checked" ); $("input[name=gender]").prop("disabled", true); } if (responce.FHANDICAP !== "") { $("input[name=handicap][value=" + responce.FHANDICAP + "]").attr( "checked", "checked" ); $("input[name=handicap]").prop("disabled", true); } if (responce.FNATIONAL !== "") { $("input[name=nationality][value=" + responce.FNATIONAL + "]").attr( "checked", "checked" ); $("input[name=nationality]").prop("disabled", true); } if (responce.FPHOTOPATH != "") { $("#frmFileUpload").hide(); $("#studphoto").attr("src", responce.FPHOTOPATH); $("#studphoto").show(); } $("#photomsg1").hide(); $("#photomsg2").hide(); $("#signdiv").hide(); $("#signmsgdiv").hide(); photo_filename = responce.FPHOTOPATH; //sign_filename = responce.FSIGNPATH; if (responce.FDOB !== "") { $("#dob").val(responce.FDOB); $("#dob").prop("disabled", true); } if (responce.FAADHARNO !== "") { $("#adhar").val(responce.FAADHARNO); $("#adhar").prop("disabled", true); } if (responce.FPERMADD1 !== "") { $("#padd1").val(responce.FPERMADD1); $("#padd1").prop("disabled", true); } if (responce.FPERMADD2 !== "") { $("#padd2").val(responce.FPERMADD2); $("#padd2").prop("disabled", true); } if (responce.FPERMADD3 !== "") { $("#padd3").val(responce.FPERMADD3); $("#padd3").prop("disabled", true); } if (responce.FPERMDISTRICT !== "") { $("#pdistrict").val(responce.FPERMDISTRICT); $("#pdistrict").prop("disabled", true); } if (responce.FPERMADDPIN !== "") { $("#ppincode").val(responce.FPERMADDPIN); $("#ppincode").prop("disabled", true); } if (responce.FPERMSTATE !== "") { $("#pstate").val(responce.FPERMSTATE); $("#pstate").prop("disabled", true); } if (responce.FCURRADD1 !== "") { $("#cadd1").val(responce.FCURRADD1); $("#cadd1").prop("disabled", true); } if (responce.FCURRADD2 !== "") { $("#cadd2").val(responce.FCURRADD2); $("#cadd2").prop("disabled", true); } if (responce.FCURRADD3 !== "") { $("#cadd3").val(responce.FCURRADD3); $("#cadd3").prop("disabled", true); } if (responce.FCURRDISTRICT !== "") { $("#cdistrict").val(responce.FCURRDISTRICT); $("#cdistrict").prop("disabled", true); } if (responce.FCURRADDPIN !== "") { $("#cpincode").val(responce.FCURRADDPIN); $("#cpincode").prop("disabled", true); } if (responce.FCURRSTATE !== "") { $("#cstate").val(responce.FCURRSTATE); $("#cstate").prop("disabled", true); } if (responce.FCONTACT_NO !== "") { $("#mobile").val(responce.FCONTACT_NO); $("#mobile").prop("disabled", true); } if (responce.FLANDLINE !== "") { $("#landline").val(responce.FLANDLINE); $("#landline").prop("disabled", true); } if (responce.FEMAIL !== "") { $("#email").val(responce.FEMAIL); $("#email").prop("disabled", true); } if (responce.FFAT_OCC !== "") { $("#ocupation").val(responce.FFAT_OCC); $("#ocupation").prop("disabled", true); } if (responce.FINCOME !== "") { $("#income").val(responce.FINCOME); $("#income").prop("disabled", true); } if (responce.FBANKACNO !== "") { $("#accnumber").val(responce.FBANKACNO); $("#accnumber").prop("disabled", true); } if (responce.FBANKBRANCH !== "") { $("#branch").val(responce.FBANKBRANCH); $("#branch").prop("disabled", true); } if (responce.FIFSCCODE !== "") { $("#ifsc").val(responce.FIFSCCODE); $("#ifsc").prop("disabled", true); } $("#optionsdiv").hide(); $("#subjectdiv").hide(); $("#graduationdiv").hide(); $("#coursediv").addClass("col-md-offset-2"); $("#mediumdiv").removeClass("row clearfix"); var option = "<option value=" + responce.FDEGREE + " selected>" + responce.FDESCPN + "</option>"; $("#degree").append(option); //console.log(responce.FENGLISH); $.blockUI({ message: "<img src='img/Loading_icon.gif' border='0'>" }); //$.unblockUI(); $.ajax({ type: "POST", async: false, url: $host_url + "getdropdownmenuvalues", success: function getdropdownmenuvaluesResponce(responce) { $.unblockUI(); responce = eval("(" + responce + ")"); ug = responce.data["UG"]; pg = responce.data["PG"]; pgd = responce.data["PGD"]; combcode = responce.data["combcode"]; centercode = responce.data["centercode"]; fmedium = responce.data["medium"]; serv_title = ""; FillDropdownValues(centercode, "centercode", serv_title); } }); $("#centerSelection").hide(); $("#centercode option[value='" + responce.FCOLLCODE + "']").prop( "selected", "selected" ); var optional = ""; ftotsub = responce.FTOTSUB; console.log(responce.FDEGREE); if (responce.FDEGREE == "DNMB1" || responce.FDEGREE == "DNMB") { $("#mbacomb").show(); } else { var datastring = "&exam=" + responce.FEXAMNO + "°ree=" + responce.FDEGREE + "®no=" + responce.FREGNO + "&ftotsub=" + ftotsub; $.ajax({ type: "POST", data: datastring, url: $host_url + "getsubjectsforreregistration", success: function getsubjectdetResponce(responce) { responce = eval("(" + responce + ")"); $("#subdet").html(responce.data["html"]); //mand_sub = responce.data['mand_sub']; opt_cnt = responce.data["opt_cnt"]; } }); } reg_no = responce.FREGNO; cat = responce.FCASTE; fexamno = responce.FEXAMNO; degree = responce.FDEGREE; combcode = responce.FCOMBCODE; $("#optionsdiv1").hide(); $("#prev1").hide(); $("#prev2").hide(); $("#prev3").hide(); $("#prev4").hide(); $("#ceninstitut").val(responce.fcollname); $("#ceninst").css("display", "block"); } }); } } function getmbasubjects() { var mbacombcode = $("#mbacombcode").val(); $.blockUI({ message: "<img src='img/Loading_icon.gif' border='0'>" }); var datastring = "&exam=" + fexamno + "°ree=" + degree + "®no=" + reg_no + "&ftotsub=" + ftotsub + "&mbacombcode=" + mbacombcode; $.ajax({ type: "POST", data: datastring, url: $host_url + "getsubjectsforreregistration", success: function getsubjectdetResponce(responce) { responce = eval("(" + responce + ")"); $.unblockUI(); $("#subdet").html(responce.data["html"]); //mand_sub = responce.data['mand_sub']; opt_cnt = responce.data["opt_cnt"]; } }); } function getRegnoDetails() { var page = getUrlParameter("page"); if (page != undefined) { var datastring = "&page=mainpage"; $.ajax({ type: "POST", async: false, data: datastring, url: $host_url + "getRerigistrationDetails", success: function getsubjectdetResponce(responce) { $("#body :input").prop("disabled", true); $("#subcarddiv :input").prop("disabled", true); $("#fee_det .body :input").prop("disabled", true); responce = eval("(" + responce + ")"); $("#regno").append( '<b>Register Number</b><div class="form-group p-b-20"><div class="form-line"><input type="text" id="RegisterNumber" class="form-control" maxlength="60" style="text-transform: uppercase" disabled value=' + responce.FREGNO + ' autocomplete="off"></div></div>' ); reg_no = responce.FREGNO; $("#studname").val(responce.FNAME); $("#fatname").val(responce.FFATNAME); $("#religion").val(responce.FRELIGION); $("#category option[value='" + responce.FCASTE + "']").prop( "selected", "selected" ); cat = responce.FCASTE; if (responce.FSEX !== "") { $("input[name=group1][value=" + responce.FSEX + "]").attr( "checked", "checked" ); } if (responce.FHANDICAP !== "") { $("input[name=group2][value=" + responce.FHANDICAP + "]").attr( "checked", "checked" ); } if (responce.FHANDICAP !== "") { $("input[name=group3][value=" + responce.FNATIONAL + "]").attr( "checked", "checked" ); } $("#frmFileUpload").hide(); $("#studphoto").attr("src", responce.FPHOTOPATH); $("#studphoto").show(); $("#signdiv").hide(); $("#signmsgdiv").hide(); //$("#studsign").attr("src",responce.FSIGNPATH); //$("#studsign").show(); photo_filename = responce.FPHOTOPATH; sign_filename = responce.FSIGNPATH; $("#dob").val(responce.FDOB); $("#adhar").val(responce.FAADHARNO); $("#padd1").val(responce.FPERMADD1); $("#padd2").val(responce.FPERMADD2); $("#padd3").val(responce.FPERMADD3); $("#pdistrict").val(responce.FPERMDISTRICT); $("#ppincode").val(responce.FPERMADDPIN); $("#pstate").val(responce.FPERMSTATE); $("#cadd1").val(responce.FCURRADD1); $("#cadd2").val(responce.FCURRADD2); $("#cadd3").val(responce.FCURRADD3); $("#cadistrict").val(responce.FCURRDISTRICT); $("#cpincode").val(responce.FCURRADDPIN); $("#castate").val(responce.FCURRSTATE); $("#mobile").val(responce.FCONTACT_NO); $("#landline").val(responce.FLANDLINE); $("#email").val(responce.FEMAIL); $("#ocupation").val(responce.FFAT_OCC); $("#income").val(responce.FINCOME); $("#optionsdiv").hide(); $("#subjectdiv").hide(); $("#graduationdiv").hide(); $("#coursediv").addClass("col-md-offset-2"); $("#mediumdiv").removeClass("row clearfix"); var option = "<option value=" + responce.FDEGREE + " selected>" + responce.FDESCPN + "</option>"; $("#degree").append(option); $.blockUI({ message: "<img src='img/Loading_icon.gif' border='0'>" }); $.ajax({ type: "POST", async: false, url: $host_url + "getdropdownmenuvalues", success: function getdropdownmenuvaluesResponce(responce) { $.unblockUI(); responce = eval("(" + responce + ")"); ug = responce.data["UG"]; pg = responce.data["PG"]; pgd = responce.data["PGD"]; combcode = responce.data["combcode"]; centercode = responce.data["centercode"]; fmedium = responce.data["medium"]; serv_title = ""; FillDropdownValues(centercode, "centercode", serv_title); } }); $("#centerSelection").hide(); $("#cstate option[value='" + responce.FCENSTATE + "']").prop( "selected", "selected" ); $("#cdistrict option[value='" + responce.FCENDISTRICT + "']").prop( "selected", "selected" ); $("#centercode option[value='" + responce.FCOLLCODE + "']").prop( "selected", "selected" ); var optional = ""; fexamno = responce.FEXAMNO; var datastring = "&exam=" + responce.FEXAMNO + "°ree=" + responce.FDEGREE + "®no=" + responce.FREGNO; $.ajax({ type: "POST", data: datastring, url: $host_url + "getsubjectsforreregistration", success: function getsubjectdetResponce(responce) { responce = eval("(" + responce + ")"); $("#subdet").html(responce.data["html"]); //mand_sub = responce.data['mand_sub']; opt_cnt = responce.data["opt_cnt"]; } }); $("#qaldeg").val(responce.FBASICQAL); $("#qaloption").val(responce.FPREVELECTIVE); $("#qalsub").val(responce.FPREVCOMB); $("#qalreg").val(responce.FPREVREGNO); $("#qalinstitut").val(responce.FPREVCOLLEGE); degree = responce.FDEGREE; ///payment card \\\ $("#paymenttype").prop("disabled", false); var arr = responce.FPASSMTHYEAR.split("/"); jQuery.trim(arr[1]); //console.log(arr[1]); $("#qalpassmonth option[value='" + arr[0] + "']").prop( "selected", "selected" ); var option = "<option value='" + arr[1] + "' selected>" + arr[1] + "</option>"; $("#qalpassyear").append(option); } }); } } function getsubcode(obj) { var result = obj.id.substr(obj.id.lastIndexOf("_") + 1); $("#subcode_" + result).html("<center>" + obj.value + "</center>"); console.log(fdegree); /*"c67 : HRM:COUNSELING AND INTER--PERSONAL SKILLS FOR MANAGERS" stpost("C67*C68*C69" == true) if() { $('#subcode').val() $('#subcode').val() $('#subcode').val() $('#subcode').val() $('#subcode').val() $('#subcode').val() }*/ } var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.split("&"), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split("="); if (sParameterName[0] === sParam) { return sParameterName[1] === undefined ? true : sParameterName[1]; } } }; function loadPersonal() { $("#subject_det").hide(); $("#fee_det").hide(); $("#personal_det").show(); $("#success_card").hide(); verify++; } function homeLink() { var r = confirm( "Do you really want to go to homepage!!! Values will be cleared" ); if (r == true) { window.location.href = "index.html"; } else { } } var ug; var pg; var pgd; var combcode; function loadCourseStructure() { var page = getUrlParameter("page"); //console.log(page); if (page != undefined) { return; } $.blockUI({ message: "<img src='img/Loading_icon.gif' border='0'>" }); $.ajax({ type: "POST", url: $host_url + "getdropdownmenuvalues", success: function getdropdownmenuvaluesResponce(responce) { $.unblockUI(); responce = eval("(" + responce + ")"); ug = responce.data["UG"]; pg = responce.data["PG"]; pgd = responce.data["PGD"]; combcode = responce.data["combcode"]; centercode = responce.data["centercode"]; fmedium = responce.data["medium"]; serv_title = ""; FillDropdownValues(centercode, "centercode", serv_title); } }); } 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); if (ele_name == "options1") { degree = $("#degree").val(); if (degree == "BSC2" || degree == "BCOM2") { $("#options1").val("A001"); $("#options1").prop("disabled", true); } } } function getdegreedetails() { var course = $("#graduation").val(); serv_title = ""; if (course == "ug") FillDropdownValues(ug, "degree", serv_title); if (course == "pg") FillDropdownValues(pg, "degree", serv_title); if (course == "pgd") FillDropdownValues(pgd, "degree", serv_title); document.getElementById("degree").disabled = false; } function getcombinationdetails() { var degree = $("#degree").val(); $("#subdet").html(""); document.getElementById("subject").options.length = 0; for (var i = 0; i < combcode.length; i++) { if (combcode[i]["fdegree"] == degree) { var op = new Option(" -Select- ", ""); op.id = "999"; document.getElementById("subject").options.add(op); var optionarry = combcode[i]["combination"].split(","); for (var j = 0; j < optionarry.length; j++) { optionarr = optionarry[j].split("->"); var op = new Option(optionarr[1], optionarr[0]); op.id = optionarr[0]; document.getElementById("subject").options.add(op); } } document.getElementById("subject").disabled = false; } } function getoptionsdetails() { combcode_sub = $("#subject").val(); degree = $("#degree").val(); var datastring = "&combcode=" + combcode_sub + "°ree=" + degree; $.ajax({ type: "POST", data: datastring, url: $host_url + "getsubjectdet", success: function getsubjectdetResponce(responce) { responce = eval("(" + responce + ")"); var arr = responce.data["option"]; def_title = ""; FillDropdownValues(arr, "options1", def_title); FillDropdownValues(arr, "options2", def_title); } }); } 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(""); $("#cadistrict").val(""); $("#cpincode").val(""); $("#castate").val(""); } } function getsubjectdetails() { combcode_sub = $("#subject").val(); degree = $("#degree").val(); optional = $("#options1").val(); optiona2 = $("#options2").val(); $("#options2").prop("disabled", false); if (degree == "BSC2" || degree == "BCOM2") { $("#options1").val("A001"); $("#options1").prop("disabled", true); } if (optional == optiona2) { alert("Both Language Subject are same"); optional = $("#options1").val(""); optiona2 = $("#options2").val(""); return; } var datastring = "&combcode=" + combcode_sub + "°ree=" + degree + "&optional=" + optional + "&optiona2=" + optiona2; $.ajax({ type: "POST", data: datastring, url: $host_url + "getsubjectdet", success: function getsubjectdetResponce(responce) { responce = eval("(" + responce + ")"); $("#subdet").html(responce.data["html"]); var arr = responce.data["option"]; } }); } var graduation; var degree; var subject; var moi; var suboption; var cstate; var cdistrict; var centercode; var sum; function Showfeedetl() { var page = getUrlParameter("page"); var lateral = getUrlParameter("lateral"); console.log("page = " + page); var errorCount1 = 0; if (page == undefined) { errorCount1 = validateSubjectInfo(); console.log("errorCount1 = " + errorCount1); if (errorCount1 > 0) return; fexamno = "A"; } suboption = $("#options1").val(); category = $("#category").val(); gender = $('input[name="gender"]:checked').val(); var datastring = "°ree=" + degree + "&exam=" + fexamno + "&category=" + category + "&gender=" + gender; $.blockUI({ message: "<img src='img/Loading_icon.gif' border='0'>" }); $.ajax({ type: "POST", data: datastring, url: $host_url + "getfeedetl", success: function getfeedetlResponce(responce) { $.unblockUI(); responce = eval("(" + responce + ")"); arr = responce.data["payment"]; sum = responce.data["sum"]; total_fee = sum; $("#sum").val(sum); def_title = ""; FillDropdownValues(arr, "paymenttype", def_title); } }); $("#subject_det").hide(); $("#fee_det").show(); $("#personal_det").hide(); $("#success_card").hide(); var today = new Date(); if (page == undefined) { var option = "<option value=''>--Select--</option>"; for (var j = today.getFullYear(); j > 1960; j--) { option += "<option value='" + j + "'>" + j + "</option>"; } $("#qalpassyear").append(option); } } var studname; var fatname; var motname; var category; var gender = ""; var religion; var caste; var handicap = ""; var nationality = ""; var dob; var adhar; var padd1; var padd2; var padd3; var pdistrict; var ppincode; var pstate; var cadd1; var cadd2; var cadd3; var cadistrict; var cpincode; var castate; var mobile; var accnumber; var branch; var ifsc; var landline; var email; var ocupation; var income; var focusid; var percent; var maxmarks; var secmarks; function validatePersonalInfo() { var errorCount = 0; gender = $('input[name="gender"]:checked').val(); handicap = $('input[name="handicap"]:checked').val(); nationality = $('input[name="nationality"]:checked').val(); if (nationality === undefined) { $("#nationality_err").addClass("hasError"); errorCount++; } else { $("#nationality_err").removeClass("hasError"); } if (handicap === undefined) { $("#handicap_err").addClass("hasError"); errorCount++; } else { $("#handicap_err").removeClass("hasError"); } if (gender === undefined) { $("#gender_err").addClass("hasError"); errorCount++; } else { $("#gender_err").removeClass("hasError"); } if (photo_filename === undefined) { $("#photo_err").addClass("hasError"); errorCount++; } else { $("#photo_err").removeClass("hasError"); } if (sign_filename === undefined) { $("#sign_err").addClass("hasError"); errorCount++; } else { $("#sign_err").removeClass("hasError"); } fatname = $("#fatname").val(); if (fatname === "") { $("#fatname_err").addClass("hasError"); focusid = fatname; errorCount++; } else { $("#fatname_err").removeClass("hasError"); } fatname = fatname.toUpperCase(); motname = $("#motname").val(); if (motname === "") { $("#motname_err").addClass("hasError"); focusid = motname; errorCount++; } else { $("#motname_err").removeClass("hasError"); } motname = motname.toUpperCase(); category = $("#category").val(); if (category === "") { $("#category_err").addClass("hasError"); focusid = category; errorCount++; } else { $("#category_err").removeClass("hasError"); } caste = $("#caste").val(); if (caste === "") { $("#caste_err").addClass("hasError"); focusid = caste; errorCount++; } else { $("#caste_err").removeClass("hasError"); } religion = $("#religion").val(); if (religion === "") { $("#religion_err").addClass("hasError"); focusid = religion; errorCount++; } else { $("#religion_err").removeClass("hasError"); } religion = religion.toUpperCase(); dob = $("#dob").val(); if (dob === "") { $("#dob_err").addClass("hasError"); focusid = dob; errorCount++; } else { $("#dob_err").removeClass("hasError"); } //var accnumber;var branch;var ifsc; accnumber = $("#accnumber").val(); if (accnumber === "") { $("#accnumber_err").addClass("hasError"); focusid = accnumber; errorCount++; } else { $("#accnumber_err").removeClass("hasError"); } branch = $("#branch").val(); if (branch === "") { $("#branch_err").addClass("hasError"); focusid = branch; errorCount++; } else { $("#branch_err").removeClass("hasError"); } ifsc = $("#ifsc").val(); if (ifsc === "") { $("#ifsc_err").addClass("hasError"); focusid = ifsc; errorCount++; } else { $("#ifsc_err").removeClass("hasError"); } adhar = $("#adhar").val(); adhar = adhar.replace(/\s/g, ""); if (adhar === "") { $("#adhar_err").addClass("hasError"); focusid = adhar; errorCount++; } else { $("#adhar_err").removeClass("hasError"); } padd1 = $("#padd1").val(); padd2 = $("#padd2").val(); padd3 = $("#padd3").val(); pdistrict = $("#pdistrict").val(); ppincode = $("#ppincode").val(); pstate = $("#pstate").val(); if ( padd1 === "" || padd2 === "" || padd3 === "" || pdistrict === "" || ppincode === "" || pstate === "" ) { $("#padd1_err").addClass("hasError"); errorCount++; } else { $("#padd1_err").removeClass("hasError"); } cadd1 = $("#cadd1").val(); cadd2 = $("#cadd2").val(); cadd3 = $("#cadd3").val(); cadistrict = $("#cadistrict").val(); cpincode = $("#cpincode").val(); castate = $("#castate").val(); if ( cadd1 === "" || cadd2 === "" || cadd3 === "" || cadistrict === "" || cpincode === "" || castate === "" ) { //console.log("cadd1"); $("#cadd1_err").addClass("hasError"); errorCount++; } else { $("#cadd1_err").removeClass("hasError"); } mobile = $("#mobile").val(); landline = $("#landline").val(); if (mobile === "" || mobile.length < 10) { $("#mobile_err").addClass("hasError"); focusid = mobile; errorCount++; } else { $("#mobile_err").removeClass("hasError"); } email = $("#email").val(); if (email === "") { $("#email_err").addClass("hasError"); focusid = email; errorCount++; } else { var event = document.createEvent("Event"); if (!validateemail(event, email)) { $("#emailval_err").addClass("hasError"); errorCount++; } else { $("#emailval_err").removeClass("hasError"); } $("#email_err").removeClass("hasError"); } ocupation = $("#ocupation").val(); if (ocupation === "") { $("#ocupation_err").addClass("hasError"); focusid = ocupation; errorCount++; } else { $("#ocupation_err").removeClass("hasError"); } income = $("#income").val(); if (income === "") { $("#income_err").addClass("hasError"); focusid = income; errorCount++; } else { $("#income_err").removeClass("hasError"); } studname = $("#studname").val(); console.log(studname); if (studname === "") { $("#studname_err").addClass("hasError"); focusid = studname; errorCount++; } else { $("#studname_err").removeClass("hasError"); } studname = studname.toUpperCase(); return errorCount; } function validateSubjectInfo() { var errorCount = 0; var lateral = getUrlParameter("lateral"); graduation = $("#graduation").val(); if (graduation === "") { $("#graduation_err").addClass("hasError"); focusid = graduation; errorCount++; } else { $("#graduation_err").removeClass("hasError"); } degree = $("#degree").val(); if (degree === "") { $("#course_err").addClass("hasError"); focusid = degree; errorCount++; } else { $("#course_err").removeClass("hasError"); } subject = $("#subject").val(); if (subject === "") { $("#subject_err").addClass("hasError"); focusid = subject; errorCount++; } else { $("#subject_err").removeClass("hasError"); } options1 = $("#options1").val(); if (options1 === "") { $("#options_err").addClass("hasError"); focusid = options1; errorCount++; } else { $("#options_err").removeClass("hasError"); } centercode = $("#centercode").val(); if (centercode === "") { $("#counselling_err").addClass("hasError"); focusid = centercode; errorCount++; } else { $("#counselling_err").removeClass("hasError"); } return errorCount; } var personal_info; //var subde_info; function getPersonalInfo() { var errorCount = 0; jsonObj = []; $("#personal_det") .find("input:text:enabled") .each(function() { var id = $(this).attr("id"); var value = $(this).val(); if (id == "landline") { return true; } //$(this).parents(".row").find(".fieldError").addClass("hasError"); if (value == "") { //$(this).parents(".col").find(".fieldError").addClass("hasError"); $("#" + id + "_err").addClass("hasError"); errorCount++; } else { //$(this).parents(".col").find(".fieldError").removeClass("hasError"); $("#" + id + "_err").removeClass("hasError"); } item = {}; item["id"] = id; item["value"] = value.toUpperCase(); jsonObj.push(item); }); if (photo_filename === "") { $("#photo_err").addClass("hasError"); errorCount++; } else { $("#photo_err").removeClass("hasError"); item = {}; item["id"] = "photo_path"; item["value"] = photo_filename; //console.log(photo_filename); jsonObj.push(item); } var radio_names = ["gender", "handicap", "nationality"]; for (var i = 0; i < radio_names.length; i++) { value = $('input[name="' + radio_names[i] + '"]:checked').val(); item = {}; item["id"] = radio_names[i]; item["value"] = value.toUpperCase(); jsonObj.push(item); } item = {}; item["id"] = "category"; item["value"] = $("#category").val(); jsonObj.push(item); padd1 = $("#padd1").val(); padd2 = $("#padd2").val(); padd3 = $("#padd3").val(); pdistrict = $("#pdistrict").val(); ppincode = $("#ppincode").val(); pstate = $("#pstate").val(); if ( padd1 === "" || padd2 === "" || padd3 === "" || pdistrict === "" || ppincode === "" || pstate === "" ) { $("#padd1_err").addClass("hasError"); focusid = add1; errorCount++; } else { $("#padd1_err").removeClass("hasError"); } cadd1 = $("#cadd1").val(); cadd2 = $("#cadd2").val(); cadd3 = $("#cadd3").val(); cadistrict = $("#cadistrict").val(); cpincode = $("#cpincode").val(); castate = $("#castate").val(); if ( cadd1 === "" || cadd2 === "" || cadd3 === "" || cadistrict === "" || cpincode === "" || castate === "" ) { //console.log("cadd1"); $("#cadd1_err").addClass("hasError"); errorCount++; } else { $("#cadd1_err").removeClass("hasError"); } personal_info = JSON.stringify(jsonObj); return errorCount; } function Showsubdetl() { var page = getUrlParameter("page"); var lateral = getUrlParameter("lateral"); if (page == undefined && lateral == undefined) { var errorCount = validatePersonalInfo(); console.log(errorCount); if (errorCount > 0) return; $("#subject_det").show(); $("#fee_det").hide(); $("#personal_det").hide(); $("#success_card").hide(); loadCourseStructure(); } else if (page == undefined && lateral != undefined) { var errorCount = validatePersonalInfo(); //var errorCount = 0; console.log("errorCount = " + errorCount); if (errorCount > 0) return; } else { var errorCount = getPersonalInfo(); if (errorCount > 0) { alert("Fill all the required information"); return; } console.log("registrayom"); var datastring = "personal_info=" + personal_info + "®_no=" + reg_no; $.blockUI({ message: "<img src='img/Loading_icon.gif' border='0'>" }); $.ajax({ type: "POST", data: datastring, url: $host_url + "saveReRigistrationPersonal", success: function(responce) { $.unblockUI(); responce = eval("(" + responce + ")"); if (responce.error_code == 0) { $("#subject_det").show(); $("#fee_det").hide(); $("#personal_det").hide(); $("#success_card").hide(); loadCourseStructure(); } else { alert(responce.data); } } }); } } function Showperdetl() { $("#subject_det").hide(); $("#fee_det").hide(); $("#personal_det").show(); $("#success_card").hide(); } var qaldeg; var qalsub; var qalreg; var qaloption; var qalpassyear; var qalinstitut; var paymenttype; function validatefeedetl() { var errorCount = 0; qaldeg = $("#qaldeg").val(); if (qaldeg === "") { $("#qaldeg_err").addClass("hasError"); focusid = qaldeg; errorCount++; } else { $("#qaldeg_err").removeClass("hasError"); } qalsub = $("#qalsub").val(); qaloption = $("#qaloption").val(); if (qalsub === "") { $("#qalsub_err").addClass("hasError"); focusid = qalsub; errorCount++; } else { $("#qalsub_err").removeClass("hasError"); } qalreg = $("#qalreg").val(); if (qalreg === "") { $("#qalreg_err").addClass("hasError"); focusid = qalreg; errorCount++; } else { $("#qalreg_err").removeClass("hasError"); } qalpassyear = $("#qalpassyear").val(); qalpassmonth = $("#qalpassmonth").val(); if (qalpassyear === "") { $("#qalpassyear_err").addClass("hasError"); focusid = qalpassyear; errorCount++; } else { $("#qalpassyear_err").removeClass("hasError"); } qalpassyear = qalpassmonth + "/" + qalpassyear; fpassuniv = $("#fpassuniv").val(); if (fpassuniv === "") { $("#qalinstitut_err").addClass("hasError"); focusid = qalinstitut; errorCount++; } else { $("#qalinstitut_err").removeClass("hasError"); } var lateral = getUrlParameter("lateral"); if (lateral == "undefined") { paymenttype = $("#paymenttype").val(); if (paymenttype === "") { $("#paymenttype_err").addClass("hasError"); focusid = paymenttype; errorCount++; } else { $("#paymenttype_err").removeClass("hasError"); } } percent = $("#percent").val(); if (percent === "") { $("#percent_err").addClass("hasError"); focusid = percent; errorCount++; } else { $("#percent_err").removeClass("hasError"); } secmarks = $("#secmarks").val(); if (secmarks === "") { $("#secmarks_err").addClass("hasError"); focusid = secmarks; errorCount++; } else { $("#secmarks_err").removeClass("hasError"); } maxmarks = $("#maxmarks").val(); if (maxmarks === "") { $("#maxmarks_err").addClass("hasError"); focusid = maxmarks; errorCount++; } else { $("#maxmarks_err").removeClass("hasError"); } return errorCount; } var app_no; function saveRerigistation() { console.log(ftotsub); var garry = []; var aadhar = $("#aadhar").val(); var acno = $("#acno").val(); var ifsc = $("#ifsc").val(); var fcombcode = $("#fcombcode").val(); var fcaste = $("#fcaste").val(); var fmob = $("#fmob").val(); if(fcombcode == '') { alert("Please select combination"); return; } // for (var i = 0; i < ftotsub; i++) { // if ($(`#subcode_${i}`).val() == "") { // alert("Please Select All Preference"); // return; // } // var value = $(`#subcode_${i}`).val(); // if (garry.indexOf(value) >= 0) { // alert("Same Subject can't be taken"); // $(`#subcode_${id}`).val(""); // return; // } else { // garry.push(value); // } // mand_sub[i] = $(`#subcode_${i}`).val() + "*" + $(`#subcode_${i}`).val(); // } let $sub_arr = new Object(); let $n=0; var subject_alert_flag = false; $("#subdet select").each(function() { $sub_arr[$n] = new Object(); if($(this).val() == '') { subject_alert_flag = true; } $sub_arr[$n]["sub_code"] = $(this).val(); $n++; }); if(subject_alert_flag) { alert("Please Select the All Subjects"); return; } var datastring = "®no=" + $("#vregno").val() + "&total_fee=" + $("#amount").val() + "&mand_sub=" + JSON.stringify($sub_arr) + "&aadhar=" + aadhar + "&acno=" + acno + "&ifsc=" + ifsc+"&fcombcode="+fcombcode+"&fcaste="+fcaste+"&fmob="+fmob; $.blockUI({ message: "<img src='img/Loading_icon.gif' border='0'>" }); $.ajax({ type: "POST", data: datastring, url: $host_url + "saveReRigistrationDetails", success: function(responce) { $.unblockUI(); responce = eval("(" + responce + ")"); if (responce.error_code === -1) { $("#challanBtn").hide(); $("#paytmBtn").hide(); } else { if (responce.data["fpaymentstatus"] == "success") { var button = `<button id="challanBtn" type="button" class="btn btn-primary waves-effect btn-lg" onclick = "PrintApplicationFormpaytmNETBANKING('${ responce.data["app_no"] }')">Print Application </button>`; var str = `<center> <b><span id="app_msg"></span></b><br><br> <b>Application Number: <span id="dapp_no">${ responce.data["app_no"] }</span></b><br><br> ${button} </center>`; $("#makepayment").html(); $("#makepayment").html(str); } else { var button = ""; $.ajax({ type: "POST", async: false, data: "&appno=" + responce.data["app_no"] + "&fregno=" + responce.data["fregno"], url: "razorpay/pay.php", success: function razorpayResponce(responce) { button = responce; } }); var str = `<center> <b><span id="app_msg"></span></b><br><br> <b>Application Number: <span id="dapp_no">${ responce.data["app_no"] }</span></b><br><br> ${button} </center>`; $("#makepayment").html(); $("#makepayment").html(str); } // if (paymenttype == "DEBIT/CREDIT/NET BANKING") { // $("#sbmchallan").hide(); // $("#makepayment").show(); // $("#dapp_no").append(responce.data["app_no"]); // } else { // $("#sbmchallan").show(); // $("#makepayment").hide(); // } } $("#app_no").append(responce.data["app_no"]); $("#app_msg").append(responce.data["message"]); app_no = responce.data["app_no"]; //console.log(app_no); $("#subject_det").hide(); $("#cuid").hide(); $("#fee_det").hide(); $("#personal_det").hide(); $("#success_card").show(); } }); } function saveDetails() { sum = $("#sum").val(); var jsonObj = []; if (lateral !== undefined) { if (sum === "" || sum === null) { $("#sum_err").addClass("hasError"); return; } } var page = getUrlParameter("page"); var entlateral = getUrlParameter("lateral"); if (page !== undefined) { saveRerigistation(); return; } var errorCount = validatefeedetl(); if (errorCount > 0) return; if (verify === 1) { loadPersonal(); $("#verify_app").css("display", "block"); return; } paymenttype = $("#paymenttype").val(); var lateral = ""; //console.log(paymenttype); fpassuniv = $("#fpassuniv").val(); var year = ""; if (entlateral == "lateralentry") { lateral = "T"; year = $("#year").val(); } $("#uploaddet input[type=hidden]").each(function() { var item = {}; item["id"] = $(this).attr("id"); item["value"] = $(this).val(); jsonObj.push(item); }); gRgPerinfo = JSON.stringify(jsonObj); var suboption1 = $("#options2").val(); var datastring = "&studname=" + studname + "&fatname=" + fatname + "&motname=" + motname + "&category=" + category + "&gender=" + gender + "&religion=" + religion + "&caste=" + caste + "&handicap=" + handicap + "&nationality=" + nationality + "&dob=" + dob + "&adhar=" + adhar + "&padd1=" + padd1 + "&padd2=" + padd2 + "&padd3=" + padd3 + "&pdistrict=" + pdistrict + "&ppincode=" + ppincode + "&pstate=" + pstate + "&cadd1=" + cadd1 + "&cadd2=" + cadd2 + "&cadd3=" + cadd3 + "&cpincode=" + cpincode + "&mobile=" + mobile + "&landline=" + landline + "&accnumber=" + accnumber + "&branch=" + branch + "&ifsc=" + ifsc + "&email=" + email + "&ocupation=" + ocupation + "&income=" + income + "&graduation=" + graduation + "°ree=" + degree + "&subject=" + subject + "&moi=English&suboption=" + suboption + "&suboption1=" + suboption1 + "&cstate=" + cstate + "&cdistrict=" + cdistrict + "¢ercode=" + centercode + "&qaldeg=" + qaldeg + "&qalsub=" + qalsub + "&qalreg=" + qalreg + "&qalpassyear=" + qalpassyear + "&qalinstitut=" + fpassuniv + "&paymenttype=" + paymenttype + "&qaloption=" + qaloption + "&totfee=" + sum + "&photo_filename=" + photo_filename + "&sign_filename=" + sign_filename + "&lateral=" + lateral + "&fpassuniv=" + fpassuniv + "&year=" + year + "&personal_info=" + gRgPerinfo + "&maxmarks=" + maxmarks + "&secmarks=" + secmarks + "&percent=" + percent; console.log(datastring); $.blockUI({ message: "<img src='img/Loading_icon.gif' border='0'>" }); $.ajax({ type: "POST", data: datastring, url: $host_url + "saveDetails", success: function getsubjectdetResponce(responce) { $.unblockUI(); responce = eval("(" + responce + ")"); if (responce.error_code === -1) { $("#challanBtn").hide(); $("#paytmBtn").hide(); } else { var button = ""; $.ajax({ type: "POST", async: false, data: "&appno=" + responce.data["app_no"], url: "razorpay/pay.php", success: function razorpayResponce(responce) { button = responce; } }); var str = `<center> <b><span id="app_msg"></span></b><br><br> <b>Application Number: <span id="dapp_no">${ responce.data["app_no"] }</span></b><br><br> ${button} </center>`; $("#makepayment").html(); $("#makepayment").html(str); // if (paymenttype == "DEBIT/CREDIT/NET BANKING") { // $("#sbmchallan").hide(); // $("#makepayment").show(); // $("#dapp_no").append(responce.data["app_no"]); // } else { // $("#sbmchallan").show(); // $("#makepayment").hide(); // } } $("#app_no").append(responce.data["app_no"]); $("#app_msg").append(responce.data["message"]); app_no = responce.data["app_no"]; //console.log(app_no); $("#subject_det").hide(); $("#fee_det").hide(); $("#personal_det").hide(); $("#success_card").show(); } }); } function challanGenerate() { //if(app_no); if (paymenttype == "DEBIT/CREDIT/NET BANKING") window.location.href = "Paytm/pgRedirect.php?productinfo=" + app_no; else window.location.href = $host_url + "PrintApplicationFormSBM&app_no=" + app_no; } function PrintApplicationFormpaytmNETBANKING(app_no) { //$host_url = "http://oasis.logisys.org/gcg/adm/app.php?&a="; window.location.href = $host_url + "PrintApplicationFormSBM&app_no=" + app_no; } function loaduploads() { $.ajax({ type: "POST", async: true, url: $host_url + "uploaddetails", success: function uploaddetailsResponce(responce) { responce = eval("(" + responce + ")"); let uploadtable = `<style type = "text/css"> .table-upd tbody tr td { padding : 2px; vertical-align:middle; border: 1px solid #949494; text-align: left; } .table-upd tbody upd-file { display: inline !important; } .table-upd tbody input[type="file"] { display: inline; } .table-upd tbody button { padding : 7px; margin: 15px; } .table-upd thead tr td { text-align: center; } </style> <table class='table table-bordered table-striped table-upd' id = "uploaddet"> <thead> <tr class = "bg-cyan"> <td style = "width :5%">Sl. No.</td> <td style = "width : 40%;" >Description</td> <td style = "width : 30%;">Upload</td> <td style = "width : 25%;">File</td> </tr> </thead> <tbody>`; var masdoc = responce.data.masdoc; let z = 1; $.each(masdoc, function(key, value) { uploadtable += `<tr> <td style = "text-align: center;">${z}</td> <td id = "doc_upload_${value.int_code}">${value.doc_type}</td> <td > <input type="file" name="${value.int_code}" id="${value.FFILENAME}" class = "upd-file" style="width:100px;padding:5px 0px;" /> <input type = "hidden" id = "h_${value.FFILENAME}"> <button class="btn btn-success waves-effect btn-lg" style = "padding: 5px;" onclick= 'UploadEmployeeDocuments("${value.FFILENAME}")'>Upload </button> </td> <td id="attach_td_${value.FFILENAME}"></td> </tr>`; z++; }); $("#upddet").html(uploadtable); } }); } function UploadEmployeeDocuments(file_file) { var file_name = $("#" + file_file).val(); //var $host_url1 = window.location.hostname; 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 == "jpeg" || file_extn == "jpg" || file_extn == "pdf") { } else { alert("JPEG, JPG, PDF 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(); $("#h_" + file_file).val(data); var str = `<a href = "${$host_url1 + "/upload/" + data}" target = "_blank">${file_file}</a>`; document.getElementById("attach_td_" + file_file).innerHTML = str; }, error: function(data) { alert(data); } }); } function getVSKUBStudDet() { if ($("#regno").val() == "") { alert("Please Enter Reg. No."); $("#regno").focus(); return; } var datastring = "regno=" + $("#regno").val(); //$host_url = "https://universitysolutions.in/gcg/adm/app.php?a="; $host_url = "http://15.206.191.188/gcg/adm/app.php?&a="; $.ajax({ type: "POST", async: false, url: $host_url + "getVSKUBStudDet", data: datastring, success: function getVSKUBStudDetRes(responce) { responce = eval("(" + responce + ")"); if (responce.error_code == "-1") { alert(responce.data); return; } else { $("#loadtab").show(); var str = `<div class='row' style = 'padding:30px;'> <center><div> <table id='feeMainTable' class='table table-striped table-condensed table-bordered'> <thead> <tr style = "background-color: #0c4d82;color: #fff;"> <th style = 'width:5%;'><center>Sub. Code</center></th> <th style = 'width:20%;'><center>Subject Name</center></th> <th style = 'width:50%;'><center>Center Details</center></th> <th style = 'width:20%;'><center>Room Name</center></th> </tr> </thead> <tbody> <tr> <td><center>${responce.data.data["fsubcode"]}</center></td> <td>${responce.data.data["fsubname"]}</td> <td>${responce.data.data["fcntrname"]}</td> <td>${responce.data.data["froom"]}</td> </tr>`; str += `</tbody></table></div><center></div>`; $("#subdet").html(str); } } }); }
Close