Parašė aikidoek· 2008 Gru. 30 11:12:34
#13
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
$body_text = "#000000 ";
$body_bg = "#006600";
$theme_width = "820";
$theme_width_l = "188";
$theme_width_r = "188";
function render_header($header_content) {
global $theme_width,$db_prefix;
echo "<table align='center' cellspacing='0' cellpadding='0' width='820'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%' background='".THEME."images/header.png' height='362'>
<tr>
<td width='378'></td>
<td align='center' width='186'><table align='center' cellpadding='0' cellspacing='0' width='200'>
<tr>
<td class='side-body-panel'><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<table width='100%' cellpadding='0' cellspacing='0'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='smallas'><img src='".THEME."images/bulletai.gif'> <a href='".BASEDIR."muzika.php?kategorija=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='headerio'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
} else {
echo "<center>Siuntiniø nëra !</center>\n";
}
echo "</table></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='3'></td>
</tr>
</table>
</td>
<td width='20'></td>
<td align='center' width='186'><table align='center' cellpadding='0' cellspacing='0' width='186'>
<tr>
<td class='side-body-panel'><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<table width='100%' cellpadding='0' cellspacing='0'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='smallas'><img src='".THEME."images/bulletai.gif'> <a href='".BASEDIR."muzika.php?kategorija=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='headerio'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
} else {
echo "<center>Siuntiniø nëra !</center>\n";
}
echo "</table></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='3'></td>
</tr>
</table>
</td>
<td width='22'></td>
</tr>
</table>";
echo "<table cellpadding='0' cellspacing='0' background='".THEME."images/kazkas.jpg' width='100%'>
<tr align='center'>
<td><a href='".BASEDIR."index.php'><img src='".THEME."images/navigacija/pagrindinis.gif' border='0'></a></td>
<td><a href='".BASEDIR."muzika.php'><img src='".THEME."images/navigacija/siuntiniai.gif' border='0'></a></td>
<td><a href='".BASEDIR."forumas/index.php'><img src='".THEME."images/navigacija/forumas.gif' border='0'></a></td>
<td><a href='".BASEDIR."viewpage.php?page_id=3'><img src='".THEME."images/navigacija/pramogos.gif' border='0'></a></td>
</tr>
</table>";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "<table width='820' height='50' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td>
<img src='".THEME."images/footer_01.png' width='154' height='57' alt=''></td>
<td>
<img src='".THEME."images/footer_02.png' width='512' height='57' alt=''></td>
<td>
<img src='".THEME."images/footer_03.png' width='154' height='57' alt=''></td>
</tr>
</table><br>\n";
}
function render_news($subject, $news, $info) {
echo "<table width='590' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td>
<img src='".THEME."images/naujienos_01.jpg' width='28' height='47' alt=''></td>
<td align='center' class='capmain'>$subject</td>
<td>
<img src='".THEME."images/naujienos_03.jpg' width='25' height='47' alt=''></td>
</tr>
<tr>
<td colspan='3' align='left' class='main-body'>$news</td>
</tr>
<tr>
<td>
<img src='".THEME."images/naujienos_05.jpg' width='28' height='37' alt=''></td>
<td align='center' class='news-footer' background='".THEME."images/naujienos_06.jpg' width='565' height='37' alt=''>\n";
echo openform("N",$info['news_id']).newsposter($info).newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
<td>
<img src='".THEME."images/naujienos_07.jpg' width='25' height='37' alt=''></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='590' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td>
<img src='".THEME."images/naujienos_01.jpg' width='28' height='47' alt=''></td>
<td width='565' height='47' align='center' class='capmain'>$subject</td>
<td>
<img src='".THEME."images/naujienos_03.jpg' width='25' height='47' alt=''></td>
</tr>
<tr>
<td colspan='3' class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
<tr>
<td>
<img src='".THEME."images/naujienos_05.jpg' width='28' height='37' alt=''></td>
<td class='news-footer' background='".THEME."images/naujienos_06.jpg' width='565' height='37' alt=''>\n";
echo openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
<td>
<img src='".THEME."images/naujienos_07.jpg' width='25' height='37' alt=''></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='590' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td>
<img src='".THEME."images/naujienos_01.jpg' alt=''></td>
<td align='center' class='capmain'>$title</td>
<td>
<img src='".THEME."images/naujienos_03.jpg' width='25' height='47' alt=''></td>
</tr>
<tr>
<td colspan='3' class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
<tr>
<td>
<img src='".THEME."images/naujienos_05.jpg' width='28' height='37' alt=''></td>
<td background='".THEME."images/naujienos_06.jpg' width='565' height='37' alt=''></td>
<td>
<img src='".THEME."images/naujienos_07.jpg' width='25' height='37' alt=''></td>
</tr>
</table>\n";
tablebreak();
}
function openside($title) {
echo "<table align='center' cellpadding='0' cellspacing='0' width='188'>
<tr>
<td align='center' class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "<tr><td><img src='".THEME."images/scapmain_bot.gif'></td></tr>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table align='center' cellpadding='0' cellspacing='0' width='188'>
<tr>
<td align='center' class='scapmain'>$title".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td class='side-body'>\n";
echo "<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "<tr><td><img src='".THEME."images/scapmain_bot.gif'></td></tr>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>