<?php session_start();  //Developed by ITechScripts
   require 'include/configurations.php'; // ITECHBIDS Configuration File
?> 
<html>
<head>
<title>Admin</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>
<body>
<? 
 require 'include/header.php';
 $id=$_GET[id];
 $pay_sql="select * from usertransaction where user_id=$id order by pay_id desc";
 $pay_res=mysql_query($pay_sql);
 $pay_total_records=mysql_num_rows($pay_res);
$user="select * from member_details where user_id=$id";
  $user_res=mysql_query($user);
  $user_rec=mysql_fetch_array($user_res);
?>
<table border="0" align="center" cellpadding="5" cellspacing="2" width="100%">
<tr align="center">
<td align="center"><a href="useritechds.php?id=<?=$id?>&type=gen">General</a></td>
<td><a href="useritechds.php?id=<?=$id?>&type=per">Personal</a></td>
<td><a href="usertrans.php?id=<?=$id?>">Transaction Details</a></td> 
</tr><tr align="center">
<td><a href="userbid.php?id=<?=$id?>">Bid Details</a></td>
<td><a href="userref.php?id=<?=$id?>">Refferal Details</a></td>
<td><a href="addfunds.php?id=<?=$id?>">Add Bids</a></td>
</tr>
</table><BR><BR><B>Transaction Details of <?= $user_rec[user_name]; ?></b><BR><BR>
  <table border="0" align="center" cellpadding="3" cellspacing="0" width="100%" class="ft">
<?

 if($id=='')
{
echo '<meta http-equiv="refresh" content="0;url=sorry.php">';
exit();
}
?>
<?
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" ><b>Item Id</b></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>
<?
$coun = 1;
$pay_res=mysql_query($pay_sql);
while($pay_row=mysql_fetch_array($pay_res))
{
$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'];

?>
<tr>
<td > &nbsp;
</td>
<td >
<? echo "$coun" ?>
</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>

</tr>
<?
$coun++;
} // while
?>
<?
}
else
{
?>
<tr>
<td class="tr_botborder_1" height="30" colspan=5 align="left">
<? echo "$lang_585" ?>
</td>
</tr>
<?
}
   ?>
   </table>
<? require'include/footer.php'; ?>
  </body>
</html>
