Parašė And2s· 2010 Bal. 30 16:04:58
#23
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#FFFFFF";
$body_bg = "#6A635A";
$theme_width = "863";
$theme_width_l = "235";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width, $userdata, $aidlink, $settings, $db_prefix;
echo "<table cellpadding='0' cellspacing='0' width='863' align='center'>
<tr>
<td class='header'>
<div id='plotas'>
<div id='serveriai'><a href='".BASEDIR."/serveriai'><img src='".THEME."images/blank.gif' width='40' height='7' border='0' alt=''></a></div>
<div id='reklama'><a href='".BASEDIR."reklama.php'><img src='".THEME."images/blank.gif' width='39' height='7' border='0' alt=''></a></div>
<div id='kontaktai'><a href='".BASEDIR."contacts.php'><img src='".THEME."images/blank.gif' width='42' height='7' border='0' alt=''></a></div>
<div id='nariams'>\n"; include THEME."user_info_panel.php"; echo "</div>
<div id='pamokos'><a href='".BASEDIR."articles.php'><img src='".THEME."images/blank.gif' width='41' height='7' border='0' alt=''></a></div>
<div id='naujausia'>\n"; include THEME."latest_downloads_panel.php"; echo "</div>
<div id='paieska'><form name='search' action='search.php?stype=n' method='post'><input type='text' name='stext' class='searchbox' value='Paieðkos tekstas...' onfocus=\"if(this.value=='Paieðkos tekstas...'){this.value='';}\" onblur=\"if(this.value==''){this.value='Paieðkos tekstas...';}\"> <input type='submit' value='Ieðkoti' name='option' class='button-ok'></form></div>
<div id='pagrindinis'><a href='".BASEDIR."news.php'><img src='".THEME."images/blank.gif' width='54' height='10' border='0' alt=''></a></div>
<div id='forumas'><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/blank.gif' width='39' height='7' border='0' alt=''></a></div>
<div id='siuntiniai'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/blank.gif' width='44' height='7' border='0' alt=''></a><div>
</div>
</td>
</tr>
</div>
</td>
</tr>
</div>
</td>
</tr>
</div>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='863' align='center'>\n<tr>\n";
}
function render_footer() {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width' height='74' align='center' class='them-footer'>
<tr>
<td style='padding-left: 30px;'>
<span style='color: #ffffff;'>Dizainas:</span> <a href='http://estel.huh.lt'><span style='color: #ffffff;'>estel</span></a><br>
<span style='color: #ffffff;'>Programavimas:</span> <a href='http://cs.asilas.lt'><span style='color: #ffffff;'>Dyaz</span></a><br>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='988' align='center'>
<tr>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='435'>
<tr>
<td class='capmain-left'>\n";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") {
echo "<a href='news.php?readmore=".$info['news_id']."' style='text-decoration: none'>".$info['news_subject']."</a>\n";
} else {
echo $subject;
}
echo "</td>
</tr>
<tr>
<td class='main-body' colspan='2'>$news</td>
</tr>
<tr>
<td class='news-footer' colspan='2'><a href='news.php?readmore=".$info['news_id']."'>Skaityti daugiau..</a></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='435'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td class='news-footer'></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='435'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
<tr>
<td class='news-footer'></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='205'>
<tr>
<td class='scapmain' align='center'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
<tr>
<td class='side-footer'></td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain' align='center'>$title<img src='".THEME."images/blank.gif' width='10' height='0' alt=''>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
<tr>
<td class='side-footer'></td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='9'></td>\n</tr>\n</table>\n";
}
?>
Redagavo And2s· 2010 Bal. 30 16:04:40