Баг в админке

This commit is contained in:
lopar 2018-06-24 14:39:14 +03:00
parent 8afc54c323
commit 85c8c0edbd

View File

@ -143,7 +143,7 @@ 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 * FROM `aligns` ORDER BY `align`')->fetch_assoc_array();
while ($aligns) { while ($aligns) {
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>"; 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>";
} ?> } ?>