<?PHP require('checkcookie.php');
if(isset($_POST["br"])){
$br = floatval($_POST["br"]);
mysql_query("UPDATE `b_config` SET `price`='$br' WHERE `name`='ref_box'") or die(mysql_error());
$result_upd = "<b style='color:#6EAD2B;'>Сохранено </b>";
}
$br = mysql_result(mysql_query("SELECT `price` FROM `b_config` WHERE `name`='ref_box'"),0,0);
?>
<h3>Настройки дополнительных реклам</h3>
<form method="post" action="adminmain.php?p=rekl_options" id="MainForm">
<table class="adn">
<tr class="lineb">
<td align="left">Значение</td>
<td align="left"><table class="adn"><tr><td align="left" style="border: none; padding: 0">Описание</td><td align="right" style="border: none; padding: 0"><? if(isset($result_upd)) echo $result_upd;?><a href="#" onclick="document.getElementById('MainForm').submit(); return false" class="liv">Сохранить</a></td></tr></table></td>
</tr>
<tr class="liney">
 <td class="listsl" width="120px"><input type="text" name="br" value="<?=$br?>"></td>
 <td class="listsl"><b>Цена блока реферера</b></td>
</tr>
</table>
</form>