Файл: sys/inc/forum_new.php
Строк: 4
<?
echo '<div class="st_1"></div>';
echo '<div class="st_2">';
$q=mysql_query("SELECT * FROM `forum_t` ORDER BY `time_create` DESC LIMIT 5");
while ($them = mysql_fetch_assoc($q)){
// Иконка темы
echo '<img src="/style/themes/' . $set['set_them'] . '/forum/14/them_' . $them['up'] . $them['close'] . '.png" alt="" /> ';
// Ссылка на тему
echo '<a href="/forum/' . $them['id_forum'] . '/' . $them['id_razdel'] . '/' . $them['id'] . '/">' . htmlspecialchars($them['name']) . '</a>
<a href="/forum/' .$them['id_forum'] . '/' . $them['id_razdel'] . '/' . $them['id'] . '/?page=' . $pageEnd . '">»</a>
(' . mysql_result(mysql_query("SELECT COUNT(`id`) FROM `forum_p` WHERE `id_forum` = '".$them['id_forum']."' AND `id_razdel` = '".$them['id_razdel']."' AND `id_them` = '".$them['id']."'"),0) . ')<br/>';
}
echo '</div>';
?>