'.$topmess;
}
htable($topmess, "100%");
if ($members[0]=="on" && $userprefs[1]=="" && $members[7]=="on") {
echo '
'.$web342.'
[ '.$web343.' ]
';
}
else {
if (empty($id)) {
$id = 1;
}
if (count($dbwork) == 1) {
ReadDoc(DBBASE.$dbwork[0][4]);
if ($lng == $lang[0]) {
$txt1 = $fieldb1;
$txt2 = $fieldc1;
$txt3 = $fielda1;
$file = $fieldd1;
} else {
$txt1 = $fieldb2;
$txt2 = $fieldc2;
$txt3 = $fielda2;
$file = $fieldd2;
}
$downcounter = -1;
$txtcount = "";
if ($serviz[35] == "on") {
if (!eregi(".php$|.htm$|.html$|.pdf$", $file)) {
$downcounter = ReadDocCounter(DBBASE.$dbwork[0][4]);
if ($downcounter <= 1) {
$txtcount = $web188;
} else {
$txtcount = $web189;
}
}
}
$txt4 = PrettyFileSize($file);
echo '
';
if (trim($txt3) != "") {
$imgmenu1 = "dl.gif";
echo '
'.$txt3.'
';
}
echo '
'.$txt1.'
'.$txt2.'
'.$txt1.' '.($txt4 == '' ? '' : '('.$txt4.') ');
if ($downcounter == -1) {
echo $web282.'
';
}
else {
echo $web191.' '.$downcounter.' '.$txtcount.'
';
}
echo '
';
if ($serviz[32]=="on" && !empty($serviz[31]) && $serviz[31]==$userprefs[1]) {
echo '
';
}
echo '
';
}
else if (!empty($dbwork)) {
if (count($dbwork)-($serviz[4]*($id-1))>$serviz[4]) {
$mawmenu=$serviz[4];
} else {
$mawmenu=count($dbwork)-($serviz[4]*($id-1));
}
echo '
';
$rubr = "";
$l = 0;
for ($i = $serviz[4]*($id-1); $i < Min($serviz[4]*$id, count($dbwork)); $i++) {
ReadDoc(DBBASE.$dbwork[$i][4]);
if ($lng == $lang[0]) {
$txt1 = $fieldb1;
$txt2 = $fieldc1;
$txt3 = $fielda1;
$file = $fieldd1;
} else {
$txt1 = $fieldb2;
$txt2 = $fieldc2;
$txt3 = $fielda2;
$file = $fieldd2;
}
$downcounter = -1;
$txtcount = "";
if ($serviz[35] == "on") {
if (!eregi(".php$|.htm$|.html$|.pdf$", $file)) {
$downcounter = ReadDocCounter(DBBASE.$dbwork[$i][4]);
if ($downcounter <= 1) {
$txtcount = $web188;
} else {
$txtcount = $web189;
}
}
}
$txt4 = PrettyFileSize($file);
if ($rubr <> $txt3) {
$rubr = $txt3;
$imgmenu1="dl.gif";
$imgmenu2="dl1.gif";
if ($l > 0) {
echo '
';
}
if (trim($rubr) != "") {
$l++;
echo '
'.$rubr.'
'.$rubr.'
';
}
}
if (count($dbwork)>$serviz[4]) {
$n=$i-$serviz[4]*$id+$serviz[4];
}
else {
$n=$i;
}
echo '
'.$txt1.'
'.$txt2.'
'.$txt1.' '.($txt4 == '' ? '' : '('.$txt4.') ');
if ($downcounter == -1) {
echo $web282.'
';
}
else {
echo $web191.' '.$downcounter.' '.$txtcount.'
';
}
echo '
';
}
if ($l > 0) {
echo '
';
}
}
echo GetNavBar("download.php?lng=".$lng."&pg=".$pg."&id=", count($dbwork), $id, $serviz[4]);
}
btable();
include("inc/bpage.inc");
?>