<? include('checkcookie.php'); ?>
<? if(isset($_POST["5sec"]))
{
	$sec5=$_POST["5sec"];
	$sec10=$_POST["10sec"];
	$sec15=$_POST["15sec"];
	$r5sec=$_POST["r5sec"];	
	$r10sec=$_POST["r10sec"];
	$r15sec=$_POST["r15sec"];
	$sd5=$_POST["5sd"];	
	$sd10=$_POST["10sd"];
	$sd15=$_POST["15sd"];

	require('config.php');
	$sqlz = "UPDATE sfb_shopforbux SET 5sd='$sd5', 10sd='$sd10', 15sd='$sd15', 5sec='$sec5', 10sec='$sec10', 15sec='$sec15', r5sec='$r5sec', r10sec='$r10sec', r15sec='$r15sec' WHERE id='1'";
	mysql_query($sqlz) or die(mysql_error());
	echo "<b>Настройки сохранены...</b>";
}
require('config.php');
$res = mysql_query("SELECT * FROM sfb_shopforbux WHERE id='1'");
$row = mysql_fetch_array($res);
?>
<form action="" method="POST">
<h3>Настройки оплаты</h3><br>
<table>
<tr>
<th width="200">Клик 5 сек</th><td><input type="text" name="5sec" value="<?=$row["5sec"]; ?>" size="30" maxlength="30"></td></tr>
<tr>
<th width="200">Клик 10 сек</th><td><input type="text" name="10sec" value="<?=$row["10sec"]; ?>" size="30" maxlength="30"></td></tr>
<tr>
<th width="200">Клик 15 сек</th><td><input type="text" name="15sec" value="<?=$row["15sec"]; ?>" size="30" maxlength="30"></td></tr>
<tr>
<th width="200">Один визит 5 сек.</th><td><input type="text" name="5sd" value="<?=$row["5sd"]; ?>" size="30" maxlength="30"></td></tr>
<tr>
<th width="200">Один визит 10 сек.</th><td><input type="text" name="10sd" value="<?=$row["10sd"]; ?>" size="30" maxlength="30"></td></tr>
<tr>
<th width="200">Один визит 15 сек.</th><td><input type="text" name="15sd" value="<?=$row["15sd"]; ?>" size="30" maxlength="30"></td></tr>
<tr>
</table>
<input type="submit" value="Сохранить">
</form>