<?php session_start();  //Developed by ITechScripts
?>
<?
require 'include/configurations.php'; // ITECHBIDS Configuration File
require '../include/itechbids.php'; // ITECHBIDS Configuration File
$mode=$_GET[mode];
$tid=$_GET[tid];
if($mode!="")
{
complete_transaction($mode, $tid);
}
?>

<style type="text/css">
<!--
.style1 {
	color: #666666;
	font-weight: bold;
}
.style3 {color: #666666; font-size: 11px; font-family:Arial, Helvetica, sans-serif}
-->
</style>
>
<?php
require 'include/header.php';
?>
<?
require 'tsearch.php';
?>
<?

$secsql="select * from usertransaction where status='Queued' order by trans_date";
$secres=mysql_query($secsql);

?>
<br />

<table width="100%"  border="0" cellpadding="5" cellspacing="1" class="ft" align="center">
 <tr class="ct" height="25"><td colspan="9">
<?
if($makesearch != "yes"){
?>
Last 20 Transactions
<?
}
?>
<?
if($makesearch == "yes"){
?>
Search Result(s)
<?
}
?>
</td></tr>
 <tr class="ct" height="25">
<td class="ct"><b>No.</b> </td>
<td class="ct"><b>User Id</b> </td>
<td class="ct"><b>TransAction Id</b> </td>
<td class="ct" >Item ID</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>
<td  class="ct"><b>Status</b>  </td>

</tr>
 <?php
$n=1;
 while($pay_row=mysql_fetch_array($secres))
 {
$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'];
$tuser=$pay_row['user_id'];
$status=$pay_row['status'];
$typeofpay=$pay_row['typeofpay'];
 ?>
 <tr >
<td >
<? echo $n;?>
</td>
<td><?  echo $tuser ?> </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>
<td> <?  echo ucfirst($status); ?> </td>
<td><a href="trans_queued.php?mode=<? echo "$typeofpay" ?>&tid=<? echo "$trans_id" ?>"><b>Execute Order</b></a></td>


</tr>
  <?php
$n++;
 }
 ?>
 </table>
<br /><br />
<?
	require 'include/footer.php';
?>