Я просто в файл панели - <b>Новые файлы</b> (<u>latest_downloads_panel</u>)
Вставил часть из панели - <b>Популярные загрузки</b> (<u>popular_downloads_panel</u>)
И вот что получилось:
[expand]
<!--c1--><div class='codetop'>Код</div><div class='codemain'><!--ec1--><?php
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($locale['LDP_001']);
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.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'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
?>
<table cellSpacing='0' cellPadding='0' width='100%' border='0'>
<tr><td class='forumlinemain'>
<table class='forumline' cellSpacing='1' cellPadding='3' width='100%' border='0'>
<td class='catHead' align='left'>
<span class='nav'>Популярные загрузки</span>
</td></tr>
</table>
</table>
<?php
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";
}
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,5");
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='".THEME."images/bullet.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();
?><!--c2--></div><!--ec2-->
[/expand]