Дай код пажалуста !
скрин :
http://xmuz.org/Screenshot_2014-09-01-01-38-52.png
автор ты
Добавлено 01.09.14 в 00:24:08:
автор
ааа мои код не требуется!
<?php
echo '<div class="phdr" style="text-align:center"><b>Последние видео</b></div><div class="menu"><table width="50%"><tr>';
$loadroot = $filesroot.'/files'; /////// Папка с файлами
$file = mysql_query("SELECT * FROM `downfiles` WHERE `id` = '" . $viewf . "'"
$papka = '18'; // папка ай-ди санын жазасын
$cat = intval($_GET['" . $papka . "']);
$cat_inf = mysql_query("SELECT * FROM `downpath` WHERE `id` = '" . $papka . "' LIMIT 1"
if(mysql_num_rows($cat_inf)){
$cat_inf = mysql_fetch_assoc($cat_inf);
}else{
$cat_inf = array('way' => '');
}
$totalfile = mysql_result(mysql_query("SELECT COUNT(*) FROM `downfiles` WHERE `type` != 1 AND `status` = 1 && `way` LIKE '" . $cat_inf['way']."%'", 0);
if($totalfile > 10000){
$totalfile = 10000;
}
$zap = mysql_query("SELECT * FROM `downfiles` WHERE `type` != 1 AND `status` = 1&& `way` LIKE '" . $cat_inf['way'] ."%' ORDER BY `time` DESC LIMIT " . $start . "," . $kmess);
while ($arr = mysql_fetch_array($zap)) {
$xit = explode('||||', $arr['xit']);
$name = explode('||||', $arr['name']);
if (file_exists((ROOTPATH . 'download/graftemp/video_'.$arr['id'].'.GIF'))) {
echo '<center><td width="3" valign="top"></td><td class="menu"><a href="/download/'.name_replace($name[0]).'_' . $arr['id'] . '.html"><img src="download/graftemp/video_'.$arr['id'].'.GIF" alt="*" width="130" height="70" /><div class="sub">' . $name[0] . '</div></a></td></center>';
echo ($i % 2) ? '<br/>' : '<b></b>';
++$i;
}else{
echo '<div class="menu"><b><a class="block a_r" href="/download/'.name_replace($name[0]).'_' . $arr['id'] . '.html"><img class="i_block" src="../img/nevideo.png" alt="*" width="40" height="24" /> ' . $name[0] . '</a></b></div>';
}
}
if ($totalfile > $kmess){
echo '<div class = "topmenu">' . functions::display_pagination('index.php?act=new&cat=' . $papka . '&', $start,$totalfile, $kmess) . '';echo '</div>';
}
$req = mysql_query("SELECT COUNT(*) FROM `download` WHERE `refid` = '' . $papka . '' AND `type` = 'file'"
$totalfile = mysql_result($req, 0);
$umumiy_fayllar = $totalcat + $totalfile;
echo '</tr></table></div>';
?>
скрин
Я один не понимаю его? Или это алкоголь подействовал внутри меня?