Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=54707
Postga havola
gi8ri7 [1900] [off]
Taak
Boboy ni rasmi chiqib turgan podforumni rasmchasi yo'q
Boboy ni rasmi chiqib turgan podforumni rasmchasi yo'q
$req = mysql_query("SELECT `id`,`user_id`, `text`, `soft` FROM `forum` WHERE `type`='f' ORDER BY `realid`"); $i = 0; echo '<div class="phdr">'; echo '<b>'.$res['text'].'</b>'; echo '</div>'; ++$i; $r = mysql_query("SELECT `id`,`refid`,`text`, `soft`, `edit` FROM `forum` WHERE `type`='r' AND `refid`='".$res['id']."' ORDER BY `realid`"); if ($total) { $i = 0; echo $i % 2 ? '<div class="list2">' : '<div class="list1">'; $coltem = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type` = 't' AND `refid` = '" . $res['id'] . "'"), 0); echo '<table cellpadding="0" cellspacing="0"><tr><td>'; echo '<img style="float: left; margin: 2px 2px 2px 2px; border: 0px;" src="' . $set['homeurl'] . '/images/podforum/' . $re['id'] . '.png" width="42" alt="" />'; } else { echo '<img style="float: left; margin: 2px 2px 2px 2px; border: 0px;" src="' . $set['homeurl'] . '/images/podforum/empty.png" width="38" alt="" />'; echo '</td><td>'; } echo '<a href="?id=' . $re['id'] . '">' . $re['text'] . '</a> <span class="count">'; $t = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='t' AND `refid`='".$re['id']."'" . ($rights >= 7 ? '' : " AND `close`!='1'")), 0); echo ' ('.$t.')'; if ($coltem) echo " ($coltem)"; echo '</span>'; echo '<p><small>' . $re['soft'] . '</small></p>'; echo '</td></tr></table></div>'; ++$i; } } else { echo '<div class="menu"><p>' . $lng_forum['section_list_empty'] . '</p></div>'; } }