Комментарии:
Zomboy
26 Апр 2014
<?php
$k_lider = mysql_result(mysql_query("SELECT COUNT(*) FROM `liders` WHERE `time` > '$time'"),0); $liders = mysql_fetch_assoc(mysql_query("SELECT * FROM `liders` WHERE `time` > '$time' ORDER BY rand() LIMIT 1"));
if ($k_lider > 0){
echo '<div class="main">';
$lider = get_user($liders['id_user']);
echo status($lider['id']);
echo group($lider['id']) , ' <a href="/info.php?id=' . $lider['id'] . '">' . $lider['nick'] . '</a> ';
echo medal($lider['id']) , online($lider['id']) , '<br />';
if ($liders['msg'])echo output_text($liders['msg']) . '<br />'; echo '<img src="/style/icons/lider.gif" alt="S"/> <a href="/user/liders/">Все лидеры</a> <div class="count">(' . $k_lider . ')</div>';
echo '</div>';
}
?>
<?php
$k_lider = mysql_result(mysql_query("SELECT COUNT(*) FROM `liders` WHERE `time` > '$time'"),0); $liders = mysql_fetch_assoc(mysql_query("SELECT * FROM `liders` WHERE `time` > '$time' ORDER BY rand() LIMIT 1"));
if ($k_lider > 0){
echo '<div class="main">';
$lider = get_user($liders['id_user']);
echo status($lider['id']);
echo group($lider['id']) , ' <a href="/info.php?id=' . $lider['id'] . '">' . $lider['nick'] . '</a> ';
echo medal($lider['id']) , online($lider['id']) , '<br />';
if ($liders['msg'])echo output_text($liders['msg']) . '<br />'; echo '<img src="/style/icons/lider.gif" alt="S"/> <a href="/user/liders/">Все лидеры</a> <div class="count">(' . $k_lider . ')</div>';
echo '</div>';
}
?>