Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/iws8/html/ipay/
Upload File :
Current File : /var/www/html/mmishra/iws8/html/ipay/transactions.inc

<h3 align='left'>Personal Info</h3>

<center>
<h3>Successful Transactions</h3>
<table border='1' style='border-collapse:collapse' width='90%'>
<tr><th>Sr</th><th>RollNo</th><th>Program</th><th>Name</th><th>Email</th><th>Amount</th><th>TrackID</th><th>TransID</th><th>PayID</th><th>RefNo</th><th>Dated</th><th>Status</th></tr>

<?php

$tbl = 'paidfees';
$i = 0;
$tot1 = 0.00;

$rs = mysql_query("select * from $tbl where status='Success' order by roll_no");
while ($o = mysql_fetch_object($rs)) {
	$i++;
	echo "<tr><td>$i</td><td>".strtoupper($o->roll_no)."</td><td>$o->program-$o->batch-$o->semester</td><td>$o->name</td><td>$o->email</td>
	<td>$o->amount</td><td>$o->track_id</td><td>$o->transaction_id</td><td>$o->payment_id</td><td>$o->reference_no</td><td>$o->dated</td><td>$o->status</td></tr>";
	$tot1 += $o->amount;
}
echo "<tr><th colspan='5' align='right'>Total&nbsp;</th><th colspan='7' align='left'>$tot1</th></tr>";

?>
</table>

<h3>Failed Transactions</h3>
<table border='1' style='border-collapse:collapse' width='90%'>
<tr><th>Sr</th><th>RollNo</th><th>Program</th><th>Name</th><th>Email</th><th>Amount</th><th>TrackID</th><th>TransID</th><th>PayID</th><th>RefNo</th><th>Dated</th><th>Status</th></tr>

<?php
$i = 0;
$tot2 = 0;

$rs = mysql_query("select * from $tbl where status='Failed' order by roll_no");
while ($o = mysql_fetch_object($rs)) {
	$i++;
	echo "<tr><td>$i</td><td>".strtoupper($o->roll_no)."</td><td>$o->program-$o->batch-$o->semester</td><td>$o->name</td><td>$o->email</td>
	<td>$o->amount</td><td>$o->track_id</td><td>$o->transaction_id</td><td>$o->payment_id</td><td>$o->reference_no</td><td>$o->dated</td><td>$o->status</td></tr>";
	$tot2 += $o->amount;
}
echo "<tr><th colspan='5' align='right'>Total&nbsp;</th><th colspan='7' align='left'>$tot2</th></tr>";

?>
</table>
</center>