
<?  
$title="My Auction";
$click="myauction";
require 'templates/'.$tfold.'/header.php';
?>

	<table width="980" cellpadding="0" cellspacing="0" align="center">
	<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><? echo "$lang_768" ?></b></td>
<td width="1%" height="24" valign="top"><img src=templates/<?=$tfold?>/img_files/t_header_r.gif></td></tr>
	</table>

<table width="980" 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" >
<table cellpadding="0" cellspacing="0">
<tr align="center" height=35>
<td width=2>
<? require'include/usermenu.php'; ?>
</td></tr></table></td><td valign="top" align="right">
<table cellpadding="0" cellspacing="0" width=730>
<tr>
<td>&nbsp;</td></tr><tr>
<td>
<table cellspacing="0" cellpadding="0" class="ft2" width=100%>
<?
if($pay_total_records > 0)
{ 
?>
<div style="display: none; position: absolute; top: 70px;" id="preview_div"></div>
<table border="0" align="center" cellpadding="0" cellspacing="0" width=730>
<TR height="12" align="center" style="background-image: url(templates/<? echo "$tfold" ?>/img_files/head_tab2.gif);">
<th height="17" width=15%><?=$lang_703?></th><th width=50%></th><th width=10%>MAX BID</th><th width=10%>MIN BID</th><th width=10%>BIDNUM</th><th width=15%>DELETE</th></Tr>

    <?
	while($pay_row=mysql_fetch_array($pay_res))
	{
$feature_sql="select * from auction_details where productid=".$pay_row[productid];
$feature_res=mysql_query($feature_sql);
$feature_row=mysql_fetch_array($feature_res);
?>
<?
$imgsize = $feature_row['picture1'];
list($widths, $heights, $types, $attrs) = getimagesize("uploads/$imgsize");
if($feature_row['picture2']==""){
$feature_row['picture2']=$feature_row['picture1'];
}
$img=$feature_row['picture2'];
				   list($width, $height, $type, $attr) = getimagesize("uploads/$img");
				   $h=$height;
				   $w=$width;
				   if($h>80)	
				   {
				   $nh=80;
				   $nw=($w/$h)*$nh;
				   $h=$nh;
				   $w=$nw;
				   }
				  if($w>100)
				  {
				  $nw=100;
				  $nh=($h/$w)*$nw;
				  $h=$nh;
				  $w=$nw;
				  }
		
	?>
<? if(($i%2)==0){ ?>
<tr style="background-image: url(templates/<? echo "$tfold" ?>/img_files/mid_tab2.gif);">
<? } ?>
<? if(($i%2)!=0){ ?>
<tr>
<? } ?>
<td align="center" height="100">
		
		<table border="0" cellpadding="0" cellspacing="0" width=65 height=65 bordercolor="#000000">
		<tr valign="top">
		<td align="center" bgcolor="#ffffff" style="padding-left:5px;">




	<a onmouseover="showtrail('uploads/<? echo $feature_row['picture1']; ?>','',<?=$widths?>,<?=$heights?>)" onmouseout="hidetrail()" href="itechd.php?productid=<? echo $feature_row['productid']; ?>">
	 <img src="uploads/<? echo $feature_row['picture2']; ?>" width=<?=$w?> height=<?=$h?> border=0>
	</a>
	</td>
		</tr>
		</table>
		</td>
<?
$description=$feature_row['detailed_descrip'];
$description=strip_tags(substr($description, 0, 100));
$description="$description....";
?>
		<td align="left" style="padding-left:5px;padding-top:5px;padding-bottom:5px;">
<font color="#4a4a4a">
<B><?=$lang_751?>: <? echo $feature_row['currency']; ?><?=$feature_row['or_price']?></b></font><BR><BR>
<a href="itechd.php?productid=<? echo $feature_row['productid']; ?>">
	<? echo $feature_row['producttitle'];?></a><BR><BR><? echo "$description" ?>
</td>

<td align="center">
<? echo $feature_row['currency']; ?><?=$pay_row['maxbid'];?>
</td>
<td align="center">
<? echo $feature_row['currency']; ?><?=$pay_row[minbid];?>
</td>
<td align="center">
<?=$pay_row['bidnum'];?>
</td>
<td align="center">
<a name= "link1" href="javascript:unsetauto(<? echo $feature_row['productid']; ?>,<? echo $pay_row['auto']; ?>,1)" style="text-decoration:none;">
<img NAME = "IMG<?=$i?>" src=templates/<?=$tfold?>/img_files/delete.jpg border="0"></a>
</td>
</tr>
<?
$i++;
}
?>


	<?
	}
	?><TR><TD></TD></TR>
</table></TD></TR>
</table>
</TD></TR>
</table>
	<table width="980" cellpadding="0" cellspacing="0" align="center">
<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'?>
</table>
  </body>
</html>	