
<?  
$title="TransAction Details";
require 'templates/'.$tfold.'/header.php';
?>
</td>
</tr>
<tr><td><?
require 'themes/tsearch.tpl';
?>
<table cellpadding="0" cellspacing="0" width=100%>
<tr>
<td align="left" class="ct" height="30">

<?
if($makesearch == "yes"){
?>
<b>&nbsp;&nbsp;Viewing TransActions Search Result(s) : &nbsp;&nbsp;</b>(<?= $pay_total_records; ?>&nbsp; Records)</b>
<?
}
?>
<?
if($makesearch != "yes"){
?>
<b>&nbsp;&nbsp;Viewing Last 10 TransActions</b>
<?
}
?>
</td>
<td align="right" width=10 class="ct">
&nbsp;</td>
<td align="right" class="ct" width=10>
&nbsp;</td>
</tr></table>
</td></tr>
<tr>
<td>&nbsp;</td></tr><tr>
<td>
<table cellspacing="0" cellpadding="0" class="ft2" width=100%>
<?
if($pay_total_records > 0)
{ 
?>
<tr>
<td class="ct"> &nbsp;
</td>
<td class="ct"><b>No.</b> </td>
<td class="ct"><b>TransAction Id</b> </td>
<td class="ct" ><? echo "$lang_515" ?></td>
<td  class="ct"><b>Date</b> </td>
<td  class="ct"><b>TXN ID</b>  </td>
<td  class="ct"><b>Amount</b>  </td>
<td  class="ct"><b>Type</b>  </td>
<td  class="ct"><b>Details</b>  </td>
<?
if($show_all=="yes"){ ?>
<td  class="ct"><b>Status</b>  </td>
<? } ?>
<td  class="ct"><b>Execute</b>  </td>
</tr>
<?
$n=1;
while($pay_row=mysql_fetch_array($pay_res))
{
$trans_id=$pay_row['pay_id'];
$itemid=$pay_row['itemid'];
$trans_date=$pay_row[trans_date];
$trans_batchnumber=$pay_row['trans_batchnumber'];
$trans_amount=$pay_row['trans_amount'];
$trans_details=$pay_row['trans_details'];
$currency=$pay_row['currency'];
$txn_id=$pay_row['txn_id'];
$type=$pay_row['type'];
$status=$pay_row['status'];
$typeofpay=$pay_row['typeofpay'];
$service=$pay_row['service'];
?>
<tr>
<td > &nbsp;
</td>
<td >
<? echo $n;?>
</td>
<td><?  echo $trans_batchnumber ?> </td>
<td><?  echo $itemid ?> </td>
<td><?  echo $trans_date ?> </td>
<td> <?  echo $txn_id ?> </td>
<td> <?  echo $trans_amount ?> </td>
<td> <?  echo $type ?> </td>
<td> <?  echo $trans_details ?> </td>

<?
if($show_all=="yes"){ ?>
<td> <?  echo $status ?> </td>
<? } ?>
<?
if(($type=="credit")&&($status=="Pending")&&($typeofpay=="addfunds")){?>
<td ><a href="transactions.php?trans=change&mode=Queued&tid=<? echo "$trans_id" ?>"><b>Notify Admin</b></a></td>
<? } ?>
<?
if(($type=="credit")&&($status=="Queued")&&($typeofpay!="addfunds")){?>
<td ><a href="transactions.php?trans=change&mode=Complete&tid=<? echo "$trans_id" ?>"><b>Execute</b></a></td>
<? } ?>
<?
if(($type=="debit")&&($status=="Pending")){?>
<td><a href="transactions.php?trans=change&type=debit&status=Queued&mode=Queued&tid=<? echo "$trans_id" ?>"><b>Notify Payment</b></a></td>
<? } ?>
</tr>
<?
$n++;
} // while
?>
<?
}
else
{
?>
<tr>
<td class="tr_botborder_1" height="30" colspan=5 align="left">
<? echo "$lang_585" ?>
</td>
</tr>
<?
}
require 'templates/'.$tfold.'/footer.php';
?>
</table>
</td></tr>