download ga joylangan videoni
skreni
icon nomi
yuklangan soni
huddi shu ko'rinishida chiqaradigan kodi kerak edi
1 daqiqa 36 soniyadan keyin yozdi:
yana bir
o'xshash videolarni ham chiqaradigan kod kerak
<?php
$req = mysql_query("SELECT * FROM `forum` WHERE `type` = 't' AND `close` != '1' ORDER BY `time` DESC LIMIT 10");
if (mysql_num_rows($req)) {
for ($i = 0; $res = mysql_fetch_assoc($req); ++$i) {
$q3 = mysql_query("select `id`, `refid`, `text` from `forum` where type='r' and id='" . $res['refid'] . "' LIMIT 1");
$razd = mysql_fetch_assoc($q3);
$q4 = mysql_query("select `id`, `refid`, `text` from `forum` where type='f' and id='" . $razd['refid'] . "' LIMIT 1");
$frm = mysql_fetch_assoc($q4);
$nikuser = mysql_query("SELECT `from`, `time` FROM `forum` WHERE `type` = 'm' AND `close` != '1' AND `refid` = '" . $res['id'] . "'ORDER BY `time` DESC");
$colmes1 = mysql_num_rows($nikuser);
$cpg = ceil($colmes1 / $kmess);
$nam = mysql_fetch_assoc($nikuser);
echo $i % 2 ? '<div class="list2">' : '<div class="list1">';
// Значки
$icons = array(
($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) ##
$uzf = mysql_query("SELECT * FROM `main`;");
$lol = array();
while ($res = mysql_fetch_row($uzf)) $lol[$res[0]] = $res[1];
mysql_result($uzf);
$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 {
$news_connect = mysql_query("SELECT * FROM `cms_news` ORDER BY `time` DESC LIMIT $ulimit");
}
while($here=mysql_fetch_assoc($news_connect)) {
$newsid = $here['id'];
$ntitle = $here['name'];
$getext = $here['text'];
$matn =substr($getext, 0,$amatn);
echo '<ul class="blogs_list"><li>';
if (file_exists('files/news/news_'.$newsid.'.png')) {
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");
$sql = mysql_result(mysql_query('SELECT COUNT(*) FROM `library_texts` WHERE `premod`=1'), 0);
$page = $page >= ceil($sql / $kmess) ? ceil($sql / $kmess) : $page;
$start = $page == 1 ? 0 : ($page - 1) * $kmess;
$bolm = mysql_fetch_assoc($bolm_sql);
$req_lib = mysql_query("SELECT * FROM `library_texts` WHERE `premod`='1' ORDER BY `time` DESC LIMIT 10");
if ($sql) {
$i = 0;
while ($lib = mysql_fetch_assoc($req_lib)) {
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)
css code orqali kabi bu shunchaki misol.vaqt {
background-image: url("top.png");
background-color: #cccccc;
}