<?php ob_start();
$PageSecurity = 11;
$title = _('Direct MRN Configuration');
include('includes/SQL_CommonFunctions.inc');
$date=date('d/m/Y');
if($_REQUEST['submit']){
	$sql="UPDATE direct_mrn_config SET max_price='".$_REQUEST['max_price']."' WHERE id='1'";
	$result=DB_query($sql,$db);  
	
	echo $msg="Update Successfully";
echo "<script>location.href='index.php?route=Inventory/maintenance/direct_mrn_configuration&modid=".$_REQUEST['modid']."&frmid=".$_REQUEST['frmid']."'</script>";
}
$sql="SELECT max_price FROM direct_mrn_config";
$result=DB_query($sql,$db); 
$row=DB_fetch_array($result) 
?>
<h2 align="center"><strong>Direct MRN Configuration</strong></h2>
<br />
<form name="" method="post" action="">
<table width="50%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Maximum Direct Purchase Allowed Amount Wise</td>
    <td><input name="max_price" type="text" maxlength="16" value="<?php echo $row['max_price'];;?>" /></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" style="text-align:center"><input name="submit" type="submit" value="Update" /></td>
  </tr>
</table>
</form>


