Файл: search/inc/forum.php
Строк: 12
<?
if ($k_post_forum!=0)
{
echo "<table class='post'>n";
echo "<div class='div'><img src='/search/img/forum.png' /><a href='?go&forum=ok'> Форум $k_post_forum</a></div>";
echo "</table>n";
if (isset($_GET['forum']) =='ok')
{
if ($k_post_forum==0)echo "<div class="div">nНет результатов</div>n";
$q=mysql_query("SELECT * FROM `forum_themes` WHERE `opis` like '%".mysql_escape_string($q_search)."%' ORDER BY `id` DESC LIMIT $start, 10");
$i=0;
echo " <div class='main123'>n";
while ($forum = mysql_fetch_assoc($q))
{
$forum_t=mysql_fetch_assoc(mysql_query("select * from `forum_t` where `id`='".$forum['id_them']."';"));
echo "<a href='/forum/$forum[id_forum]/$forum[id_razdel]/$forum[id_them]/'> ^ $forum_t[name]</a>";
}
echo " </div>n";
if ($k_page>1){str("?go&forum=ok&",$k_page,$page);
print'<br/>';
}
}
}
else
{
}
?>