Баг в админке

This commit is contained in:
lopar 2018-06-24 17:09:58 +03:00
parent 4c6b7e32a4
commit d2e3a0b41a
2 changed files with 6 additions and 3 deletions

View File

@ -145,7 +145,11 @@ if ($_POST['sbr_par']) {
// while($row = mysql_fetch_array($aligns)) {
$aligns = db::c()->query('SELECT `img`,`align`,`name` FROM `aligns` ORDER BY `align`');
while ($row = $aligns->fetch_assoc()): ?>
<tr class=row onclick='document.all.im.value=\"{$row['img']}\"; document.all.ali.value=\"{$row['align']}\"; document.all.txt.value=\"{$row['name']}\";'><td><img src='i/{$row['img']}'></td><td>{$row['align']}</td><td>{$row['name']}</td></tr>
<tr class=row onclick='document.all.im.value="<?=$row['img']?>"; document.all.ali.value="<?=$row['align']?>"; document.all.txt.value="<?=$row['name']?>";'>
<td><img src="i/<?=$row['img']?>"></td>
<td><?=$row['align']?></td>
<td><?=$row['name']?></td>
</tr>
<?php endwhile ?>
<tr>
<td colspan=3><b>Добавить</b></td>

View File

@ -20,7 +20,6 @@ $razdelId = filter_input(INPUT_GET, 'razdel');
$_SESSION['receiverName'] = filter_input(INPUT_POST, 'receiverName');
$receiverId = null;
$queryItems = null;
$allowOperations = false;
if ($_SESSION['receiverName']) {
$receiver = db::c()->query('SELECT `id`, `level`, `login` FROM `users` WHERE `login` = "?s"', $_SESSION['receiverName'])->fetch_assoc();
@ -65,7 +64,7 @@ if ($_SESSION['receiverName']) {
}
$queryItems = db::c()->query('SELECT * FROM `inventory` WHERE `owner` = ?i AND `dressed` = 0 AND `setsale` = 0 AND `present` = "?s" AND `artefact` = 0 ORDER BY `update` DESC', $_SESSION['uid'], null);
}
}
} else $allowOperations = false;
?>
<!DOCTYPE html>
<html>