<?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];
 $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>
  <table border="0" align="center" cellpadding="3" cellspacing="0" width="100%" >
  <tr>
    	<td valign="top" width="30%" align="center">
	<br>
	<br>
	<font size="+1"><b>Bidding Details of <?= $user_rec[user_name]; ?></b></font>
	<br>
	<br>
  <table align="center" cellpadding="5" cellspacing="0" width=550 class="ft">
  <tr >
          <td><b>Product Title</b></td>
          <td><b> Bid Amount  </b> 
   </td><td><b> Quantity  </b>  </td>
  <td><b> Date </b>  </td>
 </tr>
<?

 if($id=='')
{
echo '<meta http-equiv="refresh" content="0;url=sorry.php">';
exit();
}
 
 $sql="select * from site_bids where user_id=".$id;
  $res=mysql_query($sql);
  while($result=mysql_fetch_array($res))
  {
 $item_sql="select * from auction_details where productid=$result[productid]";
 $item_res=mysql_query($item_sql);
 $item_result=mysql_fetch_array($item_res);
    ?> 
  <tr>
  <td><a href="item_itechds.php?id=<?=$result[productid]; ?>" id="link3"><?= $item_result[producttitle]; ?></a></td>
  <td align="center"><?= $result[bidding_amount]; ?> </td>
    <td><?= $result[quantity]?></td>
  <td><?= $result[bidding_date]?></td>
 </tr>
  <?
  }
   ?>
   </table>
   </td></tr></table>
<? require'include/footer.php'; ?>
  </body>
</html>
