<?

$cyears=date("Y");
$cmonths=date("m");
$cdays=date("j");
?>
<tr>
  <td colspan="4">
  <table width="80%"  border="0" cellpadding="5" cellspacing="1" class="ft" align="center">
<form name="frmsearch" method="post" action="auction.php">
 <tr class="ct" height="25"><td colspan="4">Search</td></tr>
 <tr >
 	<td colspan="2" align="right">Selling Method</td>
	<td colspan="2" align="left">
	    <select name="cboSell">
<option value="1">Standard Auction</option>
<option value="2">Penny Auction</option>
<option value="3">100% Off</option>
<option value="4">Nail Bitter</option>
<option value="5">Fixed Price</option>
<option value="6">Beginner Auction</option>
<option value="7">10 Second Auction</option>
<option value="8">15 Second Auction</option>
<option value="9">20 Second Auction</option>
		</select>
	</td>
 </tr>
 <tr ><td colspan="4">
  <table align="center" width="100%" cellpadding="5" cellspacing="2" border="0">
 <tr>
   <td>posted between</td>
   <td>
 <select name="cboAday" class="cbo">
 <option value="">Day</option>
 <?php
 for($i=1;$i<=31;$i++)
 {
 ?>
 <option value="<?=$i; ?>" <? if($i==$cdays){ echo "selected";}?>><?=$i; ?></option>
 <?php
 }
 ?>
 </select></td>
 <td>
 <select name="cboAmonth" class="cbo">
				<?
					$montharr="dumm,Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec";
					$month=explode(',',$montharr);
					for($i=1;$i<=12;$i++) { ?>
					<option value=<?=$i?> <? if($i==$cmonths){ echo "selected";}?>><?=$month[$i]?></option> 
				<?	}
				?>
			  </select>
 </td>
 <td> <select name="cboAyear" class="cbo">
 <?php
 for($i=2004;$i<=2020;$i++)
 {
 ?>
 <option value="<?=$i; ?>" <? if($i==$cyears){ echo "selected";}?>><?=$i; ?></option>
 <?php
 }
 ?>
 </select></td>
 <td>and</td>
<td>
 <select name="cboBday" class="cbo">
 <?php
 for($i=1;$i<=31;$i++)
 {
 ?>
 <option value="<?=$i; ?>" <? if($i==$cdays){ echo "selected";}?>><?=$i; ?></option>
 <?php
 }
 ?>
 </select></td>
 <td>
 <select name="cboBmonth" class="cbo">
				<?
					$montharr="dumm,Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec";
					$month=explode(',',$montharr);
					for($i=1;$i<=12;$i++) { ?>
					<option value=<?=$i?> <? if($i==$cmonths){ echo "selected";}?>><?=$month[$i]?></option> 
				<?	}
				?>
			  </select>
 </td>
 <td> <select name="cboByear" class="cbo">
 <?php
 for($i=2004;$i<=2020;$i++)
 {
 ?>
<option value="<?=$i; ?>" <? if($i==$cyears){ echo "selected";}?>><?=$i; ?></option>
 <?php
 }
 ?>
 </select></td></table> </td></tr>
 <tr ><td colspan="4"><table align="center" width="100%">
 <tr><td>Ending between</td><td>
 <select name="cboCday" class="cbo">
  <?php
 for($i=1;$i<=31;$i++)
 {
 ?>
 <option value="<?=$i; ?>" <? if($i==$cdays){ echo "selected";}?>><?=$i; ?></option>
 <?php
 }
 ?>
 </select></td>
 <td>
 <select name="cboCmonth" class="cbo">
				<?
					$montharr="dumm,Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec";
					$month=explode(',',$montharr);
					for($i=1;$i<=12;$i++) { ?>
					<option value=<?=$i?> <? if($i==$cmonths){ echo "selected";}?>><?=$month[$i]?></option> 
				<?	}
				?>
			  </select>
 </td>
 <td> <select name="cboCyear" class="cbo">
 <?php
 for($i=2004;$i<=2020;$i++)
 {
 ?>
<option value="<?=$i; ?>" <? if($i==$cyears){ echo "selected";}?>><?=$i; ?></option>
 <?php
 }
 ?>
 </select></td>
 <td>and</td>
<td>
 <select name="cboDday" class="cbo">
  <?php
 for($i=1;$i<=31;$i++)
 {
 ?>
 <option value="<?=$i; ?>" <? if($i==$cdays){ echo "selected";}?>><?=$i; ?></option>
 <?php
 }
 ?>
 </select></td>
 <td>
 <select name="cboDmonth" class="cbo">
				<?
					$montharr="dumm,Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec";
					$month=explode(',',$montharr);
					for($i=1;$i<=12;$i++) { ?>
					<option value=<?=$i?> <? if($i==$cmonths){ echo "selected";}?>><?=$month[$i]?></option> 
				<?	}
				?>
			  </select>
 </td>
 <td> <select name="cboDyear" class="cbo">
 <?php
 for($i=2004;$i<=2020;$i++)
 {
 ?>
<option value="<?=$i; ?>" <? if($i==$cyears){ echo "selected";}?>><?=$i; ?></option>
 <?php
 }
 ?>
 </select></td></table> </td></tr>
 <tr ><td colspan="4" align="center">
 <input type="submit" class="button"   name="search" value="Search" ></td></tr>
</form>
</table>
  </td>
</tr> 

<tr><td>&nbsp;</td></tr>
 