- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
/*
-----------------------------------------------------------------
Список топиков
-----------------------------------------------------------------
*/
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='t' AND `refid`='$id'" . ($rights >= 7 ? '' : " AND `close`!='1'")), 0);
if ($user_id && !$ban['1'] && !$ban['11']) {
// Кнопка создания новой темы
echo '<div class="gmenu"><form action="index.php?act=nt&id=' . $id . '" method="post"><input type="submit" value="' . $lng_forum['new_topic'] . '" /></form></div>';
}
if ($total) {
$req = mysql_query("SELECT * FROM `forum` WHERE `type`='t'" . ($rights >= 7 ? '' : " AND `close`!='1'") . " AND `refid`='$id' ORDER BY `vip` DESC, `time` DESC LIMIT $start, $kmess");
while ($res = mysql_fetch_assoc($req)) {
if($res['close'])
echo '<div class="rmenu">';
else
echo $i % 2 ? '<div class="list2">' : '<div class="list1">';
$nikuser = mysql_query("SELECT `from` FROM `forum` WHERE `type` = 'm' AND `close` != '1' AND `refid` = '" . $res['id'] . "' ORDER BY `time` DESC LIMIT 1");
$nam = mysql_fetch_assoc($nikuser);
$colmes = mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='m' AND `refid`='" . $res['id'] . "'" . ($rights >= 7 ? '' : " AND `close` != '1'"));
$colmes1 = mysql_result($colmes, 0);
$cpg = ceil($colmes1 / $kmess);
$np = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_rdm` WHERE `time` >= '" . $res['time'] . "' AND `topic_id` = '" . $res['id'] . "' AND `user_id`='$user_id'"), 0);
// Значки
$icons = array(
($np ? (!$res['vip'] ? '<img src="../theme/' . $set_user['skin'] . '/images/op.gif" alt=""/>' : '') : '<img src="../theme/' . $set_user['skin'] . '/images/np.gif" alt=""/>'),
($res['vip'] ? '<img src="../theme/' . $set_user['skin'] . '/images/pt.gif" alt=""/>' : ''),
($res['realid'] ? '<img src="../theme/' . $set_user['skin'] . '/images/rate.gif" alt=""/>' : ''),
($res['edit'] ? '<img src="../theme/' . $set_user['skin'] . '/images/tz.gif" alt=""/>' : '')
);
echo functions::display_menu($icons, ' ', ' ');
echo '<a href="index.php?id=' . $res['id'] . '">' . $res['text'] . '</a> [' . $colmes1 . ']';
if ($cpg > 1) {
echo '<a href="index.php?id=' . $res['id'] . '&page=' . $cpg . '"> >></a>';
}
echo '<div class="sub">';
echo $res['from'];
if (!empty($nam['from'])) {
echo ' / ' . $nam['from'];
}
$vrp = $res['time'] + $set_user['sdvig'] * 3600;
echo ' <span class="gray">(' . date("d.m.y / H:i", $vrp) . ')</span></div></div>';
++$i;
}
unset($_SESSION['fsort_id']);
unset($_SESSION['fsort_users']);
} else {
echo '<div class="menu"><p>' . $lng_forum['topic_list_empty'] . '</p></div>';
}
Dummy00001 28.12.2010 17:16 # 0
или кто знает лучшее названия стиля?
NadiaVita 28.12.2010 17:34 # −1
Lure Of Chaos 28.12.2010 19:17 # +1
guest 17.01.2017 17:02 # −15
barop 17.01.2017 17:07 # −15
guest 25.02.2017 04:07 # −15
Анонимус 29.12.2010 18:21 # +2
это т.н. "php стиль"
guest 01.01.2011 17:05 # −16
guest 01.01.2011 18:27 # −16
Lure Of Chaos 04.01.2011 15:59 # 0
guest 04.01.2011 16:12 # −18
Lure Of Chaos 04.01.2011 16:17 # 0
guest 17.02.2017 01:01 # −15
guest 04.01.2011 20:51 # −15
guest 04.01.2011 23:03 # −18
guest 05.01.2011 00:35 # −17
Пачтовый ящек зарегойте и выкладывайте сюда с пороллем.
Всчтречаемся втоже време!
guest 05.01.2011 00:42 # −17
guest 05.01.2011 11:14 # −15
guest 20.01.2017 22:30 # −15
guest 31.03.2017 12:00 # −15
</a>
<a href=http://datingice.com/>Love is one click away!
</a>
<a href=http://rhdating.com/>Local Singles
</a>
<a href=http://sexdatingdelight.com/>Sex Dating Delight
</a>
http://adultdatingbrisbane.com/
http://datingice.com/
http://rhdating.com/
http://sexdatingdelight.com/
guest 14.04.2017 01:15 # −11
<a href=" http://achetercialisenfrancesitefiable.com/ ">acheter cialis en france livraison rapide </a>
guest 14.04.2017 01:36 # −11
<a href=" http://cialissansordonnanceenfrance.com/ ">cialis sans ordonnance suisse </a>
guest 14.04.2017 07:35 # −11
<a href=" http://achetercialis20mgenligne.com/ ">achat cialis 20mg en ligne </a>
guest 14.04.2017 19:05 # −5
<a href=" http://achetertadalafil20mgpascher.com/ ">acheter tadalafil 20mg pas cher </a>
guest 14.04.2017 19:12 # −5
<a href=" http://tadalafil20mgpaschereninde.com/ ">cialis 20mg prix pas cher </a>
guest 15.04.2017 03:54 # −5
<a href=" http://achattadalafilenfranceenpharmacie.com/ ">achat tadalafil en france en pharmacie </a>
guest 15.04.2017 03:56 # −5
<a href=" http://acheterprednisone20mgenligne.com/ ">acheter prednisone en ligne </a>
guest 15.04.2017 16:26 # −5
<a href=" http://achatpropeciaparcartebancaire.com/ ">achat propecia partnership </a>
guest 15.04.2017 18:14 # −5
<a href=" http://achatamoxicillinebiogaran1g.com/ ">amoxicilline achat en ligne </a>
guest 21.04.2017 03:09 # −5
<a href=" http://vardenafilprixenpharmacieacaen.com/ ">levitra 5mg prix en pharmacie </a>
rss 21.04.2017 23:06 # 0