Parašė Bebriukas· 2009 Kov. 30 19:03:40
#3
gal netiksliai nukopinau bet kazkur sita reik trint lauk :)
// Veikimas:
// "Nuoroda[-]paveiksliukas"
$menu = array(
BASEDIR."index.php[-]namai",
FORUM."index.php[-]forumas",
BASEDIR."articles.php[-]straipsniai",
BASEDIR."index.php[-]cs_movies",
"http://ip-adress.com[-]ip",
BASEDIR."index.php[-]bars",
BASEDIR."viewpage.php?page_id=1[-]parama",
"http://b00m.lt/[-]cytai",
BASEDIR."index.php[-]servers"
);
$menu_header = array(
BASEDIR."index.php[-]80", // Namai
FORUM."index.php[-]87", // Forumas
BASEDIR."index.php[-]89", // Serveriai
BASEDIR."downloads.php[-]88", // Siuntiniai
"[-]97", // Pamokos
BASEDIR."index.php[-]86", // Reklama
BASEDIR."search.php[-]79", // Paieška
"http://b00m.lt/[-]53", // Čytai
BASEDIR."viewpage.php?page_id=1[-]83", // Parama
"[-]114",
"[-]118"
);
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";
}
echo " </td>
<td class='bnr12' width='284' height='154'></td>
<td class='tarpas' width='1' height='154'></td>
</tr>
<tr>
<td colspan='5' rowspan='2' class='bnr13' width='794' height='42'></td>
<td class='tarpas' width='1' height='24'></td>
</tr>
<tr>
<td colspan='2' class='bnr14' width='186' height='18'></td>
<td class='tarpas' width='1' height='18'></td>
</tr>
</table>
<table align='center' width='980' height='40' border='0' cellpadding='0' bgcolor='$body_bg' cellspacing='0'>
<tr>";
$i = 1;
foreach($menu_header as $a) {
$men = explode("[-]", $a);
echo "<td class='sub_linkai".$i."' width='".$men[1]."' height='40'>";
if($men[0]!="") {
echo "<a href='".$men[0]."'><img src='".THEME."images/spacer.gif' width='".$men[1]."' height='40' style='display:block'>";
}
echo "</td>";
$i++;
}