Parašė MaFetas· 2008 Spa. 5 21:10:01
#12
Prašau
echo "<table width='100%'><tr><td width='50%'>";
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (file_exists(INFUSIONS."popular_downloads_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."popular_downloads_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."popular_downloads_panel/locale/English.php";
}
openside("Populiariausi failai");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 20);
echo "<tr>\n<td class='small'><img src='".BASEDIR."images/Files.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
echo "</td><td width='50%'>";
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (file_exists(INFUSIONS."latest_downloads_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."latest_downloads_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."latest_downloads_panel/locale/English.php";
}
openside("Naujausi failai");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".BASEDIR."images/Files.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 15)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
closeside();
echo "</td></tr></table>";
Redagavo MaFetas· 2008 Spa. 5 21:10:21