
	<? $title="$lang_221";
	require 'templates/'.$tfold.'/header.php';?>
	</td>
  </tr>
 
	<table width="980" cellpadding="0" cellspacing="0">
	<tr>
<tr class="tdhead_main"><td width="1%" height="24" valign="top"><img src=templates/<?=$tfold?>/img_files/t_header_l.gif></td>
<td width="98%" height="24" valign="middle">&nbsp;<B>My Auction</b></td>
<td width="1%" height="24" valign="top"><img src=templates/<?=$tfold?>/img_files/t_header_r.gif></td></tr>
	</table>


<table width="100%" align="center" cellpadding="0" cellspacing="0" border=0 class="ft_right"  style="padding-left : 10px; padding-right : 10px; padding-bottom : 10px; padding-top : 10px;" >
  <tr>
    <td valign="top" width="8%">
	<? require 'include/usermenu.php';?>
	</td>
	<td valign="top">
<br>
<font size=+1><div>&nbsp;&nbsp;&nbsp;<? echo "$lang_474" ?><? echo "$lang_419" ?>!</div></font>

<form name="watch_form" Action="watchlist.php" method="get">

<table cellpadding="0" cellspacing="0" align="center" width=540 >
<? if(isset($war))
{
?>
<tr>
<font size="2"><IMG SRC="templates/<? echo "$tfold" ?>/img_files/xclabidm.gif">
<b><div class="font_sub_tit"> <?= $war; ?></div></b> </font></tr></table>
<?
}
if(isset($conf))
{
?>
<tr class="font_sub_tit">
<font size="2">
<IMG SRC="templates/<? echo "$tfold" ?>/img_files/del_item.gif">
<b><?= $conf; ?></b></font></tr></table>
<?
}
if($wat_total>0)
{
?>
<table height="25" cellpadding="0" cellspacing="0" align="center" width=100%>
<tr class="tdhead" height="30">
<font size="2"><b>Item's <? echo "$lang_283" ?>( <?= $wat_total; ?> )</b></font></tr>
<?
}
else if($wat_total==0 and $dis_all=="")
{ 
?>
<table align="left" width=100%>
<tr align="center" class="warning_font_color">
<font size="2">
<b>You are not <? echo "$lang_283" ?>any Items</b></font></tr>
<br>
<tr align="center" class="warning_font_color"><font size="2" >
<b><? echo "$lang_475" ?></b></font></tr> 
</table>
</td></tr></table>
 <? 
 require 'templates/'.$tfold.'/footer.php';
 exit();
 }
 ?>
 <?
 if(isset($dis_all))
 {
 ?>
 <table align="center" width=100%>
<tr align="center" class="warning_font_color">
<td><font size="2">
<b><?= $dis_all; ?></b></font></tr>
<br></td>
<tr align="center"><td>
<br>
<br>
<a href="watchlist.php" id="link1">Back</a>
</td></tr>
</table>
</td></tr></table>
 <? 
 require 'templates/'.$tfold.'/footer.php';
  exit();
 }
 ?>
  <b>  <tr class="table_head">
  <td width=30>
  <input type="hidden" name="len" value="<?=mysql_num_rows($watch)?>">
  <input type="checkbox" name="chkMain" onClick="selectall()"></td>
  <td>&nbsp;</td>
  <td >Item</td>
  <td>Current Price</td>
  <td>Bids</td>
  <td>Seller Id</td>
  <td>Ends</td>
  </tr>
  </b>
<?
 $c=1;
while($watch_row=mysql_fetch_array($watch))
 {
$sql="select * from auction_details where productid=$watch_row[productid]";
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
$user_sql="select * from member_details where user_id=".$row['user_id'];
$user_res=mysql_query($user_sql);
$user=mysql_fetch_array($user_res);
$productid=$row[productid];
$bid_sql="select * from site_bids where productid=".$productid;
$bid_res=mysql_query($bid_sql);
$bid=mysql_fetch_array($bid_res);
$current_price=$bid['bidding_amount'];
  $tot_sql="select count(*) from site_bids where productid=".$productid;
  $tot_res=mysql_query($tot_sql);
  $tot=mysql_fetch_array($tot_res);
if(!isset($bid[0]))
{
$current_price=$row['min_bid_amount'];
}
$expire_date = $row[expire_date];
  require 'ends.php';
 if($c==1)
  {
  $c=0;
  ?>
<tr class="tr_color_1">
  <? 
  }
  else
  {
  $c=1;
  ?>
  <tr class="tr_color_2">
  <? 
   }
  ?>
  <td><input type="checkbox" name=chkbox[] id="chkbox" value="<?  echo $row['productid']; ?>">
  </td>
  <td>
  <a href="itechd.php?productid=<? echo $row['productid']; ?>" alt="<? echo "$lang_117" ?> <? echo "$lang_187" ?>">
  <? if(!empty($row[picture1]))
  {
  ?>
<IMG height="80" width="80" src="uploads/<? echo $row['picture1']; ?>" border=0></a>
  </td>
<? 
}
else
{
?>
<IMG height="80" width="80" src="templates/<? echo "$tfold" ?>/img_files/no-image.gif" border=0></a>
  </td>

<?
}
?> 
      <td>
  <a href="itechd.php?productid=<?  echo $row['productid']; ?>" id="link1">
  <?  echo $row['producttitle']; ?></a>
  </td>
  <td><?  echo $current_price; ?> </td>
  <td><?  echo $tot[0]; ?></td>
  <td><a href="feedback.php?user_id=<?  echo $row['user_id']; ?>" id="link1">
  <?  echo $user['user_name'];?></a></td>
  <td><?  echo "$string_difference" ;?></td></tr>
      <? 
	  }
	  ?>
	 <td colspan="6">
	 <input type="button" value=Delete name="conf" onClick="del()" class=buttonbig>
	   <input type="button" name="Compare" value="Compare" onClick="com()" > 
	    <input type="hidden" name="delete1" value=0>	
		<input type="button" name="Deleteall" value="Delete All" onClick="delete_all()" > 
		<input type="button" name="Watchall" value="Watch All" onClick="watch_all()" >
	    <input type="hidden" name="watch" value=<?= $user_id; ?>>
<br></td>
    </tr>
</table>
</td>
</form>
</tr>
</table>
</body>
</html>
	<table width="980" cellpadding="0" cellspacing="0" >
<tr>
<td width="98%" height="5" valign="middle"><img src=templates/<?=$tfold?>/img_files/t_bot.gif border="0"></b></td>
</tr>
	</table>
<? require'templates/'.$tfold.'/footer.php'; ?>
</td></tr></table>
</td></tr></table>