<table width="980" border="0" cellpadding="0" cellspacing="0" align="center" >
<tr>
<td valign="top">
	<? 
	$title="$lang_221";
	require 'templates/'.$tfold.'/header.php';
	?>
	</td>
    </tr>
   
<?
if($sucess==1)
{
?>
<tr height=40>
<td class="tr_border"><font size="2"><b>
&nbsp;<? echo "$lang_336" ?></b></font></td></tr>
<tr><td valign="top">
<table cellpadding="0" cellspacing="0" align="center" class="ft2" width="100%">
<tr><td><font size="2" color=green><b><? echo "$lang_324" ?></b></font></td></tr>
<!-- <tr><td><b><? echo "$lang_325" ?></b>&nbsp;<a href="review.php?productid=<?= $productid ?> "><?= $item_row[producttitle]; ?></a></td></tr> -->
<tr><td><b><? echo "$lang_325" ?></b>&nbsp;<a href="classifieds.php?productid=<?= $productid ?> "><?= $_SESSION[item_name]; ?></a></td></tr>
<tr>
<!-- <td><form name="relist" Action="modifyitem_cate.php" method="get">
<input type="hidden" name="productid" value="<?= $productid ?>" >
<input type="hidden" name="mode" value="relist" >
<input class="submit_button" type="submit" name="relist" value="Sell Similar Item"> 
 &nbsp;&nbsp;&nbsp; or  --> <td><a href="selectpostformat.php"><? echo "$lang_326" ?> </a>
 </form></td></tr>
</table></td></tr>

</td></tr>
<tr><td><? require 'templates/'.$tfold.'/footer.php'; ?></td></tr></table>



<?
$_SESSION[item_name]="";
exit();
}
else
{
?>
<tr><td class="ft2">
<table width="100%" cellpadding="0" cellspacing="0" align="center" border="0">
<tr height=40>
<td class="tr_border"><font size="2"><b>
<? echo "$lang_327" ?>&amp; <? echo "$lang_328" ?></b></font></td></tr>

<tr class="sub_tr_border">
<td height="30" colspan="2" >
<? echo "$p_steps" ?>
</td>
</tr>
<?
}
?>
<tr><td>&nbsp;</td></tr>
<!-- <tr >
<td class="tr_top_border"><font class="head_font"><b><? echo "$lang_329" ?></b></font>
</td></tr>
<tr><td><a href="review.php">review</a><br><hr color="#999999" noshade></td></tr> -->
<tr>
<td class="tr_top_border"><font class="head_font"><b><? echo "$lang_330" ?></b></font>
</td></tr>
<tr><td><? echo "$lang_331" ?></td></tr>
<!-- <tr><td>
<table border="0" align="center" cellpadding="0" cellspacing="0" width=100% class="table_border_with_bg1">
	<tr  valign="top">
	<td bgcolor="#CCCCCC" height="30" valign="top">
	<div align="left">
    <b>Categories</b></div></td><td bgcolor="#CCCCCC">
	<div align="right"><a href="catselect.php?mode=change"><? echo "$lang_195" ?></a></div>
	</td></tr>
	<tr><td colspan="2">
	<?
	 $cat="select category_name from site_categories where category_id=".$_SESSION[categoryid];
     $cat_res=mysql_query($cat);
     $cat_row=mysql_fetch_array($cat_res); 
	 echo $cat_row[category_name];
	?></td></tr>
	</table>
</td></tr> -->
<tr><td>
<table border="0" align="center" cellpadding="0" cellspacing="0" width=100% class="table_border_with_bg1">
	<tr  valign="top">
	<td bgcolor="#CCCCCC" height="30" valign="top">
	<div align="left">
    <b>Title & Description </b></div></td>
	<td bgcolor="#CCCCCC"><div align="right"><a href="post_ad.php?mode=change">Edit 
                  Title &amp; Description</a></div>
	</td></tr>
	<tr><td><b><? echo "$lang_145" ?></b></td><td> <?= $_SESSION[item_name]; ?> </td></tr>
	<tr><td><b><? echo "$lang_189" ?></b></td><td> <?= $_SESSION[des]; ?> </td></tr>
   <!--  <tr><td><b>Currency</b></td><td align="left"><?=$_SESSION[currency]?></td></tr> -->
    <? if($_SESSION[start_delay])
	{
	?>
    <tr><td><b><? echo "$lang_519" ?></b></td><td><?= $_SESSION[start_delay]." Days" ?></td></tr>
	<?
	}
	?>
	<tr><td><b>Duration</b></td><td><?= $_SESSION[dur] ?></td></tr>
    <tr><td><b>Quantity </b></td><td> <?= $_SESSION[qty]; ?> </td></tr>
	<tr><td></td><td></td></tr>
	</table>
</td></tr>
<tr><td>
<table border="0" align="center" cellpadding="0" cellspacing="0" width=100% class="table_border_with_bg1">
	<tr  valign="top">
	<td bgcolor="#CCCCCC" height="30" valign="top">
	<div align="left">
    <b>Images</b></div></td><td bgcolor="#CCCCCC" colspan="2">
	<div align="right"><a href="post_ad.php?mode=change"><? echo "$lang_332" ?>s</a></div>
	</td></tr>
	<? 	if($_SESSION[image1])
	{
	?>
	<tr align="center"><td><img src="uploads/<?= $_SESSION[image1] ?>"></td>
	<?
	}
	?>
    <? 	if($_SESSION[image2])
	{
	?>
	<td><img src="uploads/<?= $_SESSION[image2] ?>"></td>
	<?
	}
	?>
    <? 	if($_SESSION[image3])
	{
	?>
    <td><img src="uploads/<?= $_SESSION[image3] ?>"></td>
	<?
	}
	?>
    </tr>
	</table>
</td></tr>

<? 

if(!empty($Highlight) || !empty($Privateauc) || !empty($Border) || !empty($Bold) || !empty($Gallery) || !empty($Subtitle) || !empty($Home))
{
$fee_sql="select * from site_fees";
$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];


$admin_query="select * from genaralsettings where set_id=39";
$admin_table=mysql_query($admin_query);
$admin_row=mysql_fetch_array($admin_table);


$total_setup_fee=0;
}
?>
<tr><td>
<table border="0" align="center" cellpadding="0" cellspacing="0" width=100% class="table_border_with_bg1">
<tr  valign="top">
	<td bgcolor="#CCCCCC" height="30" valign="top">
	<div align="left">
    <b>Review the fees and submit your listing</b></div></td><td bgcolor="#CCCCCC">
	<div align="right"><a href="post_ad.php?mode=change"></a></div>
	</td></tr>
<? 
if($Gallery)
{
$total_setup_fee=$total_setup_fee+$gallery_price;
?>
<tr bgclor=#eeeeee><td align="left"><b><? echo "$lang_404" ?></b></td><td align="left" ><?= $gallery_price ?>&nbsp;<?= $default_cur ?></td></tr>
<?
}
if($Bold)
{
$total_setup_fee=$total_setup_fee+$bold_price;
?>
<tr bgclor=white><td align="left"><b><? echo "$lang_406" ?></b></td><td align="left"><?= $bold_price ?>&nbsp;<?= $default_cur ?> </td></tr>
<?
}
if($Highlight)
{
$total_setup_fee=$total_setup_fee+$highlight_price;
?>
<tr bgclor=#eeeeee><td align="left"><b><? echo "$lang_407" ?></b></td><td align="left"><?= $highlight_price ?>&nbsp;<?= $default_cur ?> </td></tr>
<?
}
if($Privateauc)
{
$total_setup_fee=$total_setup_fee+$private_fee;
?>
<tr bgclor=#eeeeee><td align="left"><b>Private Auction Fee</b></td><td align="left"><?= $private_fee ?>&nbsp;<?= $default_cur ?> </td></tr>
<?
}
if($Subtitle)
{
$total_setup_fee=$total_setup_fee+$subtitle_price;
?>
<tr bgclor=white><td align="left"><b><? echo "$lang_333" ?></b></td>
<td align="left"><?= $subtitle_price ?>&nbsp;<?= $default_cur ?> </td></tr>
<?
}
if($Home)
{
$total_setup_fee=$total_setup_fee+$homepage_price;
?>
<tr bgclor=#eeeeee><td align="left"><b><? echo "$lang_334" ?></b></td><td align="left"><?= $homepage_price ?>&nbsp;<?= $default_cur ?></td></tr>
<?
}
$_SESSION[total_setup_fee]=$total_setup_fee;
?>
<tr><td colspan="2"><hr /></td></tr>
<tr bgclor=white><td align="left"><b><? echo "$lang_335" ?></b></td>
<td align="left"><?= $total_setup_fee ?>&nbsp;<?= $default_cur ?></td></tr>
<tr><td colspan="2"><hr /></td></tr>
</table>
</td></tr>
<tr><td>
<form name=preview Action="post_preview.php" method=post>
<table align="center">
<tr><td>
<input type="hidden" name="flag" value=1>
<input type="button" value="Cancel" onClick="cancel()">
</td>
<td><input class="submit_button" type="submit" value="Submit"></td>
</tr></table>
</form>
</td></tr></td></tr>
