View file modules/loads/new.php

File size: 943B
<?php


require_once(HOME .'/incfiles/header.php');

echo '<div class="title">Загрузки | Новые</div>';

$catcount = mysql_result(mysql_query("SELECT COUNT(*) FROM `loads` WHERE `time` >= '".$dams."'"), 0);
if ($catcount==0){echo '<div class="menu">Новых файлов нет!</div>';}
if ($user['id']>=1){
$user_obj=$user['object'];
}
else {
$user_obj="6";
}
nav_start($catcount, $user_obj);

$catcount_result = mysql_query(" SELECT * FROM `loads` WHERE `time` >= '".$dams."' ORDER BY `id` ASC LIMIT $start, $user_obj");
while($cat = mysql_fetch_assoc($catcount_result)){
$cat_name= $cat['name'];
$file_id = $cat['id'];
$cat_opis = $cat['opis'];
echo '<div class="menu">
<a href="/loads/view.php?id='.$file_id.'"><b>'.output($cat_name).'</b></a>
</div>';

}
view_nav();

echo '<div class="block">
<a href="/">На главную</a>
</div>';


require_once(HOME .'/incfiles/footer.php');

?>