Parašė Lordcraft· 2008 Vas. 2 17:02:45
#14
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
// theme settings
$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "770";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings,$locale;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:1px #fff solid;'>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='full-header' style='padding:5px;'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td><div align='center'>";
include("menu.php");
echo "</div></td>
</td>
</tr>
</table></br></td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td><div align='center'>";
include("banners.php");
echo "</div></td>
</td>
</tr>
</table></br></td>
<tr>
<td align='center'>
<a href='".BASEDIR."index.php'><img src='".THEME."images/namai.gif' border=0' alt='Pradinis'></a>
<a href='".BASEDIR."go.php'><img src='".THEME."images/vip.gif' border=0' alt='VIP'></a>
<a href='".BASEDIR."downloads.php'><img src='".THEME."images/download.gif' border=0' alt='Download'></a>
<a href='".BASEDIR."weblinks.php?cat_id=1'><img src='".THEME."images/serveriai.gif' border=0' alt='Serveriai'></a>
<a href='".BASEDIR."photogallery.php'><img src='".THEME."images/galerija.gif' border=0' alt='Galerija'></a>
<a href='".FORUM."index.php'><img src='".THEME."images/forum.gif' border=0' alt='Forumas'></a>
<a href='".BASEDIR."weblinks.php?cat_id=1'><img src='".THEME."images/links.gif' border=0' alt='Nuorodos'></a>
<a href='".BASEDIR."contact.php'><img src='".THEME."images/kontaktai.gif' border=0' alt='Kontaktai'></a>
</td>
</tr>
</table>
</br>
<center> <table width='100%' cellspacing='0' cellpadding='0'>
<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "
</tr>
</table></center>
<center>
<table cellpadding='0' cellspacing='0' width='770'>
<tr>
<td><div align='center'>";
include("banners.php");
echo "</div></td>
</td>
</tr>
</table>
</center>
<center>
<table cellpadding='0' cellspacing='0' width='770'>
<tr>
<td class='white-header'>".stripslashes($settings['footer'])."</td>
</tr>
</table></center>
<table cellpadding='0' cellspacing='0' width='770'>
<tr>
</br>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
$news
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='news-footer'><img src='".THEME."images/bullet.gif' alt='·'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</td>
<td align='right' class='news-footer'>\n";
if ($info['news_ext'] == "y") echo "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n";
if ($info['news_allow_comments']) echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·\n";
echo $info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='news-footer'><img src='".THEME."images/bullet.gif' alt='·'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."</td>
<td align='right' class='news-footer'>\n";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo $info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$title</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "
</td>
</tr>
</table>\n";
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>
<img src='".THEME."images/panel_$box_img.gif' alt='$box_img' name='b_$boxname' onclick=\"javascript:flipBox('$boxname')\">
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>
<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "
</div>
</td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td height='8'></td>
</tr>
</table>\n";
}
?>