subj
This commit is contained in:
parent
4dda902d55
commit
1ce478e985
4
inf.php
4
inf.php
@ -10,7 +10,7 @@ $user = db::c()->query('SELECT `id`,`login`,`married`,`win`,borndate,`align`,`ad
|
||||
WHERE `login` = "?s" OR `id` = "?s"', $login, $login)->fetch_assoc();
|
||||
$own = db::c()->query('SELECT `align`,`admin` FROM `users` WHERE `id` = "?s"', $uid)->fetch_assoc();
|
||||
|
||||
$presents = db::c()->query('SELECT `img`,`present` FROM `inventory` WHERE `owner` = ?i',$user['id']);
|
||||
$presents = db::c()->query('SELECT `img`,`present` FROM `inventory` WHERE `present`<>"?s" AND `owner` = ?i','',$user['id']);
|
||||
|
||||
if (empty($user['id'])): ?>
|
||||
<html>
|
||||
@ -120,7 +120,7 @@ if ($own['admin'] == 1) {
|
||||
if ($user_bank = db::c()->query('SELECT `id`,`cr`,`ekr` FROM `bank` WHERE `id` = ?i', $user['id'])) {
|
||||
echo "<H4>Банковские счета</H4>";
|
||||
while ($row_user_bank = $user_bank->fetch_assoc())
|
||||
echo "№" . $row_user_bank['id'] . ": " . $row_user_bank['cr'] . " кр; " . $row_user_bank['ekr'] . " екр.";
|
||||
echo "№ " . $row_user_bank['id'] . ": " . $row_user_bank['cr'] . " кр, " . $row_user_bank['ekr'] . " екр.";
|
||||
}
|
||||
|
||||
//TODO Вынести управляющие элементы во внешнюю админку, подальше от прецедентов. А то были случаи.
|
||||
|
Loading…
Reference in New Issue
Block a user