code clean
This commit is contained in:
parent
a1bf8d7986
commit
a3ec157b2c
6
clan.php
6
clan.php
@ -26,12 +26,8 @@ if ($claninf AND ($query = db::c()->query('SELECT * FROM `clans` WHERE `name` =
|
|||||||
echo "<h1>Список кланов</h1>";
|
echo "<h1>Список кланов</h1>";
|
||||||
$query = db::c()->query('SELECT `align`,`name`,`short` FROM `clans` ORDER BY `name` ASC');
|
$query = db::c()->query('SELECT `align`,`name`,`short` FROM `clans` ORDER BY `name` ASC');
|
||||||
while ($clanrow = $query->fetch_assoc()) {
|
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>";
|
$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']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user