Parašė tiktok51· 2008 Rugp. 7 16:08:21
#1
Noreciau kad kaika patobulintumet radau sita koda kur rodo siuntinius hederyje stai:
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink,$db_prefix;
echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #000000 1px; border-left: solid #000000 1px; border-top: solid #000000 1px; margin-top: -5px;'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='header' width='100%'>";
echo "<tr><table align=center width=100% height=100 background='".THEME."images/header.png' border=0 cellspacing=0 cellpadding=0>";
echo"<tr><td height=50 class='nuorodos' align='center' style='padding-right:50px; padding-top:130px;'><br>";
echo"<table width='50%'><tr>";
echo"<td width='40%'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,4");
if (dbrows($result) != 0) {
echo "<table width='100%'>";
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";
}
echo "</td><td width='60%' style='padding-left:80px;' >";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,4");
if (dbrows($result) != 0) {
echo "<table width='100%'>";
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";
}
echo "</tr>
</table>";
echo "</td></tr>
<tr></tr>
<tr><td height=31></td></tr>
</table>
";
echo"</td></tr><tr></tr><tr><td></td></tr></table>";
ir as noriu kad cia rodytu Pro_download_System modo siuntiniu
ten yra venas failas kury ijungus per paneles rodo paneleje top5 naujus ir siunciamiausius prisegsiu as ta faila prie sio forumo ;)
PS: as noriu kad butu naujausi siuntiniai ir sale top5 siuntiniai
Oi katik pamaciau kad neprisisege Pro_download_paner tai as ja cia parsaysiu :)
if(!defined("IN_FUSION")) {
header("Location:../../index.php");
exit;
}
// LOKALE SPRACHDATEI PRÜFEN
if (file_exists(INFUSIONS."pro_download_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."pro_download_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."pro_download_panel/locale/lithuanian.php";
}
openside($locale['PDP_124']);
$sql1 = dbquery("SELECT id, name, cat FROM ".DB_PREFIX."prodownloads"
." ORDER BY datestamp DESC LIMIT 10");
echo "<div class='side-label'><b>".$locale['PDP_125']."</b></div>
<table width='100%' cellspacing='0' cellpadding='0'>\n";
while($data = dbarray($sql1)) {
echo "<tr>
<td><img src='".THEME."images/bullet.gif' alt=''> <a href='".INFUSIONS
."pro_download_panel/download.php?catid=".$data['cat']
."&did=".$data['id']."' title='".$data['name']
."' class='side'>".trimlink($data['name'], 70)."</a></td>";
}
echo "</table>";
$sql1 = dbquery("SELECT id, name, cat, downloads FROM ".DB_PREFIX."prodownloads"
." ORDER BY downloads DESC LIMIT 5");
echo "<p><div class='side-label'><b>".$locale['PDP_126']."</b></div>
<table width='100%' cellspacing='0' cellpadding='0'>\n";
while($data = dbarray($sql1)) {
echo "<tr>
<td><img src='".THEME."images/bullet.gif' alt=''> <a href='".INFUSIONS
."pro_download_panel/download.php?catid=".$data['cat']."&did="
.$data['id']."' title='".$data['name']."' class='side'>"
.trimlink($data[name], 70)."</a></td>
<td align='right'>[".$data['downloads']."]</td>
</tr>\n";
}
echo "</table>";
closeside();
?>
;)
Redagavo Žmogus· 2008 Rugp. 14 11:08:29