Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: #ATNAUJINTA# Swizz klausimai

Parašė SWIZZ· 2009 Bir. 15 19:06:30
#13

4# Kaip padaryti kad Naujausi Siuntiniai ir Top 5 Siuntiniai butu ne kaip atskiros o suglaustos paneles tu tipo viena šalia kitos nu tipo Naujausi Siuntiniai ir šalia iš dešinės TOP 5

Kodas:

opentable("Naujausi Siuntiniai");
$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 "";
closetable();

opentable("Top 5 Siuntiniai");
$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";
}
closetable();




Kas atsakys +10

Redagavo SWIZZ· 2009 Bir. 15 19:06:02