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.149.24.49
var studregno;
//var $host_url="http://"+window.location.host+"/"+window.location.pathname.split('/')[1]+"/app.php?a=";
var $host_url="https://"+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 = `<table class="payment" width = "60%" border = "1" cellspacing="0" cellpadding="5" style = "margin:1% auto;">
<thead>
<th style = "text-align: center;width = 20%;">
Logo
</th>
<th style = "text-align: center;width = 20%;" >
Action
</th>
</thead>
<tbody>`;
var masbank = responce.data['masbank'];
for(var i=0;i<masbank.length;i++)
{
table += `<tr>
<td width = "12%;" style = "text-align: center;">
<img height="60" width="150" src = "${masbank[i]['fbanklog']}" />
</td>`;
if(masbank[i]['fbank'] == 'razorpay')
{
table += `<td width = "20%;">
<center>${button}</center>
</td>`;
}else
{
table += `<td width = "20%;" >
<center><span class="button" onclick="makepaymentdet('${masbank[i]['fbank']}','${rappno}','${masbank[i]['funivcode']}')">Make Payment</span></center>
</td>
</tr>`;
}
}
$('#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;
}
}
|