Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=46707
Postga havola
AbdusattarovZ [834] [off]
// Fayl qatori
$i = 0;
while ($zap2 = mysql_fetch_array($zap))
{
echo ($i % 2) ?
'<div class="bolim">' : '<div class="bolim">';
++$i;
$tf = pathinfo($zap2['way'], PATHINFO_EXTENSION); // Тип файла
if($tf == 'mp3'){
$set_view = array('variant' => 1);
}elseif((($tf == 'thm' or $tf == 'nth') && $down_setting['tmini']) || (($tf == '3gp' or $tf == 'mp4' or $tf == 'avi') && $down_setting['vmini']) || ($tf == 'jpg' or $tf == 'png' or $tf == 'jpeg' or $tf == 'gif')){
$set_view = array('link_download' => 1, 'div' => 1);
}else{
$set_view = array('variant' => 1);
// 'size' => 1, 'desc' => 1, 'count' => 1, 'div' => 1,
// 'comments' => 1, 'add_date' => 1, 'rating' => 1);
}
echo f_preview($zap2, $set_view, $tf);
echo '</div>';
}
}else{
echo 'Ushbu bo`limda na papka bor!<br/> Na fayl bor!';
}
Rasmni korilarda. Qanqib rasm va yozuvni bir qatorda qsam boladi. Hich qolimdan kemadi
$i = 0;
while ($zap2 = mysql_fetch_array($zap))
{
echo ($i % 2) ?
'<div class="bolim">' : '<div class="bolim">';
++$i;
$tf = pathinfo($zap2['way'], PATHINFO_EXTENSION); // Тип файла
if($tf == 'mp3'){
$set_view = array('variant' => 1);
}elseif((($tf == 'thm' or $tf == 'nth') && $down_setting['tmini']) || (($tf == '3gp' or $tf == 'mp4' or $tf == 'avi') && $down_setting['vmini']) || ($tf == 'jpg' or $tf == 'png' or $tf == 'jpeg' or $tf == 'gif')){
$set_view = array('link_download' => 1, 'div' => 1);
}else{
$set_view = array('variant' => 1);
// 'size' => 1, 'desc' => 1, 'count' => 1, 'div' => 1,
// 'comments' => 1, 'add_date' => 1, 'rating' => 1);
}
echo f_preview($zap2, $set_view, $tf);
echo '</div>';
}
}else{
echo 'Ushbu bo`limda na papka bor!<br/> Na fayl bor!';
}
Rasmni korilarda. Qanqib rasm va yozuvni bir qatorda qsam boladi. Hich qolimdan kemadi