<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "956");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style;
//Header
echo "<table align='center' cellspacing='0' cellpadding='0' width='1004' class='full-header'>
<tr>
<td align='right' class='reklama'><a href='http://cszone.lt'><img src='http://cszone.lt/images/468x60.gif' alt='' style='border:0px;' /></a>
</td>
</tr>
<tr>
<td align='center' style='padding-top:10px;'>"; include THEME."login.php"; echo "</td>
</tr></table>";
echo "<table style='padding-right:4px;' align='center' cellspacing='0' cellpadding='0' width='".THEME_WIDTH."'><tr>
<td><a href='".BASEDIR."index.php'><img src='".THEME."images/head_02.png' alt='' style='border:0px;' /></a></td>
<td><a href='".BASEDIR."news.php'><img src='".THEME."images/head_03.png' alt='' style='border:0px;' /></a></td>
<td><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/head_04.png' alt='' style='border:0px;' /></a></td>
<td><a href='".BASEDIR."viewpage.php?page_id=2'><img src='".THEME."images/head_05.png' alt='' style='border:0px;' /></a></td>
<td><a href='".BASEDIR."downloads.php'><img src='".THEME."images/head_06.png' alt='' style='border:0px;' /></a></td>
<td><a href='".BASEDIR."viewpage.php?page_id=3'><img src='".THEME."images/head_07.png' alt='' style='border:0px;' /></a></td>
<td><a href='".BASEDIR."index.php'><img src='".THEME."images/head_08.png' alt='' style='border:0px;' /></a></td>
</tr></table>";
//Content
echo "<table align='center' cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='$main_style'><tr>";
if (LEFT) { echo "<td class='side-border-left' valign='top'>"; include THEME."nauji.php"; echo "".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'><div class='slide-bg'>"; include THEME."slide/imagerotator.html"; echo "</div><br />".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr></table>";
//Footer
echo "<table align='center' cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='footer'><tr>
<td align='left'>
<a href='".BASEDIR."index.php'><img src='".THEME."images/cszona.png' alt='' style='border:0px;' /></a></td>
<td align='left'>Copyright 2011 CSzona.net
<br />Visos teises saugomos</td>
<td align='right'>
<a href='http://gy.ideart.info' target='_blank'><img src='".THEME."images/gy.png' alt='' style='border:0px;' /></a></td>
</tr></table>";
}
function render_news($subject, $news, $info) {
echo "<table cellspacing='0' cellpadding='0' width='100%'><tr>
<td align='left' class='capmain'>".$subject."</td><td align='left' class='info'>Autorius: <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> [".showdate("shortdate", $info['news_date'])."]</td><td align=right' class='placiau'><a href='news.php?readmore=".$info['news_id']."'>Placiau</a></td>
</tr>
</table>
<table cellspacing='0' cellpadding='0' width='100%'>
<tr>
<td class='main-body'>".$news."</td>
</tr>
</table>";
}
function render_article($subject, $article, $info) {
echo "<table cellspacing='0' cellpadding='0' width='100%'><tr>
<td class='capmain'>".$subject."</td>
</tr>
<tr>
<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
<tr>
<td align='center' class='news-footer'>";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']); echo "</td>
</tr>
</table>";
}
function nauji($title) {
echo "<table cellspacing='0' cellpadding='0' width='100%'><tr>
<td class='nauji'>".$title."</td>
</tr>
<tr>
<td class='nauji-body'>";
}
function nauji_close() {
echo "</td>
</tr>
</table>";
}
function opentable($title) {
echo "<table cellspacing='0' cellpadding='0' width='496'><tr>
<td class='capmain'>".$title."</td>
</tr>
<tr>
<td class='main-body'>";
}
function closetable() {
echo "</td>
</tr>
</table>";
}
function openside($title) {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
} else {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain-right'>$title</td>
</tr>
<tr>
<td class='side-body-right'>\n";
}
}
function closeside() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</td>
</tr>
</table>\n";
tablebreak();
} else {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
tablebreak();
}
?>