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 = ``; var masbank = responce.data['masbank']; for (var i = 0; i < masbank.length; i++) { table += ``; if (masbank[i]['fbank'] == 'razorpay') { table += ``; } else { table += ``; } } $('#bankdet').show(); $('#bankdet').html(table); return; } } }); //window.location.href="Paytm/pgRedirect.php?productinfo="+rappno; } function makepaymentdet(payment, id, funivcode) { if (payment == 'paytm') window.location.href = "Paytm/pgRedirect.php?productinfo=" + id + "&funivcode=" + funivcode; if (payment == 'axis') window.location.href = "axis/sampleEasyPay.php?productinfo=" + id + "&funivcode=" + funivcode; if (payment == 'hdfc') { window.location.href = "hdfc/ccavRequestHandler.php?productinfo=" + id + "&funivcode=" + funivcode; } } function downloadAttachment() { if (trim($('#rappno').val()) == '') { alert("Enter Application No."); $("#rappno").focus(); return; } if (trim($('#rdob').val()) == '') { alert("Enter date of birth"); $("#rdob").focus(); return; } var datastring = "&rappno=" + $('#rappno').val() + "&rdob=" + $('#rdob').val(); $.ajax({ type: "POST", url: $host_url + "checkForAttachments", data: datastring, success: checkForAttachmentsSuccess }); } function checkForAttachmentsSuccess(responce) { responce = eval('(' + responce + ')'); if (responce.error_code == -1) { alert('No details found for given data'); return false; } else window.location.href = $host_url + "downloadAllStudentPhotos.demo&college_from=" + $('#college_from').val() + "&college_to=" + $('#college_to').val() + "°ree_from=" + $('#degree_from').val() + "°ree_to=" + $('#degree_to').val(); }
Logo Action
${button}
Make Payment