Parašė efy· 2008 Lap. 16 15:11:28
#1
man dabar populiariausius siuntinius rodo per vduri kaip padaryti kas rodytu kaireje?
Cia mano theme.php header kodas:"
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink,$db_prefix;
echo "<br>
<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' background='".THEME."images/header.gif' height='338'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='80%'>
<tr valign='top'>
<td>
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td align=center style='padding-left:40px; padding-top:36px;' height='338'>";
echo "</td>
<td width='40%'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,13");
if (dbrows($result) != 0) {
echo "<table width='5%' cellpadding='0' cellspacing='2'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 30);
echo "<tr>\n<td class='small'><img src='".THEME."images/bulletai.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='left'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<left>".$locale['004']."</left>\n";
}
echo"
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width'>";
}