<?
/* Theme Settings */
/************************/
$body_text = "#FAFAFA";
$body_bg = "#899DA4";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
echo'
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>';
function render_header($header_content) {
global $theme_width,$settings,$userdata;
echo "<table class='borderline' border='0' cellpadding='0' cellspacing='0' bgcolor='#70889A' width='100%' align='center'>\n";
echo "<tr><td bgColor='#394B5B'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td align='left' width='1' background='".THEME."images/header_bg.gif' height='100'></td>";
echo "<td vAlign='top' align='left' width='100%' background='".THEME."images/header_bg.gif' bgColor='#4F5D69' height='100'>";
echo "<a href='".BASEDIR."index.php'><img src='".THEME."images/logo.gif' width='222' height='100' title='".$settings[sitename]."'></a></td>";
echo "<td align='left' width='1' background='".THEME."images/header_bg.gif'></td></tr>";
echo "<tr><td align='left' width='1' background='".THEME."images/header_nav_bg1.gif' height='41'></td>";
echo "<td valign='center' align='left' background='".THEME."images/header_nav_bg.gif' bgColor='#6180ac' height='41'>";
echo "<table height='41' cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo"<tr>";
//URL IMAGES BEGIN HERE
echo "<td width='60' height='41'><a onmouseover=\"MM_swapImage('Image1','','".THEME."images/home_over.gif',1)\" onmouseout='MM_swapImgRestore()' href='".BASEDIR."index.php'><img src='".THEME."images/home.gif' name='Image1' width='60' height='41'></a></td>";
echo "<td width='77' height='41'><a onmouseover=\"MM_swapImage('Image2','','".THEME."images/forum_over.gif',1)\" onmouseout='MM_swapImgRestore()' href='".BASEDIR."forum/index.php'><img src='".THEME."images/forum.gif' name='Image2' width='77' height='41'></a></td>";
echo "<td width='81' height='41'><a onmouseover=\"MM_swapImage('Image3','','".THEME."images/downloads_over.gif',1)\" onmouseout='MM_swapImgRestore()' href='".BASEDIR."downloads.php'><img src='".THEME."images/downloads.gif' name='Image3' width='81' height='41'></a></td>";
echo "<td width='64' height='41'><a onmouseover=\"MM_swapImage('Image5','','".THEME."images/gallery_on.gif',1)\" onmouseout=\"MM_swapImgRestore()\" href='".BASEDIR."photogallery.php'><img src='".THEME."images/gallery.gif' name='Image5' width='64' height='41'></a></td>";
echo "<td width='77' height='41'><a onmouseover=\"MM_swapImage('Image6','','".THEME."images/articles_on.gif',1)\" onmouseout=\"MM_swapImgRestore()\" href='".BASEDIR."articles.php'><img src='".THEME."images/articles.gif' name='Image6' width='77' height='41'></a></td>";
echo "<td width='77' height='41'><a onmouseover=\"MM_swapImage('Image7','','".THEME."images/search_on.gif',1)\" onmouseout=\"MM_swapImgRestore()\" href='".BASEDIR."search.php'><img src='".THEME."images/search.gif' name='Image7' width='77' height='41'></a></td>";
//URL IMAGES END HERE
echo "<td width='100%'><img height='41' src='".THEME."images/header_nav_bg.gif' width='6'></td></tr></table></td>";
echo"<table width='100%' cellpadding='1' bgcolor='#394B5B' cellspacing='0' border='0'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='4' bgcolor='#394B5B' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</td></tr></table>\n";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr>";
echo "<td>".stripslashes($settings['footer'])."</td><br>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td width='35%' class='botnav' align='left'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' title='PHP-Fusion' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
}
echo "</td>";
echo "<td width='20%' class='botnav' align='center'>Leviathan by: <a target='_blank' href='http://phpfusion.org'><img title='PHP-Fusion Themes' src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a></td>";
echo "<td width='35%' class='botnav' align='middle'><div align='right'>";
echo "<font class='visits'>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</div></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table width='100%' border='0' cellspacing='0' cellpadding='1'>";
echo "<tr><td bgcolor='#8B9BA9'><table width='100%' border='0' cellspacing='0' cellpadding='4'>";
echo "<tr><td bgcolor='#2E373F'><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td bgcolor='#8B9BA9'><table width='100%' border='0' cellspacing='1' cellpadding='4'>";
echo "<tr><td bgcolor='07243A'><img align='left' src='".THEME."images/small_arrow.gif'><img src='".THEME."images/pixel.gif' width='6' height='1'><font class='news-title'>$subject</font>";
echo "</td></tr>";
echo "<tr><td colspan='2' bgcolor='#4C5A66'>";
echo "<table border='0' width='100%' bgcolor='#4C5A66' align='center'><tr><td>";
echo "<br><font class='content'>$news</font></td></tr></table>";
echo "<br><center><img src='".THEME."images/line_break.gif' width='98%' height='1' vspace='0'></center> ";
echo " <div align='left'><b><font class='tiny'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])."";
echo "</div><div align='right'>";
echo "".($info['news_ext'] == "y" ? "<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> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a></div>";
echo "</tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table width='100%' border='0' cellspacing='0' cellpadding='1'>";
echo "<tr><td bgcolor='#8B9BA9'><table width='100%' border='0' cellspacing='0' cellpadding='4'>";
echo "<tr><td bgcolor='#2E373F'><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td bgcolor='#8B9BA9'><table width='100%' border='0' cellspacing='1' cellpadding='4'>";
echo "<tr><td bgcolor='07243A'><img align='left' src='".THEME."images/small_arrow.gif'><img src='".THEME."images/pixel.gif' width='6' height='1'><font class='news-title'>$subject</font></td>";
echo "</tr>";
echo "<tr><td colspan='2' bgcolor='#4C5A66'>";
echo "<table border='0' width='100%' bgcolor='#4C5A66' align='center'><tr><td>";
echo "<br><font class='content'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</font>";
echo "</td></tr></table>";
echo " <b><font class='tiny'>";
echo "<br><center><img src='".THEME."images/line_break.gif' width='98%' height='1' vspace='3'></center> <div align='left'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."";
echo "</div><div align='right'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</div></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table>";
}
// Open table begins
function opentable($title) {
echo "<table border='0' style='border: 1px solid #8B9BA9' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='26' width='100%' bgcolor='#214057'> ";
echo "<font class='title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#4C5A66' class='side-body' width='100%'>";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table border='0' style='border: 1px solid #8B9BA9' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='26' width='100%' bgcolor='#07243A'>";
echo "<img border='0' src='".THEME."images/small_arrow.gif' hspace='5'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#4C5A66' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table border='0' style='border: 1px solid #8B9BA9' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='26' width='100%' bgcolor='#07243A'>";
echo "<img align='left' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#4C5A66' class='side-body' width='100%'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
masz powiedz mi gdzie tu zmienic
//Proton
Kody dawaj w code
Edytowane przez proton dnia 21.08.2006 16:07:00
|