code clean

This commit is contained in:
lopar 2018-02-16 03:53:33 +02:00
parent a1bf8d7986
commit a3ec157b2c

View File

@ -26,12 +26,8 @@ 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()) {
$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);
echo sprintf($frm,$clanrow['align'],$clanrow['short'],$clanrow['name'],$clanrow['name']);
}
}
?>