notice fixes

This commit is contained in:
lopar 2018-03-04 03:01:12 +02:00
parent b34649d4fb
commit e043ac9d42
3 changed files with 9 additions and 10 deletions

View File

@ -996,7 +996,6 @@ table.adm {
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size: 12px;
background: #fff;
margin: 45px;
width: 480px;
border-collapse: collapse;
text-align: left;

View File

@ -1985,6 +1985,7 @@ function showinf_pers($id, $pas = 0, $battle = 0, $me = 0, $main = false) //FIXM
}
$r .= '<center>';
$deal ='';
if ($user['deal'] > 0) {
$deal = '💰 ';
}

17
inf.php
View File

@ -211,7 +211,7 @@ if ($own['admin'] == 1) {
while ($row_user_bank = $user_bank->fetch_assoc()) {
echo "
<tr>
<th>" . $row_user_bank['id'] . "</th>
<td>" . $row_user_bank['id'] . "</td>
<td>" . $row_user_bank['cr'] . "</td>
<td>" . $row_user_bank['ekr'] . "</td>
</tr>
@ -220,8 +220,7 @@ if ($own['admin'] == 1) {
}
//TODO Вынести управляющие элементы во внешнюю админку, подальше от прецедентов. А то были случаи.
$del = filter_input(INPUT_POST,'del', FILTER_VALIDATE_INT);
if ($_POST['del']) {
if (isset($_POST['del'])) {
$itemdel = db::c()->query('SELECT `type`,`dressed` FROM `inventory` WHERE `id`=?i', $del)->fetch_assoc();
if ($itemdel['dressed'] == 1) {
dropitem($itemdel['type']);
@ -240,26 +239,26 @@ if ($own['admin'] == 1) {
<th>Название</th>
<th>Количество</th>
<th>Картинка</th>
<th>×</th>
<th></th>
</tr>
";
$inv = db::c()->query('SELECT `id`,`name`,`koll`,`img` FROM `inventory` WHERE `owner` = ?i ORDER BY `id` DESC', $user['id']);
while ($row_inv = $inv->fetch_assoc()) {
echo "
<form method='post'>
<tr>
<td>{$row_inv['id']}</td>
<td>{$row_inv['name']}</td>
<td>{$row_inv['koll']}</td>
<td><img src='i/sh/{$row_inv['img']}'></td>
<td><input name='del' type='hidden' value='{$row_inv['id']}'>
<input name='ok' type='submit' value='Удалить'></td>
<td><form method='post'><input name='del' type='hidden' value='{$row_inv['id']}'>
<input name='ok' type='submit' value='Удалить'></form></td>
</tr>
</form>
";
}
echo "<th colspan='6'><form method='post'><input name='undress_char' type='submit' value='Стриптиз'></form></th></table>";
if ($_POST['undress_char']) undressall($user['id']);
if (isset($_POST['undress_char'])) undressall($user['id']);
}
?>