Posted on: 03/07/06 06:07pm
By: gon
Posted on: 03/08/06 04:27am
By: gon
n";
$display .= "TítuloD/Ls";
$sqlresult = DB_query("SELECT * FROM gl_filemgmt_filedetail where
hits > 0 order by hits DESC limit 0, 10");
while ($row = DB_fetchArray ($sqlresult)) {
$display .="
>$row[title][*1] $row[hits]";
}
$display .= "";
}
if (($_USER['uid'] > 1)){
$display .="";
}
if (!SEC_inGroup('DocMgmt-Admin',$uid)) {
$display .= "
n";
$display .= "";
$display .= '' .
"Más Descargas" . '[*2] ';
$display .= "";
}
return $display;
}
Posted on: 03/08/06 04:34am
By: Robin
function phpblock_topdownloads () { global $LANG_FILEMGMT, $_FM_TABLES, $_CONF; $retval = ''; $result = DB_query("SELECT lid, title, hits from {$_FM_TABLES['filemgmt_filedetail']} WHERE hits > 0 ORDER BY hits desc LIMIT 10"); $nrows = DB_numRows($result); if ($nrows > 0) { $retval .= '<table border="0" cellspacing="0" cellpadding="0">' . LB; $retval .= '<tr><td><b>Plik</b></td><td align="right"><b>D/Ls</b></td></tr>' . LB; for ($i = 0; $i < $nrows && $i < 10; $i++) { list ($lid, $title,$hits) = DB_fetchARRAY($result); if (strlen ($title) > 20) { $attr = ' title="' . htmlspecialchars ($title) . '"'; $title = substr ($title, 0, 17) . '...'; } else { $attr = ''; } $title = str_replace (' ', ' ', $title); $retval .= '<tr><td><a href="' . $_CONF[site_url] . '/filemgmt/singlefile.php?lid=' . $lid . '"' . $attr . '>' . $title . '</td><td align="right">' . $hits . '</td></tr>' . LB; } $retval .= '</table>' . LB; $retval .= '<p><a href="' . $_CONF[site_url] . '/filemgmt/index.php">Więcej Plików</a></p>' . LB; } return $retval; }
Posted on: 07/16/07 08:31pm
By: Anonymous (zouk)
Posted on: 09/27/07 03:00am
By: Anonymous (zouk)
Posted on: 09/27/07 09:39am
By: jmucchiello
Posted on: 09/29/07 01:09am
By: Anonymous (zouk)