0 / 6
Xoş gəlmişsiniz | Daxil ol | Qeydiyyat

Last activity

Forum | Skriptlər | Kömək
Search
  Aktual mövzular funksiyasi
AGENT AGENT (SV!) [Off] [#] (04.11.2019 / 09:17)
May.az
Johncms 6.2.2 ucun aktual movzular funksiyasi

  1. echo '<div class="phdr">Aktual m&#246;vzular</div><div class="phdr_alt"></div>';
  2. $req = mysql_query("SELECT `id`,`text`, `from` FROM `forum` where type='t' ORDER BY time DESC LIMIT 5; ");
  3. while ($arr = mysql_fetch_array($req)){
  4. echo ($i / 2) ? '<div class="list1">' : '<div class="list2">';
  5. $nikuser = mysql_query("SELECT `from`,`time`,`text` FROM `forum` WHERE `type` = 'm' AND `close` != '1' AND `refid` = '" . $arr['id'] . "'ORDER BY time DESC LIMIT 1;");
  6. $nam = mysql_fetch_array($nikuser);
  7. $colmes = mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='m' AND `refid`='" . $arr['id'] . "'" . ($rights >= 7 ? '' : " AND `close` != '1'"));
  8. $colmes1 = mysql_result($colmes, 0);
  9. echo "&nbsp;<a href='forum/index.php?id=".$arr['id']."'>$arr[text]</a> [$colmes1]<br/>";
  10. $vrp = $nam['time'] + $set_user['sdvig'] * 3600;
  11. echo '<div class="sub"> &nbsp;'.$nam["from"].'&nbsp; <font color="#777777"> ('. date("d.m.y / H:i", $vrp) .')</font></span></div>';
  12. echo '</div>';
  13. }


Zip fayl kimi Yukle
Edited AGENT (08.11.2019 / 19:26) [1]
  Total: 1

Filter by author
Download Topic

In forum

New at the top
İlk sehife
© 2018 mywap.az MobTop.az