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-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size: 12px; font-size: 12px;
background: #fff; background: #fff;
margin: 45px;
width: 480px; width: 480px;
border-collapse: collapse; border-collapse: collapse;
text-align: left; text-align: left;

View File

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

17
inf.php
View File

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