Parašė Jaunelis· 2009 Kov. 30 19:03:47
#2
echo "
<table align='center' cellspacing='0' cellpadding='0' width='980' class='mainsite-border'>
<tr><td><table align='center' width='$theme_width' style='height:395px;' border='0' bgcolor='$body_bg' cellpadding='0' cellspacing='0'>
<tr>
<td class='bnr1' width='16' height='53'></td>
<td class='bnr3' width='170' height='53'></td>
<td colspan='5' class='bnr4' width='794' height='53'></td>
<td class='tarpas' width='1' height='53'></td>
</tr>
<tr>
<td rowspan='3' class='bnr5' width='16' height='324'></td>
<td rowspan='3' class='bnr6' width='170' height='324' align='center' valign='top'>";
foreach($menu as $a) {
$men = explode("[-]", $a);
echo "<a href='".$men[0]."'><img src='".THEME."images/".$men[1]."1.gif' border='0' onmouseover=\"this.src='".THEME."images/".$men[1]."0.gif'\" onmouseout=\"this.src='".THEME."images/".$men[1]."1.gif'\" alt=''></a>";
}
echo "</td>
<td colspan='5' class='bnr7' width='794' height='146'></td>
<td class='tarpas' width='1' height='146'></td>
</tr>
<tr>
<td class='bnr8' width='42' height='154'></td>
<td class='bnr9' width='207' height='154' align='center'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
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'], 30)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "Šiai panelei nėra turinio";
}
echo " </td>
<td class='bnr10' width='59' height='154'></td>
<td class='bnr11' width='202' height='154' align='center'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."downloads ORDER BY download_count DESC LIMIT 0,10");
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'], 30)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "Šiai panelei nėra turinio";
}