Баг в админке

This commit is contained in:
lopar 2018-06-24 14:54:36 +03:00
parent 85c8c0edbd
commit 4e4f7011b1

View File

@ -143,10 +143,10 @@ if ($_POST['sbr_par']) {
<?php <?php
// $aligns = mysql_query("SELECT * FROM `aligns` ORDER BY `align`"); // $aligns = mysql_query("SELECT * FROM `aligns` ORDER BY `align`");
// while($row = mysql_fetch_array($aligns)) { // while($row = mysql_fetch_array($aligns)) {
$aligns = db::c()->query('SELECT * FROM `aligns` ORDER BY `align`')->fetch_assoc_array(); $aligns = db::c()->query('SELECT `img`,`align`,`name` FROM `aligns` ORDER BY `align`');
while ($aligns) { while ($row = $aligns->fetch_assoc()): ?>
echo "<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> <tr>
<td colspan=3><b>Добавить</b></td> <td colspan=3><b>Добавить</b></td>
</tr> </tr>