
	<? $title="$lang_221";
	require 'templates/'.$tfold.'/header.php';?>
	</td>
  </tr>

<tr><td valign="top">
<table cellpadding="0" cellspacing="0">
<tr><td valign="top">
<table width="100%" align="center" cellpadding="0" cellspacing="0" border=0>
<tr>
<td valign="top" >
	<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 align="center" height=35>
<td width=2>
<? require'include/usermenu.php'; ?>
</td></tr></table></td>
<td valign="top" width=100%>
<table valign="top " cellspacing="0" cellpadding="0" class"ft">
<? if($mode=="buy")
{
?>
<tr><td width=600>
<table cellpadding="0" cellspacing="0" class"ft">
<tr><td class="tr_border" height=30 width=750 id=buyingtotals>
<table cellpadding="0" cellspacing="0" width=750 >
<tr><td align="left" class="font_white" height="30">
<b>
&nbsp;&nbsp; <? echo "$lang_260" ?>&nbsp;&nbsp;&nbsp;
</b></td>
<td align="right" class"ct" width=10><a href="myauction.php?#buyingtotals">
<img src="templates/<? echo "$tfold" ?>/img_files/up_arr.gif" border=0></a></td>
<td align="right" class="ct" width=10>
<a href="myauction.php?#buyingtotals">
<img src="templates/<? echo "$tfold" ?>/img_files/leasing-arrows-dn.gif" border=0>
</a></td>
</tr></table>
</td></tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" width=550>
<tr><td >
<table class=table_border1>
<tr><td align="left" width=70>
<b>&nbsp;Bidding</b></td>
<td align="left" bgcolor=white><b>&nbsp;<? echo "$lang_261" ?>&nbsp;<?= $bid_total_records; ?></b></td>
<td align="left" bgcolor=white><b>&nbsp;pay:&nbsp;<?= $pay_total_records ?></b></td>
</tr>
</table>
</td></tr>

<tr><td>
<table>
<tr><td align="left" width=70 class=table_border1>
<b>&nbsp;pay</b></td>
<td align="left" bgcolor=white><b>&nbsp;<? echo "$lang_165" ?>&nbsp;<?= $pay_total_records; ?></b></td>
<td align="left" bgcolor=white><b>&nbsp;<? echo "$lang_264" ?>&nbsp;$ <?= $pay_items_amt ?></b></td>
</tr>
</table></td></tr>
</table>
</td></tr>
</table>
</td></tr>

<?
}
?>
<?
if($mode=="sell" or $mode=="")
{
?>
<tr><td>
<table cellpadding="0" cellspacing="0" class"ft">
<tr><td height=30 width=750 id=paydetails>
<table cellpadding="0" cellspacing="0" width=750 >
<tr>
<td align="left" class="font_white" height="30">
<b>&nbsp;&nbsp;Item's waiting for approval:&nbsp;&nbsp;&nbsp;</b>(<?= $pay_total_records; ?>&nbsp;Items)</b></td>
<td align="right" class="ct" width=10>
<a href="myauction.php?#paydetails">
<img src="templates/<? echo "$tfold" ?>/img_files/up_arr.gif" border=0></a></td>
<td align="right" class="ct" width=10>
<a href="myauction.php?#didntwindetails">
<img src="templates/<? echo "$tfold" ?>/img_files/leasing-arrows-dn.gif" border=0>
</a></td>
</tr></table>
</td></tr>
<tr >
<td >
<table cellspacing="0" cellpadding="0" class="ft2" width=750>
<?
if($pay_total_records > 0)
{ 

?>
<form name="pay_frm" Action="no_app.php" method=post>
<tr>
<td class="tr_botborder" width=5%>&nbsp;
</td> 
<td class="tr_botborder" width=30%><? echo "$lang_515" ?></td>
<td width="11%" class="tr_botborder"><? echo "$lang_516" ?>  </td>
<td width="15%" class="tr_botborder" colspan="2"><? echo "$lang_517" ?> </td>
<td width="22%" class="tr_botborder" colspan="2"><? echo "$lang_518" ?></td>
</tr>
<?
		
while($pay_row=mysql_fetch_array($pay_resh))
{
$user_sql="select * from member_details where user_id=".$pay_row['user_id'];
$user_res=mysql_query($user_sql);
$user=mysql_fetch_array($user_res);
$sellername=$user[user_name];
$userid=$pay_row['user_id'];
$mem_plan=member_tp($userid);
$fee_sql="select * from site_fees where admin_id=$mem_plan";
$fee_res=mysql_query($fee_sql);
$fee_row=mysql_fetch_array($fee_res);
$gallery_price=$fee_row[gallery_price];
$homepage_price=$fee_row[homepage_price];
$subtitle_price=$fee_row[subtitle_price];
$bold_price=$fee_row[bold_price];
$highlight_price=$fee_row[highlight_price];
$private_fee=$fee_row[private_fee];
$want_it_fee=$fee_row[want_it_fee];
$insertion_fee=$fee_row[Insertion_fee];
$total_setup_fee=$insertion_fee;

  $featuresql="select * from featuredproducts where productid=".$pay_row['productid'];
 $featureres=mysql_query($featuresql);
 $featurerow=mysql_fetch_array($featureres);
 
   $Gallery=$featurerow[gallery_feature];
   $Border=$featurerow[Border];
   $Highlight=$featurerow[highlight];
   $Privateauc=$featurerow[privateauc];

   $Bold=$featurerow[bold];
   $Home=$featurerow[home_feature];


if($Gallery)
{
$total_setup_fee=$total_setup_fee+$gallery_price;
}
if($Bold)
{
$total_setup_fee=$total_setup_fee+$bold_price;
} 
if($Highlight)
{
$total_setup_fee=$total_setup_fee+$highlight_price;
}
if($Privateauc)
{
$total_setup_fee=$total_setup_fee+$private_fee;
}

if($Subtitle)
{
$total_setup_fee=$total_setup_fee+$subtitle_price;
}
if($Home)
{
$total_setup_fee=$total_setup_fee+$homepage_price;
}


if($pay_row['selling_method']=="want_it_now")
{
$total_setup_fee=$want_it_fee;
}
$amount="$total_setup_fee";



?>
<tr>
<td class="tr_botborder" width=5%> &nbsp;
</td>
<td class="tr_botborder" width=30%>
<a href="feedback.php?user_id=<?=$pay_row['user_id'];?>" id="dislink">
<? echo $pay_row['productid'];?></a>
</td>
<td class="tr_botborder"><?= $default_cur ?>&nbsp;<?  echo $total_setup_fee; ?> </td>
<td class="tr_botborder " colspan="2" >
<?
  $custom_date=explode(" ",$pay_row[bid_starting_date]);
  $custom_date1=$custom_date[0];
  $custom_time=$custom_date[1];
  $custom_date3=substr($custom_date1,"-2");
  $custom_date2=explode("-",$custom_date1);
  $custom_date1=$custom_date2[0];
  $custom_date2=$custom_date2[1];
  $custom_date4=$custom_date3."-"."$custom_date2"."-"."$custom_date1"." "."$custom_time";
  echo  $custom_date4;
?>
</td>
<td class="tr_botborder" colspan="2" >
<? $var=$pay_row[user_id]."-".$pay_row[productid]; ?>
<select name=cbopayAction style="width:100px;" onchange="go_page_link(this.value,'<?= $pay_row[productid]; ?>',<?= $pay_row[user_id] ?>)">
<option value="0">Action</option>
<option value="5">Delete</option>
</select>
</td></tr>
<tr>
<td class="tr_botborder_1" height="30">&nbsp;  </td>
<td class="tr_botborder_1" height="30" colspan=5 align="left">
<a href="<? if($pay_row[selling_method]!="ads") {  ?>itechd.php<? }else{?>classifieds.php<?}?>?productid=<?= $pay_row['productid']?>">
<?  echo $pay_row['producttitle']; ?></a>&nbsp;(<?  echo $pay_row['productid']; ?> )</td>
<td class="tr_botborder_1" height="30">&nbsp;  </td></tr>
<?
} // while
?>
<input type="hidden" name="pay_delete" />
<input type="hidden" name="seller_id"  />
<input type="hidden" name="productid"  />
<tr>
<td colspan="7" class=tr_botborder> 
</td>
</tr>
</form>
<?
}
else
{
?>
<tr>
<td class="tr_botborder_1" height="30" colspan=5 align="left">
You do not have any pay items to display at this time. 
</td>
</tr>
<?
}
?>
</table>
</td></tr>
</table>
</td></tr>
<?
} // if($mode=="pay" or $mode=="")
?>
</table></td>
</tr>
</table>
<tr><td>
<? 
 require 'templates/'.$tfold.'/footer.php';					
?>
</td></tr>
</table></td></tr>