code cleaning
This commit is contained in:
parent
c30553e74c
commit
78bd92031c
40
bank.php
40
bank.php
@ -38,7 +38,6 @@ if ($move_ekr['ekr']>0) {
|
||||
top.frames['main'].location = 'city.php?strah'
|
||||
}
|
||||
</script>
|
||||
<script src="/js/jquery-1.7.2.min.js"></script>
|
||||
<style>
|
||||
.appblock {
|
||||
background: silver;
|
||||
@ -50,21 +49,27 @@ if ($move_ekr['ekr']>0) {
|
||||
opacity: 0.75;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
div.appblock form {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
div.appblock span {
|
||||
div.appblock span.legend {
|
||||
padding: 0.2em 0.5em;
|
||||
color: #666;
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
}
|
||||
|
||||
div.appblock br {
|
||||
margin: 5px;
|
||||
}
|
||||
div.appblock span.wrap {
|
||||
padding: 5px;
|
||||
display: block;
|
||||
font-family: Consolas, monospace;
|
||||
}
|
||||
div.appblock span.wrap span.num {
|
||||
float:right;
|
||||
display:block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@ -177,8 +182,14 @@ if (!$_SESSION['bankid']) {
|
||||
err($mywarn);
|
||||
?>
|
||||
<p><a href="?exit"> ← выйти из счёта</a></p>
|
||||
<div class="appblock" style="background: whitesmoke;">
|
||||
<span class="legend">Cчет №<?=$bank['id']?></span>
|
||||
<span class="wrap">Кредитов<span class="num"><?=$bank['cr']?></span></span>
|
||||
<span class="wrap">ЕвроКредитов<span class="num"><?=$bank['ekr']?></span></span><hr>
|
||||
<span class="wrap">На руках<span class="num"><?=$user['money']?></span></span>
|
||||
</div>
|
||||
<div class="appblock">
|
||||
<span>Денежные средства</span>
|
||||
<span class="legend">Денежные средства</span>
|
||||
<form method="post">
|
||||
<input size="10" name="summa" placeholder="Сумма">
|
||||
<input type="hidden" name="action" value="money-in">
|
||||
@ -192,7 +203,7 @@ if (!$_SESSION['bankid']) {
|
||||
<i>Кредитов на руках: <b><?=$user['money']?></b> кр.</i>
|
||||
</div>
|
||||
<div class="appblock">
|
||||
<span>Перевод кредитов</span>
|
||||
<span class="legend">Перевод кредитов</span>
|
||||
<form method="post">
|
||||
<input size="10" name="summa" placeholder="Сумма">
|
||||
<input size="10" name="to-id" placeholder="Cчёт"><br>
|
||||
@ -202,7 +213,7 @@ if (!$_SESSION['bankid']) {
|
||||
<i>Комиссия составит 5% от переводимой суммы, но не менее 1 кр.</i>
|
||||
</div>
|
||||
<div class="appblock">
|
||||
<span>Обменять екр. на кр.</span>
|
||||
<span class="legend">Обменять екр. на кр.</span>
|
||||
<form method="post">
|
||||
<input size="10" name="summa" placeholder="Сумма">
|
||||
<input type="hidden" name="action" value="donate-exchange">
|
||||
@ -210,19 +221,6 @@ if (!$_SESSION['bankid']) {
|
||||
</form>
|
||||
<i>Курс обмена: 1:5.</i>
|
||||
</div>
|
||||
<br>
|
||||
<table class='adm'>
|
||||
<tr>
|
||||
<th>№</th>
|
||||
<th>Кредитов.</th>
|
||||
<th>ЕвроКредитов.</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?= $bank['id'] ?></td>
|
||||
<td><?= $bank['cr'] ?></td>
|
||||
<td><?= $bank['ekr'] ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?
|
||||
} # Очень важная и гордая кавычка!
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user