Parašė Jaunelis· 2009 Vas. 14 20:02:07
#79
sveiki blemba susiduriau su toke problema kad noriu kad butu per visa tema boarderis o jis aina tik per headery kurioje čia vietoje terpt ? nes ant vienos temos idėjau taip veikia o anš šitos ne,
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "993";
$theme_width_l = "413";
$theme_width_r = "413";
function render_header($header_content) {
global $theme_width,$locale,$data,$aidlink,$db_prefix;
echo "<table align='center' cellspacing='0' cellpadding='0' width='993' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='993'>
<tr>
<td class='full-header'>
<td <img src='".THEME."images/headeris.jpg'></td>
</tr>
</table>\n";
echo "
<tr>
<td><table border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td width='221' align='center'><img src='".THEME."images/none.gif' border=0' alt=''></a></td>
<td width='91' align='center'><a href='".BASEDIR."news.php'><img src='".THEME."images/pagrindinis.gif' border=0' alt=''></a></td>
<td width='103' align='center'><a href='".FORUM."index.php'><img src='".THEME."images/forumas.gif' border=0' alt=''></td>
<td width='86' align='center'><a href='".BASEDIR."members.php'><img src='".THEME."images/nariai.gif' border=0' alt=''></td>
<td width='121' align='center'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/rezultatai.gif' border=0' alt=''></td>
<td width='109' align='center'><a href='".BASEDIR."articles.php'><img src='".THEME."images/kontaktai.gif' border=0' alt=''></td>
<td width='82' align='center'><a href='".BASEDIR."contact.php'><img src='".THEME."images/reklama.gif' border=0' alt=''></td>
<td width='180' align='center'><img src='".THEME."images/none1.gif' border=0' alt=''></a></td>
</tr>
</table></td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='footer'>
<tr>
<td </td>
<td width='446'></td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='589'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='589' cellpadding='0' cellspacing='0'>
<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'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='589'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</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'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</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";
}
?>