Файл: pages/index_tema.php
Строк: 13
<?
if($them <= 0)echo '<div class="err">Тем еще небыло</div>';
$twtw = mysql_query("SELECT * FROM forumt ORDER BY timenew DESC LIMIT 3");
while($tema = mysql_fetch_assoc($twtw)){
echo '<div class="f">';
if($tema['close'] == 1)echo '<img src="'.URL.'/forum/img/close.png"></img> ';
else
echo '<img src="'.URL.'/forum/img/them.png"></img> ';
echo '<a href="/forum/'.$tema['razdel'].'/'.$tema['forums'].'/'.$tema['id'].'">'.$tema['name'].'</a> ['.mysql_result(mysql_query("SELECT COUNT(id) FROM forump WHERE tema = '$tema[id]'"),0).']';
if($tema['up'] == 1)echo ' <img src="'.URL.'/forum/img/up.png"></img> ';
echo ' <a href="/forum/'.$tema['razdel'].'/'.$tema['forums'].'/'.$tema['id'].'/page=end">» </a>';
echo '</div>';
}
?>