<div class='quote' style='width:730px;white-space:nowrap;overflow:auto'><code style='white-space:nowrap'><?php
global $theme_width, $result, $db_prefix, $settings, $data, $userdata,$aidlink, $locale, $aidlink, $msg_count;
$top = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,8");
echo "<table width='499' valign='top' cellspacing='0' cellpanding='0' align='left' style='padding-left:5px;'><tr><td></td><td style='font-family: tahoma;font-size:9px;color:#5e5e5e;'><b>Pavadinimas:</b></td><td style='font-family: tahoma;font-size:9px;color:#5e5e5e;'><b>Siuntësi:</b></td><td style='font-family: tahoma;font-size:9px;color:#5e5e5e;'><b>Nuoroda:</b></b></tr></td>";
$a = 1;
while($data = dbarray($top)){
$result = dbquery("SELECT user_id FROM ".$db_prefix."users WHERE user_name='".$data['download_license']."'");
$data2 = dbarray($result);
echo "<tr><td style='padding-top:2px;font-family: tahoma;font-size:9px;color:#5e5e5e;'>$a.</td><td style='font-family: tahoma;font-size:9px;color:#5e5e5e;'>".$data['download_title']."</a></td><td style='font-family: tahoma;padding-left:8px;font-size:9px;color:#5e5e5e;'>".$data['download_count']."</td><td style='font-family: tahoma;font-size:9px;color:#5e5e5e;'><a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' target='_blank'>Atsisiøsti</a></td>
</tr><tr><td style='margin-top:0px; font-size:7px;color:#5e5e5e;' colspan='4'><img src='".THEME."images/tarpas.png'></td></tr>";
$a++;
}
echo "</table>";
?></code></div>