code clean

This commit is contained in:
lopar 2018-02-16 03:50:49 +02:00
parent d0ea805929
commit a1bf8d7986

View File

@ -26,7 +26,12 @@ if ($claninf AND ($query = db::c()->query('SELECT * FROM `clans` WHERE `name` =
echo "<h1>Список кланов</h1>";
$query = db::c()->query('SELECT `align`,`name`,`short` FROM `clans` ORDER BY `name` ASC');
while ($clanrow = $query->fetch_assoc()) {
echo "<img src=i/align_",$clanrow['align'],".gif> <img src=i/klan/",$clanrow['short'],".gif> <a href=?",$clanrow['name'],">",$clanrow['name'],"</a><br>";
$a = $clanrow['align'];
$s = $clanrow['short'];
$n = $clanrow['name'];
echo "<img src=i/align_",$a,".gif> <img src=i/klan/",$s,".gif> <a href=?",$n,">",$n,"</a><br>";
$frm = "<img src='i/align_%s.gif'> <img src='i/klan/%s.gif'> <a href='?%s'>%s</a><br>";
echo "wwow - ".sprintf($frm,$a,$s,$n,$n);
}
}
?>