<?
//************************************************************************************************************************//
// theme settings
$body_text = "#C9C1A1";
$body_bg = "#010102";
$theme_width = "100%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings;
echo "<body background='".THEME."images/bkg.jpg'>";
echo "<table border='0' align='center' width='770' cellspacing='1' cellpadding='0' background='".THEME."images/tlo1.jpg'>";
echo "<tr><td width='100%' height='87' background='".THEME."images/tlo1.jpg'>";
echo "<table border='0' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr>";
echo "<br><td height='30' align='right' background='".THEME."images/top_bar_back.gif'>";
echo "<font class='clock'>".ucwords(showdate($settings['subheaderdate'], time()))."</font></td>";
echo "</tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='770'>";
echo "<tr><td width='100%'>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='770'>";
echo "<tr><td width='100%' height='87' bgcolor='#7D746B'>";
echo "<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align='left'><a href='".BASEDIR."index.php'><img border='0' src='".THEME."images/logo.jpg' width='770' height='205' hspace='0' title='".$settings[sitename]."'></a></td><td align='right'>";
echo "</td></tr></table></td></tr></table></td></tr></table>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td align='left' width='1%' background='".THEME."images/navbar.gif'>";
echo "<img height='41' src='".THEME."images/spacer.gif' width='1'></td>";
echo "<td width='100%' background='".THEME."images/navbar.gif'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td align='left' width='75%'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td>";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img border='0' src='".THEME."images/divider.gif'>\n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n";
echo "</tr></table></td><td align='right' width='45%'> </td>";
echo "</tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='2' width='100%' background='".THEME."images/lewemenu.gif' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td align='center'>".stripslashes($settings['footer'])."</td></tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<td class='footer' valign='middle' width='39%'><div align='left'>Powered by <a href='http://www.php-fusion.co.uk' target='_blank'><img src='".THEME."images/fusion.gif' alt='PHP-Fusion' title='PHP-Fusion' border='0' style='vertical-align:middle;'></a> v".$settings['version']." 2003-2005</div></td>";
echo "<td class='footer' align='middle' width='39%'><div align='left'>";
echo "<center>Design by: .:: XBiT.06 ::. | Wszystkie prawa zastrzezone!!!</a></center></td></div>";
echo "<td class='footer' width='22%'><div align='right'>".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></div></tr></table></center></table></table></table>\n <br> ";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #383733' cellpadding='0' cellspacing='0' width='100%'><tr><td>";
echo "<table border='0' cellpadding='0' cellspacing='1' width='100%'><tr><td bgcolor='#252422'>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td background='".THEME."images/cellpic.gif' width='100%' height='40'>";
echo "<font class='storytitle'><b>$subject</b></font> </td></a></tr>";
echo "<tr><td colspan='2'>";
echo "<table border='0' width='100%' cellpadding='0' cellspacing='0' align='center'>";
echo "<tr><td class='main-body'>$news</td></tr></table></td></tr></table></td></tr>";
echo "<tr><td class='news-footer' bgcolor='#2F2E2B' align='left'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." ";
echo "| ";
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> ·\n";
echo "</td></tr></table></td></tr><tr><td></tr></td></tr></table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #383733' cellpadding='0' cellspacing='0' width='100%'><tr><td>";
echo "<table border='0' cellpadding='0' cellspacing='1' width='100%'><tr><td bgcolor='#252422'>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td background='".THEME."images/cellpic.gif' width='100%' height='40'><img src='".THEME."images/newsbyxbit.jpg' hspace='2'>";
echo "<font class='storytitle'><b>$subject</b></font></td></tr>";
echo "<tr><td colspan='2'>";
echo "<table border='0' width='100%' cellpadding='0' cellspacing='0' align='center'>";
echo "<tr><td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr></table></td></tr></table></td></tr>";
echo "<tr><td class='news-footer' bgcolor='#2F2E2B' 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 "<br><center><img src='".THEME."images/line_break.gif' width='98%' height='1' vspace='4'></center> <font class='content'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
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 "</td></tr></table></td></tr><tr><td></tr></td></tr></table>";
}
// Open table begins
function opentable($title) {
echo "<table border='0' style='border: 1px solid #383733' cellpadding='0' cellspacing='0' width='100%'><tr><td>";
echo "<td class='capmain' width='100%'>$title</td></tr>";
echo "<tr><td colspan='2'>";
echo "<table border='0' width='100%' cellpadding='0' cellspacing='0' align='center'><tr><td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table></td></tr></table>";
}
function openside($title) {
echo "<table border='0' style='border: 0px solid #383A3B ' width='179' background='".THEME."images/header.gif' height=40>";
echo "<tr><td width='7'><img src='".THEME."images/pixel.gif'></td>";
echo "<td valign=center><center><font class='boxtitle'>$title</font></center>";
echo "</td></tr></td></tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%' bgcolor='#383733'>";
echo "<table border='0' cellpadding='18' cellspacing='0' width='100%'>";
echo "<tr><td class='' width='100%' background='".THEME."images/lewemenu.gif' bgcolor='#455B6C' [color=green][b]style='text-align: center; padding-right: 15px; padding-left: 15px;'[/b][/color]>";
}
function closeside() {
echo "</td></tr></table></td></tr>";
echo "<td valign=top></td> <img src='".THEME."images/pixel.gif' width='100%' height='0'>";
echo "</td></tr></table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table border='0' style='border: 0px solid #383A3B' width='100%' background='".THEME."images/header.gif' height=40>";
echo "<tr><td width='7'><img src='".THEME."images/pixel.gif'></td>";
echo "<td valign=center><center><font class='boxtitle'>$title</font></center></td>";
echo "<td valign='top'><img align='right' style='cursor:hand' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'>";
echo "</td></tr></td></tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%' bgcolor='#383733'>";
echo "<table border='0' cellpadding='2' cellspacing='0' width='100%'>";
echo "<tr><td class='' width='100%' background='".THEME."images/lewemenu.gif' bgcolor='#455B6C'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</td></tr></table></td></tr>";
echo "<td valign=top></td> <img src='".THEME."images/pixel.gif' width='100%' height='2'>";
echo "</td></tr></table>\n";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='7'>";
echo "</td></tr></table>\n";
}
?>
Edytowane przez Shaolin dnia 16.08.2006 12:11:46
|