
	<? $title="$lang_221";
	require 'templates/'.$tfold.'/header.php';?>
	</td>
  </tr>
  
<tr><td valign="top">
<table border="0" align="center" cellpadding="3" cellspacing="0" width="100%" class="ft2">
<tr height=40>
<td colspan=2 class="ct"><font size="2"><b>
<?
    if($mode=="edit")
    echo "Edit Your Item"; 
    else if($mode=="repost")
    echo "Repost Your Item"; 
    else if($mode=="repost") 
    echo "Relist Your Item"; else echo "$lang_413";
 ?> 
<? echo "$lang_188" ?> </b>
</font> </td></tr>
<tr>
<td height="30" colspan="2" class="ct">
<? echo "$p_steps" ?> 
</td>
</tr>
<tr><td>
<? if($err_flag==1)
{ 
?>
<table width="100%" align="center"><tr><td>
<img src="templates/<? echo "$tfold" ?>/img_files/xclabid.gif"></td>
<td><font class="head_font" color="red"><? echo "$lang_388" ?></font></td>
<? if(!empty($err_title))
 {
 ?>
<tr><td>&nbsp;</td>
<td><a href="postdetails.php#txttitle"><? echo "$lang_145" ?></a> - <?= $err_title; ?></td></tr>
<? 
}
?>
<? if(!empty($err_des))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#areades"><? echo "$lang_189" ?></a> - <?= $err_des; ?></td></tr>
<? 
}
?>
<?
 if(!empty($err_subtitle))
 {
?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#cbosubcat"><? echo "$lang_393" ?></a> - <?= $err_subtitle; ?></td></tr>
<? 
}
?>
<? if(!empty($err_min_amt))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#txt_min_amt">Minimum <? echo "$lang_109" ?></a> - <?= $err_min_amt; ?></td></tr>
<? 
}
?>
<? if(!empty($err_fix_price))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#txt_quick"><? echo "$lang_190" ?></a> - <?= $err_fix_price; ?></td></tr>
<? 
}
?>
<? if(!empty($err_rev_price))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#txt_rev_price"><? echo "$lang_191" ?></a> - <?= $err_rev_price; ?></td></tr>
<? 
}
?>
<? if(!empty($err_qty))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#txt_qty">Quantity</a> - <?= $err_qty; ?></td></tr>
<? 
}
?>
<? if(!empty($err_dur))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#cbodur">Duration</a> - <?= $err_dur; ?></td></tr>
<? 
}
?>

<? 
if(!empty($err_size_qty))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#size_of_qty"><? echo "$lang_192" ?></a> - <?= $err_size_qty; ?></td></tr>
<? 
} 
?>

<?
if($en_dis[14]=="yes"){
 if(!empty($err_bid_inc))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#txt_bid_inc"><? echo "$lang_193" ?></a> - <?= $err_bid_inc; ?></td></tr>
<? 
} }
?>

<? if(!empty($err_img1))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#img1">Image1</a> - <?= $err_img1; ?></td></tr>
<? 
}
?>
<? if(!empty($err_img2))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#img2">Image2</a> - <?= $err_img2; ?></td></tr>
<? 
}
?>
<? if(!empty($err_img3))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#img3">Image3</a> - <?= $err_img3; ?></td></tr>
<? 
}
?>
<? if(!empty($err_img4))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#img4">Image4</a> - <?= $err_img4; ?></td></tr>
<? 
}
?>
<? if(!empty($err_img5))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#img5">Image5</a> - <?= $err_img5; ?></td></tr>
<? 
}
?>
<? if(!empty($err_terms) && ($en_dis[4]=="yes"))
 {
 ?>
<tr><td>&nbsp;</td><td><a href="user_reg.php#chkterms"><? echo "$lang_597" ?></a> - <?= $err_terms; ?></td></tr>
<? 
}
?>

<? if($tablename)
		{
		$tab_sql="select * from $tablename";
        $tab_res=mysql_query($tab_sql);
        $i =2; 
 while ($i < mysql_num_fields($tab_res))
{
    $tab_col = mysql_fetch_field($tab_res, $i);
	$dummy=$tab_col->name;
if(empty($_SESSION[$tab_col->name]))
        {
		require 'include/configurations.php'; // ITECHBIDS Configuration File

?>
<tr><td>&nbsp;</td><td><a href="postdetails.php#<?= $tab_col->name ?>"><?= $tab_col->name ?></a>-<?= $err_23 ?></td></tr>
	 <?
	    }
		else
		{
	    $var_type=$tab_col->type;
		if($var_type=="int" or $var_type=="tinyint")
		{
		if(!is_numeric($_SESSION[$tab_col->name]))
	    {
	    ?>
		 <tr><td>&nbsp;</td><td><a href="postdetails.php#<?= $tab_col->name ?>"><?= $tab_col->name ?></a>-<?= $err_23 ?></td></tr>
		<?
		}
		}
		}
	$i++;
}
}  ?>
</table></td></tr>
<tr><td>
<hr size="1" noshade class="hr_color"></td></tr>
<?
}
 ?>
<tr>
<td style="padding-left:6px;padding-right:3px;"> 
<form name="form1" Action="postdetails.php"  method=post enctype="multipart/form-data">
<table width="100%" cellpadding="0" cellspacing="0" >
 <?
  function display_subcategory($sub_cat_id,$sub_cat,$chk)
  {
  $sub1_sql="select * from site_categories where category_head_id=".$sub_cat_id;
  $sub1_res=mysql_query($sub1_sql);
  $sub1_tot=mysql_num_rows($sub1_res);
  if($sub1_tot!=0)
  {
  while($sub1_row=mysql_fetch_array($sub1_res))
  {
   if(trim($sub1_row['category_id'])==trim($sub_cat))
  {
  ?>
  <option value="<?= $sub1_row['category_id'] ?>" selected> &nbsp;&nbsp;&nbsp; <?= $sub1_row['category_name'] ?></option>
  <? 
  }
  else
  {
	?>
  <option value="<?= $sub1_row['category_id'] ?>"> &nbsp;&nbsp;&nbsp;<?= $sub1_row['category_name'] ?></option>
  <?
  }
  ?>
  <?
  $sub_cat_id=$sub_row1['category_id'];
  if($sub_cat_id)
  display_subcategory($sub_cat_id,$sub_cat,$chk);
  }
  } //while($sub1_row=mysql_fetch_array($sub1_res))
  } //function
  
  /////////////////////////////////////
  
  
  
  

function ret($ssid,$subsub_id)
{
 $ss_sql="select * from site_categories where category_head_id=$ssid";
 $sub_res=mysql_query($ss_sql);
 while($cat_row=mysql_fetch_array($sub_res))
 {
 
	  if($subsub_id==$cat_row['category_id'])
	  {
	  ?>
	 <option value="<?=$cat_row['category_id'];?>" selected ><?=$cat_row['category_name'];?></option>
	 <?
	 }
	 else
	 {
	 ?>
	 <option value="<?=$cat_row['category_id'];?>">&nbsp;&nbsp;&nbsp;<?=$cat_row['category_name'];?></option>
	 <?
	 }
  $ssid=$cat_row['category_id'];
  ret($ssid,$subsub_id);
 }

}

  
  
  
  
  
  
  //////////////////////////////////////
  
  
  
  
 if($_SESSION[categoryid])
 {
  $sub_sql="select * from site_categories where category_head_id=$_SESSION[categoryid]";
//  $sub_sql="select * from site_categories where category_head_id=7";
  $sub_res=mysql_query($sub_sql);
  $sub_tot=mysql_num_rows($sub_res);
 }
 
if($sub_tot!=0)
{ 
?>
<? 
  if(!empty($err_subtitle))
  {
  ?>
  <tr><td colspan="3">
<img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">&nbsp;<font class="head_font" color=red><? echo "$lang_120" ?> <? echo "$lang_394" ?></font>
  <br>
  <b><font class="head_font" color=red><? echo "$lang_393" ?></font></b></td></tr>
  <?
  }
  ?>
 <TR><TD width="180"> <b><font class="head_font" ><? echo "$lang_393" ?></font></b></td>
<td><select name=cbosubcat><option value="0">Select</option>
<? while($sub_row=mysql_fetch_array($sub_res))
 {
  if(trim($sub_row['category_id'])==trim($sub_cat))
  {
  ?>
  <option value="<?= $sub_row['category_id'] ?>" selected><?= $sub_row['category_name']?></option>
  <? 
  }
  else
    {
	?>
  <option value="<?= $sub_row['category_id'] ?>"><?= $sub_row['category_name'] ?></option>
  <?
  }
  $sub_cat_id=$sub_row['category_id'];
  $ssid=$sub_row['category_id'];
  ret($ssid,$sub_cat);
  }
  ?>
  </select>
 </td></tr>
 <? 
 }
 else
 { ?>
  <?
  if($file_path)
 require "$file_path";
   ?>
<? 
 }
 ?>
<? if(!empty($err_title))
 {?>
 <tr><td colspan="3">
<img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">&nbsp;<font class="head_font" color=red><?= $err_title ?></font>
 <br>
 <b><font class="head_font" color=red><? echo "$lang_145" ?></font></b> </td></tr>
 <?
  }
 ?>
<TR><TD width="180"><b><font class="head_font" ><? echo "$lang_145" ?></font></b></td>
 <td width=250><input type="text" name="txttitle" class="txtbig" value="<?= $producttitle; ?>">
 </td></tr>
  <? if(!empty($err_des))
 {
 ?>
  <tr><td colspan="3">
<img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">&nbsp;
 <font class="head_font" color=red><?= $err_des; ?></font>
 <br>
 <b><font class="head_font" color=red><? echo "$lang_189" ?></font></b> </td></tr>
 <?
  }
   ?>
  <TR><TD><b><font class="head_font" ><? echo "$lang_189" ?></font></b>
 </td></tr>
 <tr><td colspan="3" width="100%">
 <?php
include_once("HTMLEditor/fckeditor.php") ;
?>
<?php
$oFCKeditor = new FCKeditor('htmlcontent') ;
$oFCKeditor->BasePath = './HTMLEditor/' ;
$oFCKeditor->Value = $itemdes;
$oFCKeditor->Create() ;
?>
<br>
<font class="head_font" class="hint_font"><? echo "$lang_396" ?></font></td>
</tr>
<tr>
                <td width="180"><font class="head_font" ><b>Hit Counter Style
</b></font></td>
              <td>
<? 
if($item_counter_style==2)
{
 ?>
<input type="radio" name="item_counter_style" value=1 > 
 <b><font size=+1 color="#009900">
		    12345
			</font>
			</b> 
<input type="radio" name="item_counter_style" value=2 checked> 
<I><font size=+1 color="#003399">
		    12345
			</font>
			</I>  
<?
}
else
{
?>		 
<input type="radio" name="item_counter_style" value=1 checked> 
 <b><font size=+1 color="#009900">
		    12345
			</font>
			</b> 
<input type="radio" name="item_counter_style" value=2 > 
<I><font size=+1 color="#003399">
		    12345
			</font>
			</I>  
<?
}
?></td></tr>
 <?
  if($admin_start_row['set_value']=='yes')
 {
 ?>

 <? if($mode!="edit")
 {
 ?>
  <tr><td width="180"><b><font class="head_font"><? echo "$lang_519" ?></font></b></td><td>
<?
$qry="select * from genaralsettings where set_id=27";
 $d_table=mysql_query($qry);
 $m_delay_row=mysql_fetch_array($d_table);
 $max_delay=$m_delay_row['set_value'];
?>
 <select name="cbo_start_delay" >
  <option value=0 name=cbo_start_delay selected>Select</option>
<?
for($d=1; $d<=$max_delay; $d++){
?>
 <? if($start_delay==$d)
 {
 ?>
 <option value=<? echo "$d" ?> name=cbo_start_delay selected><? echo "$d" ?> Days</option>
 <?
 }
 else
 {
 ?>
 <option value=<? echo "$d" ?> name=cbo_start_delay><? echo "$d" ?> Days</option>
 <? 
 }}
 ?>
 </select></td></tr>
<?
}
 }
?>
<? if($_SESSION[postmethod]=="dutch_auction")
{
?>
 
 <? if(!empty($err_qty))
 {
 ?>
 <tr><td colspan="3"><img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">&nbsp;<font class="head_font" color=red><?= $err_qty?></font>
 <br>
 <b><font class="head_font" color=red>Quantity</font></b> </td> </tr>
 <?
 }
 ?>
 <TR><TD width="180"><b><font class="head_font">Quantity</font></b></TD>
<td width=250>
 <input type="text" name="txt_qty" class="txtsmall" value=<?= $qty; ?>>
 </td>
 <?
 } 
 ?>
 <? 
 if($admin_end_row['set_value']=="yes")
 {
 ?>
 
<? if(!empty($err_dur))
 { 
 ?>
 <TR><td colspan="3"><img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">&nbsp;<font class="head_font" color=red><?= $err_dur; ?></font>
 <br>
 <b><font class="head_font" color=red>Duration</font></b> </td>
</tr>
 <?
   }
 ?>
<TR><TD width="180"><b><font class="head_font" >Duration</font></b></td>
<td>
<?  if($admin_end_row['set_value']=='yes')
{
$auction_query="select * from auction_duration order by duration_id";
$table=mysql_query($auction_query);
?>
<select name="cbodur">
<?
while($row=mysql_fetch_array($table))
{
?>
<? if($dur==$row['duration'])
{
?>
<option value="<?= $row['duration'] ?>" selected><?= $row['duration'] ?> Days</option>
<?
}
else
{
?>
<option value="<?= $row['duration'] ?>" ><?= $row['duration'] ?> Days</option>
<?
}
} // while($row=mysql_fetch_array($table))
?>
</select>(No. of days the item in active stage)
</td>
 <?
 } 
 ?>
 </tr>
   <? 
    } 
   ?>
<? if($en_dis[12]=="yes"){ ?>
<tr><td width="180"><font class="head_font" ><b><? echo "$lang_397" ?></b></font></td>
 <?
 $qry="select * from genaralsettings where set_id=37";
 $repost_table=mysql_query($qry);
 $repost_row=mysql_fetch_array($repost_table);
 $repost=$repost_row['set_value'];
   ?>
  <td>
 <select name="repost">
 <option>Don't Use Auto Relist</option>
 <?
 for($i=1;$i<=$repost;$i++)
 {
  if($repost ==$i)
    echo "<option selected>$i </option>";
 else
   echo "<option>$i </option>";
 }
 ?>
 </select>
 </td>
 </tr>
<? } ?>
<? if($_SESSION[postformat]!="4") { ?>
<tr><td colspan="3">
	<? if(!empty($s_repost))
	{
	?>
	<input type="checkbox" name=s_repost value="yes" checked>
	<?
	}
	else
	{
	?>
	<input type="checkbox" name=s_repost value="yes">
	<?
	}
	?>
     <font class="head_font" ><? echo "$lang_600" ?></font>
 	</td></tr><? } ?>
<?
if(($_SESSION[postformat]!="3")&&($_SESSION[postformat]!="4"))
{
?>
<tr class="tr_border" width=980><td colspan="3"><font size="2"><b>Auction</b></font><b>Note:</b><? echo "$lang_198" ?> <? echo "$lang_381" ?> sale. </td>
</tr>

 <? if(!empty($err_min_amt))
 {
 ?>
 <tr><td  colspan="3"><img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">
 &nbsp;<font class="head_font" color=red><?= $err_min_amt?></font>
-
 <b><font class="head_font" color=red>Minimum <? echo "$lang_109" ?></font></b></td></tr>
 <?
 }
 ?>
 <TR><TD width="180"><b><font class="head_font" >Minimum <? echo "$lang_109" ?></font></b>
 </td>
<td width=250><input type="text" name="txt_min_amt" class="txtsmall" value=<?= $min_amt; ?>></td></tr>
<? if(!empty($err_rev_price))
 {
 ?>
 <TR><TD colspan="3"><img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">&nbsp;<font class="head_font" color=red><?= $err_rev_price?></font>
 <br>
 <b><font class="head_font" color=red><? echo "$lang_191" ?></font></b></td></tr>
 <?
  }
 ?>
<TR><TD width="180"><b><font class="head_font" ><? echo "$lang_191" ?></font></b></td>
<td width=250><input type="text" name="txt_rev_price" class="txtsmall" value=<?= $rev_price; ?>></td></tr>
<? if($en_dis[14]=="yes"){ ?>

<? if(!empty($err_bid_inc))
 {?>
 <tr><td colspan="3"><img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">&nbsp;<font class="head_font" color=red><?= $err_bid_inc?></font>
 <br>
 <b><font class="head_font" color=red><? echo "$lang_193" ?></font></b></td></tr>
 <?
  }
 ?>
<TR><TD width="180"><b><font class="head_font"><? echo "$lang_193" ?></font></b>
 </td><td width=250><input type="text" name="txt_bid_inc" class="txtsmall" value=<?= $bid_inc; ?>></td></tr>
<? } ?> 


<tr class="tr_border" width=980><td colspan="2"><font size="2"><b><? echo "$lang_381" ?> Sale</b></font></td></tr>
<tr>
                <td colspan="3"><? echo "$lang_398" ?></td>
              </tr>
<?
} 

?>

<? if(!empty($err_fix_price) )
 {?>
 <tr><td colspan="3"><img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">&nbsp;<font class="head_font" color=red><?= $err_fix_price; ?></font>
 <br>
 <b><font class="head_font" color=red><? echo "$lang_190" ?></font></b> </td></tr>
 <?
  }
 ?>
<TR><TD width="180"><b><font class="head_font"><? echo "$lang_190" ?></font></b></td>
<td width=250>
<input type="text" name="txt_quick" class="txtsmall" value=<?= $quick; ?>></td></tr>
 
 
<tr class="tr_border" width=980><td colspan="2"><font size="2"><b><? echo "$lang_200" ?> </b></font></td></tr>
<tr><td colspan="2">
<? if(!empty($err_img1))
 {?>
 <img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">&nbsp;<font class="head_font" color=red><?= $err_img1; ?></font>
 <br>
 <b><font class="head_font" color=red>Image1</font></b>
 <?
  }
  else
  {
 ?>
   <b><font class="head_font" >Image1</font></b>
   <? 
   }
   ?>
    <input type="file" name="img1" value="<?= $img1; ?>">
	<? if(!empty($_SESSION[img1]))
	{
	?>
	<img src="templates/<? echo "$tfold" ?>/img_files/gallery.png" width=10 height=10>
	<?
	}
	?></td></tr>
	<? 
	if($postformat !="4")
	{
	if($member_account !="1")
	{
		?>
	<tr><td colspan="2">
  <? if(!empty($err_img2))
  {
  ?>
 <img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">&nbsp;<font class="head_font" color=red><?= $err_img2; ?></font>
 <br>
 <b><font class="head_font" color=red>Image2</font></b>
 <?
  }
  else
  {
 ?>
   <b><font class="head_font" >Image2</font></b>
   <? }
   ?>
    <input type="file" name="img2" value=<?= $img2; ?>>
	<? if(!empty($_SESSION[img2]))
	{
	?>
	<img src="templates/<? echo "$tfold" ?>/img_files/gallery.png" width=10 height=10>
	<?
	}
	?></td></tr>
<tr><td colspan="2">
<? if(!empty($err_img3))
 {?>
 <img src="templates/<? echo "$tfold" ?>/img_files/xclabids.gif">&nbsp;<font class="head_font" color=red><?= $err_img3; ?></font>
 <br>
 <b><font class="head_font" color=red>Image3</font></b>
 <?
  }
  else
  {
 ?>
   <b><font class="head_font" >Image3</font></b>
   <? 
   }
   ?>
    <input type="file" name="img3" value=<?= $img3; ?>>
	<? if(!empty($_SESSION[img3]))
	{
	?>
	<img src="templates/<? echo "$tfold" ?>/img_files/gallery.png" width=10 height=10>
	<?
	}
	?></td></tr>
	<?
	} 
	} 
	?>
	<?  
	    $mem_sql="select * from member_details where user_id=$_SESSION[userid]";
        $mem_res=mysql_query($mem_sql);  
	    $mem_row=mysql_fetch_array($mem_res);
	    $member_account=$mem_row[member_account];
	$userid=$_SESSION[userid];
      $mem_plan=member_tp($userid);
	$sql="select * from site_fees where admin_id=$mem_plan";
	$exe=mysql_query($sql);
	$ret=mysql_fetch_array($exe);
	$gret=$ret['gallery_price'];
    $hret=$ret['homepage_price'];
	$sret=$ret['subtitle_price'];
	$bret=$ret['bold_price'];
	$highret=$ret['highlight_price'];
	$privateret=$ret['private_fee'];
	?>
	<tr class="tr_border" width=980><td colspan="2"><font size="2"><b> <? echo "$lang_317" ?>
    </font></b></td></tr>
	<tr><td colspan="3">
	<br>
	<b><font class="head_font"><? echo "$lang_318" ?></font></b>
    <br>
	<br>
	<table cellpadding="0" cellspacing="0" align="center" class="table_border1" width="100%">
	<tr bgcolor="#eeeeee"><td>&nbsp;</td><td><b>Item</b></td>
	<td><b># of Bids</b></td><td><b>Price</b></td>
	<td><b>Ends</b></td></tr>
	<tr><td><img src="templates/<? echo "$tfold" ?>/img_files/gallery.png"></td>
	<td><u><font color="blue"><? echo "$lang_319" ?></font></u></td>
	<td>-</td>
	<td>$x.xx</td>
	<td>12h 50m</td></tr>
	<tr bgcolor="eeeeee"><td>&nbsp;</td>
	<td><u><font color="blue"><? echo "$lang_145" ?></font></u>
	<br><br>
	Sub Title</td>
	<td>-</td>
	<td>$x.xx</td>
	<td>12h 50m</td></tr>
	<tr><td>&nbsp;</td>
	<td><b><u><font color="blue"><? echo "$lang_320" ?></font></u></b></td>
	<td>-</td>
	<td>$x.xx</td>
	<td>12h 50m</td></tr>
	</table>
		</td></tr>	
		<?
		 $user_query="select * from member_details where	user_id='$_SESSION[userid]'";
		$table=mysql_query($user_query);
		if($row=mysql_fetch_array($table))
		{
		 $member_type=$row['member_account'];
		}
		?>
	<tr><td  colspan="3">
	<? if(!empty($Gallery))
	{
	?>
	<input type="checkbox" name=chkGallery value="yes" checked>
	<?
	}
	else
	{
	?>
	<input type="checkbox" name=chkGallery value="yes">
	<?
	}
	?>
    <font class="head_font" >
	Gallery <? echo  $default_cur."(" .  $gret .")"; ?>	 [Requires a picture if already picture is not added. <a href="postdetails.php#img1"><? echo "$lang_117" ?> a picture now </a>] <br>
    <? echo "$lang_322" ?> 
    </font>
	<input type=hidden name="gallery" value="<? echo $gret; ?>">
 	</td></tr>
   <tr><td  colspan="3">
	<? if(!empty($Home))
	{
	?>
	<input type="checkbox" name=chkHome value="yes" checked>
	<?
	}
	else
	{
	?>
	<input type="checkbox" name=chkHome value="yes">
	<?
	}
	?>
    <font class="head_font">
	Home Page Featured  
	<?  echo $default_cur."(" . $hret. ")"; ?>
	<input type=hidden name="home_page" value="<? echo $hret; ?>">
    </font>
 	</td></tr>
	<tr><td  colspan="3">
	<? if(!empty($Bold))
	{
	?>
	<input type="checkbox" name=chkBold value="yes" checked>
	<?
	}
	else
	{
	?>
	<input type="checkbox" name=chkBold value="yes">
	<?
	}
	?>
     <font class="head_font" >Bold <br> <?  echo $default_cur."(" . $bret .")"; ?>
    <? echo "$lang_399" ?> 
    </font>
	<input type=hidden name="bold" value="<?  echo $bret; ?>">
 	</td></tr>

<?
if(($en_dis[13]=="yes")&&($_SESSION[postformat]!="4")){
?>
  <tr><td  colspan="3">
	<? if(!empty($Privateauc))
	{
	?>
	<input type="checkbox" name=chkPrivateauc value="yes" checked>
	<?
	}
	else
	{
	?>
	<input type="checkbox" name=chkPrivateauc value="yes">
	<?
	}
	?>
     <font class="head_font" >Private Auction <br> <?  echo $default_cur."(" . $privateret .")"; ?>
    <? echo "$lang_399" ?> 
    </font>
	<input type=hidden name="privateauc" value="<?  echo $privateret; ?>">
 	</td></tr>
<?
}
?>


	<tr><td  colspan="3">
	<? if(!empty($Highlight))
	{
	?>
	<input type="checkbox" name=chkHighlight value="yes" checked>
	<?
	}
	else
	{
	?>
	<input type="checkbox" name=chkHighlight value="yes">
	<?
	}
	?>
    <font class="head_font">Highlight  <br> 
	<?  echo $default_cur."( " . $highret .")"; ?>
   <? echo "$lang_401" ?>  
    </font>
 	</td></tr>
	<input type=hidden name="highlight" value="<?  echo $highret; ?>">
		<?
	?>

<?if($_SESSION[postformat]!="4"){
if(($e_shop=="yes")||(($e_shop!="yes")&&($addshop=='yes'))){
?>
<tr><td  colspan="3">
	<? if($addshop=='yes')
	{
	?>
	<input type="checkbox" name=rdshop value="yes" checked>
	<?
	}
	else
	{
	?>
	<input type="checkbox" name=rdshop value="yes">
	<?
	}
	?>
     <font class="head_font" >Add this item to shop
    </font>
	</td></tr>

<?
}}
?>


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



	  <tr><td colspan="6"><hr></td></tr>
 <tr>
   <td colspan="6"> <b><font class="head_font"><? echo "$lang_443" ?></font></b> </td>
 </tr>
  
  <? $term="select * from terms where term_id=1";
     $term_res=mysql_query($term);
	 $term_row=mysql_fetch_array($term_res);
  ?>
  <tr><td colspan="3">
 <? echo " <textarea cols=70 rows=10>".$term_row['term_body']."</textarea>"; ?>
  </td></tr>
<tr><td colspan="3">
  <table cellpadding="0" cellspacing="0">
  <tr><td colspan="2">
   <input type="checkbox" name=chkterms <?if(!empty($terms)){ echo "checked=checked";}?>>
   &nbsp;&nbsp; I agree to the following:
  </td></tr>
  <tr><td>
  <ul type="disc">
  <li>  I accept the User Agreement and Privacy Policy above.
  </li>
   <li> <? echo "$lang_445" ?><? echo "$lang_146" ?>  
  </li>
  </ul></td></tr></table>
</td></tr>

<?
}
?>




























    <input type="hidden" name=flag value="1">
	<input type="hidden" name="cat_id" value=<?= $cat_id; ?>>
	<input type="hidden" name=mode value="<?= $mode; ?>">
	<input type="hidden" name=postformat value="<?= $postformat; ?>">
	<input type="hidden" name=productid value=<?= $productid; ?>>
	<input type="hidden" name=own_html_flag value=<?= $ownhtml; ?>>
    <tr><td colspan="2" align="center">
	<? if($mode=="" or $mode=="relist" or $mode=="repost")
	{
	?>
	<input class="submit_button" type="submit" name=detsub value=Continue>
	<?
	}
	else if(($mode=="change")||($mode=="edit"))
	{ 
	?>
	<input class="submit_button" type="submit" name=detsub value="Save" >
    <?
	}
	?></td></tr>
   </table>
   </form>
