Sveiki,
Nežinau kokį kodą reikia ir kurioje vietoje parašyti, kad ant pagrindinio headerio nuspaudus mestų į main puslapį. Prisegu foto ir temos scriptą.
AČIŪ LABAI UŽ PAGALBĄ.
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
//define
define("THEME_WIDTH", "950");
define("THEME_BULLET", ">");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style;
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td class='header'>\n";
echo "</tr>\n</table>\n";
//Content
echo "<table align='center' cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>";}
echo "<td rowspan='2' class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>";}
echo "\n</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='scapmain-left'></td>\n";
echo "<td class='news'>".$subject."</td>\n";
echo "<td class='scapmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".$news."\n<br><center>";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</center></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='cap-bottom-left'></td>\n";
echo "<td class='cap-bottom'></td>\n";
echo "<td class='cap-bottom-right'></td>\n";
echo "</tr>\n</table>\n<br>";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='scapmain-left'></td>\n";
echo "<td class='scapmain'>".$subject."</td>\n";
echo "<td class='scapmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title)
{
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>\n";
echo "<td class='scapmain-left'></td>\n";
echo "<td class='scapmain'>".$title."</td>\n";
echo "<td class='scapmain-right'></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan='3' class='main-body middle-border'>\n";
}
function closetable()
{
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='cap2-bottom-left'></td>";
echo "<td class='cap2-bottom'></td>";
echo "<td class='cap2-bottom-right'></td>";
echo "</tr>\n";
echo "</table>\n";
}
function openside($title, $collapse = false, $state = "on")
{
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>\n";
echo "<td class='scapmain-left'></td>\n";
echo "<td class='scapmain'>".$title."</td>\n";
if($collapse == true)
{
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td class='scapmain-right'></td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>\n";
echo "<td class='side-body' colspan='3'>\n";
if($collapse == true)
{
echo panelstate($state, $boxname);
}
}
function closeside()
{
global $panel_collapse;
if($panel_collapse == true)
{
echo "</div>\n";
}
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='cap-bottom-left'></td>\n";
echo "<td class='cap-bottom'> </td>\n";
echo "<td class='cap-bottom-right'></td>\n";
echo "</tr>\n";
echo "</table>\n<br>";
}
?>
www.Fifa-play.wu.lt |