<?php $req = mysql_query("SELECT * FROM `forum` WHERE `type` = 't' AND `close` != '1' ORDER BY `time` DESC LIMIT 10"); $q3 = mysql_query("select `id`, `refid`, `text` from `forum` where type='r' and id='" . $res['refid'] . "' LIMIT 1"); $q4 = mysql_query("select `id`, `refid`, `text` from `forum` where type='f' and id='" . $razd['refid'] . "' LIMIT 1"); $nikuser = mysql_query("SELECT `from`, `time` FROM `forum` WHERE `type` = 'm' AND `close` != '1' AND `refid` = '" . $res['id'] . "'ORDER BY `time` DESC"); echo $i % 2 ? '<div class="list2">' : '<div class="list1">'; // Значки ($res['vip'] ? functions::image('pt.gif') : ''), ($res['realid'] ? functions::image('rate.gif') : ''), ($res['edit'] ? functions::image('tz.gif') : '') ); echo functions::display_menu($icons, ''); echo '<a href="/forum/index.php?id=' . $res['id'] . '">' . $res['text'] . '</a> (' . $colmes1 . ') <b>' . $nam['from'] . '</b> <a href="forum/index.php?id=' . $res['id'] . (!$set_forum['upfp'] && $set_forum['postclip'] ? '&clip' : '') . ($set_forum['upfp'] ? '' : '&page=' . $cpg) . '#down">>></a>'; /* echo '<p><small><i class="far fa-user fa-fw" style="font-size:12px;"></i> ' . $nam['from'] . ' <i class="far fa-clock fa-fw" style="font-size:12px;"></i> ' . date("d.m.y / H:i", $nam['time']) . '</small></p>'; */ if ($cpg > 1) echo 'Mavzu: <a href="/forum/index.php?id=' . $res['id'] . '&clip&page=' . $cpg . '">>></a>'; echo '</div>'; } } else { echo '<div class="menu"><p>' . $lng['list_empty'] . 'ghj</p></div>'; } ?>
<style> .blogs_list{ width:100%; margin:0px; padding:0; list-style-type:none; background:#ffffff; overflow:hidden; float:left; } .blogs_list li{ padding:8px 0px; overflow:hidden; border-bottom:1px solid #E7EBEE; } .blogs_list li h2{ margin:0px; padding:0px; font-size:12px; font-weight:normal; } .blogs_list li p{ margin:5px 0px 0px 0px; } .blogs_list li a{ color:#356AA0; text-decoration: none; } .blogs_list li a:hover{ text-decoration:underline; } .blogs_list li img{ margin-right:10px; border:1px solid #356AA0; } </style> <?php ##BY CroWn FOR (UzFor.Net) 2016 (c) ## $status = $lol['status']; $ulimit = $lol['ulimit']; $amatn = $lol['amatn']; $bolim = $lol['cat']; $oncat = $lol['oncat']; $onid = $lol['onid']; $cuser = $lol['cuser']; $notfound = $lol['notfound']; if($status == 1) { echo '<div class="phdr"> <img src="/menu.png" alt="*" width="16px" height="16px"/> <b>Свежий Новости</b></div>'; if($oncat OR $onid == 1) { $news_connect = mysql_query("SELECT * FROM `cms_news` WHERE `refid` = '$bolim' AND `user_id` = '$cuser' ORDER BY `time` DESC LIMIT $ulimit"); } else { } $newsid = $here['id']; $ntitle = $here['name']; $getext = $here['text']; echo '<ul class="blogs_list"><li>'; echo '<img src="'.$set['homeurl'].'/files/news/news_'.$newsid.'.png" width="60" height="60" align="left"/>'; } else { echo '<img src="'.$notfound.'" width="60" height="60" align="left"/>'; } echo '<p><a href="'.$set['homeurl'].'/news/index.php?act=view&id='.$newsid.'"><b>'.$ntitle.'</b></a><p>' . '<p style="font:13px tahoma; color:gray; margin-top:5px;">'.$matn.' ..</p> <p style="font:12px tahoma; color:gray; margin-top:5px;"><a href="'.$set['homeurl'].'/news/index.php?act=view&id='.$newsid.'">Davomi</a></p></li></div>'; echo '</div>'; } }
<?php $kmess = '20'; echo '<div class="phdr">Yangiliklar</div>'; echo '<div class="menu">'; $bolm_sql = mysql_query("SELECT `id`, `name`, `dir`, `description` FROM `library_cats` WHERE `parent`=0 ORDER BY `pos` DESC"); $start = $page == 1 ? 0 : ($page - 1) * $kmess; $req_lib = mysql_query("SELECT * FROM `library_texts` WHERE `premod`='1' ORDER BY `time` DESC LIMIT 10"); if ($sql) { $i = 0; echo '<a href="' . $set['homeurl'] . '/library/index.php?id=' . $lib['id'] . '"><img src="/ico/buyerga rasm quyas"> ' . $lib['name'] . '</a><hr>'; } } echo '<div style="text-align: right;"><span class="currentpage"><b>1</b></span> <a class="pagenav" href="/library/i.php?page=2">2</a> <a class="pagenav" href="/library/i.php?page=3">3</a> <a class="pagenav" href="/library/i.php?page=4">4</a> <a class="pagenav" href="/library/i.php?page=5">5</a> <a class="pagenav" href="/library/i.php?page=2">»</a></div>'; echo '</div></div>'; echo '</div>'; ?>
.gif)