b9b4c01cf0
Signed-off-by: lopar <lopar.4ever@gmail.com>
46 lines
1.9 KiB
PHP
46 lines
1.9 KiB
PHP
<?php
|
||
# Date: 19.02.2022 (4:20)
|
||
use Battles\{GameConfigs, Rooms, Template, User};
|
||
Template::header(Rooms::$roomNames[User::getInstance()->getRoom()]);
|
||
?>
|
||
<link href="/css/secondary.css" rel="stylesheet"/>
|
||
<script src="/js/main.js"></script>
|
||
<?php Template::buildingTop(Rooms::$roomNames[User::getInstance()->getRoom()], 'strah') ?>
|
||
<div><?= $_POST['action'] ? $bank->getStatus() : '' ?></div>
|
||
<div class="appblock appblock-main">
|
||
<span class="wrap">На счету: <span class="num"><?= User::getInstance()->money()->getBank() ?></span></span>
|
||
<hr>
|
||
<span class="wrap">На руках: <span class="num"><?= User::getInstance()->money()->get() ?></span></span>
|
||
</div>
|
||
<div class="appblock">
|
||
<span class="legend">Работа со счётом</span>
|
||
<form method="post">
|
||
<label>
|
||
<input size="10" name="summa" placeholder="Сумма">
|
||
</label>
|
||
<input type="hidden" name="action" value="depositMoney">
|
||
<input type="submit" value="Положить деньги">
|
||
</form>
|
||
<form method="post">
|
||
<label>
|
||
<input size="10" name="summa" placeholder="Сумма">
|
||
</label>
|
||
<input type="hidden" name="action" value="withdrawMoney">
|
||
<input type="submit" value="Снять деньги">
|
||
</form>
|
||
</div>
|
||
<div class="appblock">
|
||
<span class="legend">Перевод кредитов</span>
|
||
<form method="post">
|
||
<label>
|
||
<input size="10" name="summa" placeholder="Сумма">
|
||
</label>
|
||
<label>
|
||
<input size="10" name="to-id" placeholder="Cчёт">
|
||
</label><br>
|
||
<input type="hidden" name="action" value="sendMoney">
|
||
<input type="submit" value="Перевести кредиты">
|
||
</form>
|
||
<span class="wrap">Комиссия: <?= GameConfigs::BANK_COMISSION * 100 ?>% от переводимой суммы, но не менее 1 кр.</span>
|
||
</div>
|