<? require 'include/configurations.php'; // ITECHBIDS Configuration File ?>
 <form  action="<? $_SERVER['PHP_SELF']?>" method="post" name="frm12">
<table border="0" align="center" cellpadding="5" cellspacing="2" width="600" class="ft">
<tr class="ct" height="25"><td colspan="2"> Auction Settings</td></tr>
<?
$auction_query="select * from genaralsettings where set_id=23";
$table=mysql_query($auction_query);
$row=mysql_fetch_array($table);
$start_date=$row['set_value'];

$auction_query="select * from genaralsettings where set_id=24";
$table=mysql_query($auction_query);
$row=mysql_fetch_array($table);
$end_date=$row['set_value'];

$auction_query="select * from genaralsettings where set_id=25";
$table=mysql_query($auction_query);
$row=mysql_fetch_array($table);
$start_delay=$row['set_value'];

$auction_query="select * from genaralsettings where set_id=26";
$table=mysql_query($auction_query);
$row=mysql_fetch_array($table);
$duration=$row['set_value'];


$auction_query="select * from genaralsettings where set_id=27";
$table=mysql_query($auction_query);
$row=mysql_fetch_array($table);
$max_delay=$row['set_value'];
?>

<tr ><td> Allow sellers to specify Start Date </td> 
                      <td> <input type="radio" name="start_date" value="no" <? if($start_date=="no") echo"checked"; ?>>No 
					   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					   <input type="radio" name="start_date" value="yes" <? if($start_date=="yes") echo"checked"; ?>>Yes </td>
</tr>

<tr ><td> Allow sellers to specify End Date</td> 
                      <td> <input type="radio" name="end_date" value="no" <? if($end_date=="no") echo"checked"; ?>>No 
          				  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					   <input type="radio" name="end_date" value="yes" <? if($end_date=="yes") echo"checked"; ?>>Yes 
					  </td>
</tr>
<tr >
      <td>Maximum Delay &nbsp;&nbsp;&nbsp;(User to specify Start Delay )</td> 
                      <td> <input type="text" class="bluetext"name="max_delay" value="<?= $max_delay ?>"> Days</td>
</tr>
<tr >
      <td>Start Delay &nbsp;&nbsp;&nbsp;(Admin to specify Start Delay )</td> 
                      <td> <input type="text" class="bluetext"name="start_delay" value="<?= $start_delay ?>"> Days</td>
</tr>

<tr >
      <td>Duration &nbsp;&nbsp;&nbsp; ( Admin to specify Duration)</td> 
                      <td> <input type="text" class="bluetext"name="duration" value="<?= $duration ?>"> Days</td>
</tr>
<tr  ><td align="center" colspan="2"><input type="submit" class="button"   value=" Modify " name="auction_modify" ></td>
</tr>
</table>
</form>
<br>
<script language="javascript">
function checkpermission(val)
{
if(val=='yes')
{
	document.frm12.bid_inc.disabled=true;
}
if(val=='no')
{
	document.frm12.bid_inc.disabled=false;
}
}

</script>