Parašė Snaiperis· 2008 Kov. 15 09:03:17
#9
Kaip i theme.php idėti man Top5 Siuntinius, Naujiausi Siuntiniai.
Štai kur man reikia idėti:
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"826\">
<tr>
<td background=\"".THEME."images/radio_orange_19.gif\" width=\"211\" height=\"231\" border=\"0\" alt=\"Fon\"><div style=\"padding-left: 20px; padding-right: 2px; padding-bottom: 20px\">Populiauriausi Siuntiniai</div></td>
<td background=\"".THEME."images/radio_orange_20.gif\" width=\"203\" height=\"231\" border=\"0\" alt=\"Fon\"><div style=\"padding-left: 12px; padding-right: 2px; padding-bottom: 20px\">Naujiausi Siuntiniai</div></td>
<td background=\"".THEME."images/radio_orange_21.gif\" width=\"200\" height=\"231\" border=\"0\" alt=\"Fon\"><div style=\"padding-left: 10px; padding-right: 2px; padding-bottom: 20px\">URL linkas</div></td>
<td background=\"".THEME."images/radio_orange_22.gif\" width=\"212\" height=\"231\" border=\"0\" alt=\"Fon\"><div style=\"padding-left: 15px; padding-right: 2px; padding-bottom: 20px\">URL linkas</div></td>
</tr></table>
Na o man db reikia ties images/radio_orange_19.gif idėti.
kaip tai padaryti gal galite idėti štai paneliu kodai.
echo "<table width='100%'>
<tr>
<td width='33%'>";
openside("Naujausia siuntiniai");
echo "<div class='side-label'><b>Nauji siuntiniai</b></div>\n";
$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";
}
echo "";
closeside();
echo "</td>
<td width='33%'>";
openside("Top 5 Siuntiniai");
echo "<div class='side-label'><b>Top 5 siuntiniai</b></div>\n";
$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'], 23);
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();
echo "</td>
Redagavo Snaiperis· 2008 Kov. 15 16:03:55