<table width="980" border="0" cellpadding="0" cellspacing="0" align="center">
    <tr>
    <td valign="top">
   <?
	 require 'templates/'.$tfold.'/header.php';
   ?>
  </td>
  </tr>
  
  <tr><td class="ft2"> 
<table width="100%" cellpadding="0" cellspacing="0" align="center" border="0">
<tr><td>
<table width=100% cellpadding="0" cellspacing="0">
<tr><td class="tr_border" height=30 >
<font size="2">
<b><div align="left">
&nbsp;&nbsp;<? echo "$lang_542" ?></div> </b></font> </td> <td align="right" class="tr_border" height=30>Item Number:<?= $productid ?>&nbsp;&nbsp;</td></tr>
</table>
<TR><TD><TABLE width=100%>
<tr align="center" height=35>
<td width=2>&nbsp;</td>
    <?
	if($email_to_status)
	{
	?>
	<td class="table_bgcolor_withborder" align="center">
	<font size="2" color="red">
    <b> &nbsp;&nbsp;&nbsp;<?= $email_to_status?>  </b></font>
	<?
	}
	else if($Warning)
	{
	?>
	<td class="table_bgcolor_withborder" align="center">
	<font size="2" color="red">
    <b> &nbsp;&nbsp;&nbsp; <? echo "$lang_101" ?></b></font>
	<?
	}
	else if($watch_flag==1)
    {
	$watch_tot_sql="select count(*) from watch_list where user_id=$user_id";
    $watch_ins_sql=mysql_query($watch_tot_sql);
	$watch_res_sql=mysql_fetch_array($watch_ins_sql);
	$watch_tot=$watch_res_sql[0];
    ?>
	<td class="table_bgcolor_withborder" align="center">
 <font size="2" color="red">
<b> &nbsp;&nbsp;&nbsp;<? echo "$lang_102" ?> (<a href="watchlist.php" style="text-decoration:none"> <?= $watch_tot?> items </a>)
 <!-- <? echo "$lang_103" ?> --> </b></font>
   <?
   }
	else if(empty($_SESSION[userid]))
	{ 
	?> 
   <td class="table_bgcolor_withborder" align="left">
&nbsp;&nbsp;&nbsp;<? echo "$lang_104" ?></B>&nbsp;<A href="signin.php">Sign in</A> <? echo "$lang_105" ?> &nbsp;
    <?
    }
	else
	{
	?>
	<td class="table_bgcolor_withborder" align="left">
&nbsp;&nbsp;&nbsp;	<? echo "$lang_634" ?>
	<?
	}
    ?> 
	<span align="right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<?
	if($watch_flag!=1)
	{
	?>
    <a href="itechd.php?productid=<?= $row['productid'] ?>&mode=watch" id="dislink"><? echo "$lang_106" ?></a> &nbsp;&nbsp;
    <?
	$mode="";
	}
	?>
	 | &nbsp;&nbsp;	
<a href="forward_to_friend.php?productid=<?= $row['productid']; ?>" id="dislink"><? echo "$lang_107" ?></a>
&nbsp;&nbsp;  | &nbsp;&nbsp;	
<a href="itechd.php?productid=<?= $row['productid']; ?>" id="dislink"><? echo "$lang_108" ?></a>
&nbsp;&nbsp;		
</span>
</td>
<td width=2>&nbsp;</td>
</tr>
</table></td></tr>
<tr><td align="left" >
<table cellpadding="0" cellspacing="0" width="50%" >
 
          <tr>
		  <td width=2>&nbsp;</td>
          <td><? echo "$lang_145" ?> : </td>
		   <td><? echo $row['producttitle'];?></td>
          </tr>

          <tr>
		  <td width=2>&nbsp;</td>
          <td><? echo "$lang_635" ?> : </td>
		  <?
		  $expire_date=$row['expire_date'];
          require 'ends.php';
		  ?>
		  <td><? echo "$string_difference" ;?></td>
         </tr>
    </table>
</td></tr>

<tr><td align="center">
<table width="740" cellpadding="0" cellspacing="0">

		<? 
		if(mysql_num_rows($bid_res)>0)
		{
		?>
		<tr class="detail_tr"><td><b><? echo "$lang_636" ?></b></td><td><b><? echo "$lang_109" ?></b></td><td><b><? echo "$lang_110" ?></b></td></tr>
		<?
		while($bid_det=mysql_fetch_array($bid_res))
		{
        $bidder_sql="select * from member_details where user_id=$bid_det[user_id];";
		$bidder_res=mysql_query($bidder_sql);
		$bidder_row=mysql_fetch_array($bidder_res);
		$feed_sql="select count(*) as feedbacktotal from feedback where feedback_to=".$bidder_row['user_id'];
        $feed_recordset=mysql_query($feed_sql);
        $feed_tot=mysql_fetch_array($feed_recordset);
        $feedbackicon_sql="select * from membership_level where feedback_score_from <= "." $feed_tot[feedbacktotal] "." and  feedback_score_to >= "." $feed_tot[feedbacktotal] " ; 
 $feedbackicon_res=mysql_query($feedbackicon_sql);
 $feedbackicon_row=mysql_fetch_array($feedbackicon_res); 
 $feedback_img=$feedbackicon_row[icon];
		
		?>	
		<tr><td><?= $bid_det[bidding_date];?></td>
		<td><?= $bid_det[bidding_amount];?></td>
		<td><a href="feedback.php?user_id=<?=$bidder_row['user_id'];?>" id="dislink"><? echo $bidder_row['user_name'];?></a>&nbsp;&nbsp;&nbsp;&nbsp;( <a href="feedback.php?user_id=<?=$bidder_row['user_id'];?>" id="dislink"><? echo $feed_tot[feedbacktotal]; ?></a><img src="templates/<? echo "$tfold" ?>/img_files/<?= $feedback_img ?>" /> )</td></tr>
		<?
		}
		}
		else
		{
		?>
		<tr><td colspan="3" align="center"><font class="head_font" color="red">
		<? echo "$lang_637" ?>
		</font> </td></tr>
		<?
		}
		?>
		  
		<tr><td colspan="3">
		<br>
		<hr>
		
		</td></tr>
		<tr><td colspan="3"><? echo "$lang_543" ?></td></tr>
		</table>
		</td></tr></table></td></tr>