 <table width="980" border="0" cellpadding="0" cellspacing="0" align="center" class="ft2">
  <tr>
    <td valign="top">
	<? $title="The Best Marketplace";
	require 'templates/'.$tfold.'/header.php';?>
	</td>
  </tr>
  
  <form name=require_no action="require_item_no.php" method="post">
   <!--  <tr height=40>
	<td class="tr_border"><font size="+1"><b>
  <? if($mode=="edit") echo "Edit an Item"; else if($mode=="repost") echo "Repost an Item"; else echo "Relist an Item";
  ?> </b></font> </td><td class="tr_border">&nbsp;</td></tr> -->
<tr> 
    <td valign="top" >
    <? require 'include/usermenu.php';?></td>
   <td valign="top">
   <br>
   <br>
   <br>
   <font size=+1 color="#0000CC">
    <? if($mode=="edit") echo "Edit an Item:"; else if($mode=="repost") echo "Repost an Item:"; else echo "Relist an Item:";
  ?></font>
  <br>
  <br>
   <table width="550" cellpadding="5" cellspacing="2" align="left" >
   <? if($err_flag==1)
  {
  ?>
  <tr><td align='center' colspan="2"><br><br><font color="red" size=2>Please Select the Item Id</font></td></tr>
  <?
  }
  ?>
  <? if($msg)
  {
  ?>
  <tr><td colspan="2" align="center"><font size="2" color="red"><?= $msg; ?></font></td></tr>
  <?
  }
  ?>
  <tr>
  <td width="52%" align="right"><b>Item Id</b></td>
  <td width="48%" align="left">
  <? 
      if($mode=="repost")
	  $item_sql="select * from auction_details where user_id=$user_id and status='Closed'";
	  else 
	  $item_sql="select * from auction_details where user_id=$user_id";
     $item_res=mysql_query($item_sql);
	 ?>
	 	 <select name=item_no>
		 <option value="select">Select</option>
		 <?
		  while($item_row=mysql_fetch_array($item_res))
	     {
	    ?>
        <option value=<?= $item_row[productid] ?>  ><?= $item_row[producttitle] ?> (# <?= $item_row[productid] ?>)</option>
         <?
         }
         ?>
  </select>
  </td></tr>
  <input type="hidden" name=flag value="1">
  <input type="hidden" name="mode" value="<?= $mode;?>" >
   <tr>
    <td colspan="2" align="center">(Which item you have to change please select 
      the item no.)</td>
          </tr>
  <tr><td align="center" colspan="2"><input type=submit value="Continue" name=item>
  </td></tr>
  </table>
 
  </table>
     </td></tr>
    </form>
  <tr><td><? require'templates/'.$tfold.'/footer.php';?>  </td></tr></table>