var studregno; //var $host_url="http://"+window.location.host+"/"+window.location.pathname.split('/')[1]+"/app.php?a="; var $host_url = "http://" + window.location.host + "/" + window.location.pathname.split('/')[1] + "/" + window.location.pathname.split('/')[2] + "/app.php?a="; function studentregno() { studregno = $('#studregno').val(); if (studregno === '') { $('#studregno_err').addClass('hasError'); return; } else { var datastring = "&studregno=" + studregno + "&page=registration"; $.ajax({ type: "POST", async: false, data: datastring, url: $host_url + 'getRerigistrationDetails', success: function getsubjectdetResponce(responce) { responce = eval('(' + responce + ')'); if (responce.error_code === -1) { alert(responce.data.msg); } else { window.location.href = "MainPage.html?page=registration"; } } }); } } function getreprint() { var rappno = $('#rappno').val(); var rdob = $('#rdob').val(); var datastring = "&rappno=" + rappno + "&rdob=" + rdob; $.ajax({ type: "POST", url: $host_url + 'getreprint', data: datastring, success: function (responce) { responce = eval('(' + responce + ')'); if (responce.error_code == 0) { if (responce.data.html.fpaymentstatus == 'success') { window.location.href = $host_url + "PrintApplicationFormSBM&app_no=" + rappno; } else { alert('Payment Not Made.'); return; } } else { alert('Invalid Details.'); return; } } }); } function PrintApplicationFormNETBANKING(rappno) { window.location.href = $host_url + "PrintApplicationFormSBM&app_no=" + rappno; } function makepayment() { var rappno = $('#rappno').val(); // console.log(rappno); $.ajax({ type: "POST", url: $host_url + 'masbankdet', success: function (responce) { responce = eval('(' + responce + ')'); if (responce.error_code == 0) { var button = ''; $.ajax({ type: "POST", async: false, data: "appno=" + rappno + "&funivcode=" + '041', url: "razorpay/pay.php", success: function (responce) { button = responce; } }); var table = `
Logo | Action | `; var masbank = responce.data['masbank']; for (var i = 0; i < masbank.length; i++) { table += `|
---|---|---|
| `;
if (masbank[i]['fbank'] == 'razorpay') {
table += `
| `;
} else {
table += `
|