Файл: transformerss/pages/account/_insertwm.php
Строк: 62
<div class="s-bk-lf">
<div class="acc-title">Пополнение баланса</div>
</div>
<?PHP
$_OPTIMIZATION["title"] = "Аккаунт - Пополнение баланса";
$usid = $_SESSION["user_id"];
$usname = $_SESSION["user"];
$db->Query("SELECT * FROM db_config WHERE id = '1' LIMIT 1");
$sonfig_site = $db->FetchArray();
$db->Query("SELECT id FROM `db_payeer_insert`order by id desc limit 1");
if ($db->NumRows()!=0)
{
$res = $db->FetchArray();
$last_id = $res['id'];
} else $last_id='0';
$last_id++;
?>
<div class="silver-bk">
<script type="text/javascript">
var min = 0.01;
var ser_pr = 100;
function calculate(st_q) {
var sum_insert = parseFloat(st_q);
$('#res_sum').html( (sum_insert * ser_pr).toFixed(0) );
$('#wm_summ').val(sum_insert);
}
</script>
<div id="error3"></div>
<center>
<form method="POST" action="https://merchant.webmoney.ru/lmi/payment.asp">
<div class="silver-bkloxum">
<font color="green">
<b>Введите сумму [<?=$config->VAL; ?>]:</b>
</font>
<center><p> </p></center>
<input type="text" class="poiloploxum" style="text-align:center" maxlength="9" value="100" name="sum" id="psevdo" onchange="calculate(this.value)" onkeyup="calculate(this.value)" onfocusout="calculate(this.value)" onactivate="calculate(this.value)" ondeactivate="calculate(this.value)">
Вы получите <span id="res_sum">10000</span> серебра
<BR />
<input type="hidden" name="LMI_PAYMENT_NO" value="<?php echo $last_id; ?>">
<input type="hidden" name="LMI_PAYMENT_AMOUNT" id="wm_summ" value="0.05">
<input type="hidden" name="LMI_PAYMENT_DESC" value="<?php echo "Пополнение баланса - USER ";?><?php echo $usname ;?> [ID-<?php echo $usid ;?>]">
<input type="hidden" name="LMI_PAYEE_PURSE" value="R302961942162">
<input type="hidden" name="id_user" value="<?php echo $usid ;?>">
<input type="hidden" name="name_user" value="<?php echo $usname ;?>">
<input type="submit" class="btn_3d" style="height: 30px; margin-top:10px;" value="Пополнить баланс">
</div>
</form>
</center>
<script type="text/javascript">
calculate(100);
</script>
<center>
</center>
<div class="clr"></div>
</div>