<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><td valign="top">
<table cellpadding="0" cellspacing="0" align="center" class="ft2" width="100%">
<tr height=40>
<td align="center"><font size="2"><b>
&nbsp;<? echo "$lang_336" ?></b></font></td></tr>
<tr><td align="center"><font size="2" color=green><b><? echo "$lang_324" ?></b></font></td></tr>
<tr><td align="center"><b><? echo "$lang_325" ?></b>&nbsp;<a href="itechd.php?productid=<?= $productid ?> "><?= $_SESSION[item_name]; ?></a></td></tr>
<tr>
<td align="center"><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="ct">
<table width="100%" cellpadding="0" cellspacing="0" align="center" border="0" class="ft2">
<tr height=40>
<td class="ct"><font size="2"><b>
<? echo "$lang_327" ?>&amp; <? echo "$lang_328" ?></b></font></td></tr>
<tr>
<td height="30" colspan="2" class="ct">
  <? echo "$p_steps" ?>
</td>
</tr>
<?
}
?>
<tr><td>&nbsp;</td></tr>
<tr>
<td class="ct"><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%>
	<tr  valign="top">
	<td class="ct" height="30" valign="top">
	<div align="left">
    <b>Title & Description </b></div></td>
	<td class="ct"><div align="right"><a href="postdetails.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>
 <? if($_SESSION[min_amt])
	{ 
	?>
    <tr><td><b>Minimum <? echo "$lang_109" ?></b></td><td align="left"><?= $_SESSION[min_amt]?></td></tr>
	<?
	}
	?>
	<? if($bid_permission=='yes')
	{ 
	?>
    <tr><td><b><? echo "$lang_193" ?></b></td>
	<td>
   <?
   if($_SESSION[bid_inc]=="")
   {
	$val=mysql_query("select * from bidincrement");
	while($val_row=mysql_fetch_array($val))
	{
		if( ($val_row['bid_from'] <= $_SESSION[min_amt]) && ($_SESSION[min_amt] <= $val_row['bid_to']) )
		{
			$_SESSION['bid_inc']=$val_row['bid_inc'];
			echo $val_row['bid_inc'];
		}
	}
   }
   else
   { 
   echo $_SESSION[bid_inc]; 
   }?></td></tr>
   <?
   }
   ?>
	<? if($_SESSION[rev_price])
	{
	?>
    <tr><td><b><? echo "$lang_191" ?></b></td><td><?= $_SESSION[rev_price] ?></td></tr>
	<?
	}
	?>
	<? if($_SESSION[start_delay])
	{
	?>
    <tr><td><b><? echo "$lang_519" ?></b></td><td><?= $_SESSION[start_delay]." Days" ?></td></tr>
	<?
	}
	?>
	<? if($_SESSION[quick_price])
	{
	?>
    <tr><td><b><? echo "$lang_190" ?></b></td><td><?= $_SESSION[quick_price] ?></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%>
	<tr  valign="top">
	<td class="ct" height="30" valign="top">
	<div align="left">
    <b>Images</b></div></td><td class="ct" colspan="2">
	<div align="right"><a href="postdetails.php?mode=change"><? echo "$lang_332" ?>s</a></div>
	</td></tr>
	<? 	if($_SESSION[image1])
	{
	
	               $img=$_SESSION[image1];
				   list($width, $height, $type, $attr) = getimagesize("uploads/$img");
				   $h=$height;
				   $w=$width;
				   if($h>200)	
				   {
				   $nh=200;
				   $nw=($w/$h)*$nh;
				   $h=$nh;
				   $w=$nw;
				   }
				  if($w>160)
				  {
				  $nw=160;
				  $nh=($h/$w)*$nw;
				  $h=$nh;
				  $w=$nw;
				  }
	?>
	<tr align="center"><td><img src="uploads/<?= $_SESSION[image1] ?>" width=<?= $w; ?> height=<?=$h?>  ></td>
	<?
	}
	?>
    <? 	if($_SESSION[image2])
	{
	               $img=$_SESSION[image2];
				   list($width, $height, $type, $attr) = getimagesize("uploads/$img");
				   $h=$height;
				   $w=$width;
				   if($h>200)	
				   {
				   $nh=200;
				   $nw=($w/$h)*$nh;
				   $h=$nh;
				   $w=$nw;
				   }
				  if($w>160)
				  {
				  $nw=160;
				  $nh=($h/$w)*$nw;
				  $h=$nh;
				  $w=$nw;
				  }
	?>
	<td><img src="uploads/<?= $_SESSION[image2] ?>" width=<?= $w; ?> height=<?=$h?> ></td>
	<?
	}
	?>
    <? 	if($_SESSION[image3])
	{
	$img=$_SESSION[image2];
				   list($width, $height, $type, $attr) = getimagesize("uploads/$img");
				   $h=$height;
				   $w=$width;
				   if($h>200)	
				   {
				   $nh=200;
				   $nw=($w/$h)*$nh;
				   $h=$nh;
				   $w=$nw;
				   }
				  if($w>160)
				  {
				  $nw=160;
				  $nh=($h/$w)*$nw;
				  $h=$nh;
				  $w=$nw;
				  }
	?>
    <td><img src="uploads/<?= $_SESSION[image3] ?>" width=<?= $w; ?> height=<?=$h?>></td>
	<?
	}
	?>
    </tr>
	</table>
</td></tr>
<tr><td>
<table border="0" align="center" cellpadding="0" cellspacing="0" width=100%>
	<tr  valign="top">

<?
if($en_dis[11]=="yes"){ ?>


	<td class="ct" height="30" valign="top">
	<div align="left">
    <b><? echo "$lang_202" ?> </b></div></td>
	<td class="ct"><div align="right"><a href="ship_itechd.php?mode=change">Edit 
                  <? echo "$lang_202" ?></a></div>
	</td></tr>
	 	<tr><td><b>Shipping Route</b></td><td>
		 <? 
		if($_SESSION[shipping_route]=="Australia Asia Americanada Europe Africa")
    	{
		 echo "WorldWide";
		}
		else
		  echo $_SESSION[shipping_route];
		 
		?> </td></tr>
	<tr><td><b><? echo "$lang_205" ?></b></td><td> <?= $_SESSION[shipping_amt]; ?> </td></tr>

<?
}
?>

        <tr><td><b>Tax</b></td><td align="left"><?=$_SESSION[tax]?></td></tr>
    	</table>
	</td></tr>

<tr><td>
<form name=preview Action="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>
