<?php session_start();  //Developed by ITechScripts
$username=$_SESSION['adminuser'];
	require 'include/configurations.php'; // ITECHBIDS Configuration File
      require 'include/header.php';
$type = $_GET['type'];
$rdtypes=$_POST['rdtypes'];
$feeamm=$_POST['feeamm'];
if($type == "edit"){
$sql="update relist_fee set type='$rdtypes', fee='$feeamm' where auto=1";
$sqll=mysql_query($sql);
}
	$canChange=$_POST['canChange'];
	$mode_query="select * from relist_fee where auto=1";
	$mode_result=mysql_query($mode_query);
	$mode_row=mysql_fetch_array($mode_result);
	$feetype =$mode_row['type'];
	$feeamm =$mode_row['fee'];

?>
<table border="0" align="center" width="80%" cellpadding="5" cellspacing="2" class="ft">

<tr class="ct" height="25"><td colspan="3" class="ct"> Admin Fee Manager</td></tr>

<tr>

  <td colspan="3">

  Here you can Set Item Relist Fee.

  </td>

</tr>

<form name="frmLevel1" action="relist_fee.php?type=edit" method="post" onSubmit="this.canChange.value=1;">
<tr ><td align="left"><input type="radio" name="rdtypes" value="flat" <? if($feetype=="flat") echo 'checked';?>>Flat Fee</td>
<td align="left"><input type="radio" name="rdtypes" value="percent" <? if($feetype=="percent") echo 'checked';?>>Percentage</td>
</tr>
<tr ><td align="left">Fee Amount</td>
<td align="left"><input type="text" class="bluetext"name="feeamm" value="<? echo "$feeamm" ?>"></td>
</tr>

<tr height="25">
<td align="center" colspan="3"><input type="hidden" name="canChange" size="20" value="0"><input name="Submit" type="submit" class="button" value="Update" /></td>

</tr></form>
</table>
<?
require 'include/footer.php';
?>