
   <?
	 $title="Details of item";
	 require 'templates/'.$tfold.'/header.php';
require 'include/calculate.php';

   ?>
</td>
</tr>
<tr><td valign="top"><table width="980" align="center" cellpadding="0" cellspacing="0" border=0>
<tr><td height=30>
<table width="980" align="center" cellpadding="0" cellspacing="0" border=0 class="ft2">
<tr><td colspan="3" class="ct" height=30>
<font size="2">
<b><div align="left">
&nbsp;&nbsp; Review Your Payment Details For Listing Item <?= $producttitle ?>( # <?= $productid ?> ) </div> </b></font> </td></tr>
<tr align="center" height=35>
<td width=2>&nbsp;</td>
    <td align="center">
	<table cellpadding="0" cellspacing="0"><tr><td>
	You are paying $&nbsp;<?= $total_setup_fee ?> for Listing Your &nbsp;<?= $producttitle ?>( # <?= $productid ?>).</td></tr>
	<tr><td>
    <? echo "$lang_524" ?><?= $producttitle ?>, <? echo "$lang_576" ?> of the page. 
	</td></tr></table>
	</td>
	<td width=2>&nbsp;</td>
	</tr></table></td></tr>
<table width="980" align="center" cellpadding="0" cellspacing="0" border=0 class="ft2"> 	
<tr><td  class="ct" height=25>
<font size="2">
<b><div align="left">
&nbsp;&nbsp; Review Payment Details</div> </b></font> </td></tr>
<tr><td><br /></td></tr>
<tr><td align="center">
<table cellpadding="0" cellspacing="0" width=40%>
<? 
if(($insertion_fee) && ($wantitfee!="yes"))
{
?>
<tr><td align="right"><b>Insertion Fee:</b></td><td align="left"><?= $insertion_fee ?>&nbsp;<?= $default_cur_code  ?></td></tr>
<?
}
if($Gallery)
{
?>
<tr><td align="right"><b>Gallery Item Fee:</b></td><td align="left"><?= $gallery_price ?>&nbsp;<?= $default_cur_code  ?></td></tr>
<?
}
if($wantitfee=="yes")
{
?>
<tr><td align="right"><b>Wanter Ad Posting Fee:</b></td><td align="left"><?= $want_it_fee ?>&nbsp;<?= $default_cur_code  ?></td></tr>
<?
}
if($Bold)
{

?>
<tr><td align="right"><b>Bold Item Fee:</b></td><td align="left"><?= $bold_price ?>&nbsp;<?= $default_cur_code  ?> </td></tr>
<?
}
if($Highlight)
{

?>
<tr><td align="right"><b>Highlight Item Fee:</b></td><td align="left"><?= $highlight_price ?>&nbsp;<?= $default_cur_code  ?> </td></tr>
<?
}
if($Privateauc)
{

?>
<tr><td align="right"><b>Private Auction Fee:</b></td><td align="left"><?= $private_fee ?>&nbsp;<?= $default_cur_code  ?> </td></tr>
<?
}

if($Subtitle)
{

?>
<tr><td align="right"><b>Subtitle Item Fee:</b></td>
<td align="left"><?= $subtitle_price ?>&nbsp;<?= $default_cur_code  ?> </td></tr>
<?
}
?>
<?
if($Home)
{
?>
<tr><td align="right"><b>Homepage Featured Item Fee:</b></td><td align="left"><?= $homepage_price ?>&nbsp;<?= $default_cur_code  ?></td></tr>
<?
}
?>
<tr><td colspan="2"><hr /></td></tr>
<tr><td align="right"><b>Total Setup Fees:</b></td><td align="left"><?= $total_setup_fee ?>&nbsp;<?= $default_cur_code  ?></td></tr>
<tr><td colspan="2"><hr /></td></tr>
<?
if(($relisted=="yes")&&($r_fee!=0))
{
?>
<tr><td align="right"><b>Relist Discount:</b></td><td align="left"><?= $r_fee ?>&nbsp;<?= $rsubs ?></td></tr>
<?
}
if($discount=="yes")
{
?>
<tr><td align="right"><b>Discount:</b></td><td align="left"><?= $c_amount ?>&nbsp;<?= $subs ?></td></tr>
<?
}
?>

<?
$_SESSION[total_setup_fee]=$total_setup_fee;
?>
<?
if((($relisted=="yes")&&($r_fee!=0))||($discount=="yes"))
{
?>
<tr><td colspan="2"><hr /></td></tr>
<tr><td align="right"><b>Final Setup Fees:</b></td><td align="left"><?= $tot_amm ?>&nbsp;<?= $default_cur_code  ?></td></tr>
<tr><td colspan="2"><hr /></td></tr>
</table></td></tr>
<?
}
?>
</td></tr>
<tr><td  class="ct" height=25>
<font size="2">
<b><div align="left">
&nbsp;&nbsp; Notice </div> </b></font> </td></tr>

<?
if(($default_mode=="Live")&&($amount!=0)&&($amount!=0.00))
{
?>

<tr><td align="center"><font color="red" size="2"><b>
<? echo "$lang_526" ?></b></font> </td></tr>
<tr>
<td align="left"><table border=0 align=center cellpadding=5 cellspacing=2 width=75% class="subtable">
<tr><td align=center>
<?
gateways($amount, failure.php, success.php, $payid, $gatewayno, $gatewayname, 'Auction Fees', $default_cur_code, $yoursite, '', $tr_id);
?>
</td></tr>
</table>
</td></tr>
<?
}
?>
<?
if(($default_mode=="Account")&&($amount!=0)&&($amount!=0.00))
{
?>
<tr><td align="center"><font color="red" size="2"><b>
<? echo "$lang_526" ?></b></font> </td></tr>
<tr>
<td align="center"><?
$userid=$_SESSION['userid'];
$type="success";
if(pay_account($userid,$amount,$type))
{
echo "<center>Click <a href=account_trans.php?type=$type&tr_id=$tr_id>here</a> to pay.</center>";
}
else
{
echo "<center>$err_38</center>";
}
?>
</td></tr></table>
<?
}
?>
<?
if(($amount==0)||($amount==0.00))
{
?>
<tr><td align="center"><font color="red" size="2"><b>
<? echo "$lang_526" ?></b></font> </td></tr>
<tr>
<td align="center"><?
$userid=$_SESSION['userid'];
$type="success";
if(pay_account($userid,$amount,$type))
{
echo "<center>Click <a href=account_trans.php?type=$type&tr_id=$tr_id>here</a> to continue.</center>";
}
else
{
echo "<center>$err_38</center>";
}
?>
</td></tr></table>
<?
}
?> 


 </td></tr></table>