Właśnie w tym problem że jej nawet nie tykałem gdy usunę tylko mój kod wszystko działa więc nie wiem o co chodzi
<?
// theme settings
$body_text = "#dddddd";
$body_bg = "#425d7a";
$theme_width = "85%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<script src='".THEME."/grade.js' language='Javascript'></script>";
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='bar-l'><img src='".THEME."images/blank.gif' width='9' height='13' alt='' style='display:block'></td>
<td class='bar-m'><img src='".THEME."images/blank.gif' width='1' height='13' alt='' style='display:block'></td>
<td class='bar-r'><img src='".THEME."images/blank.gif' width='9' height='13' alt='' style='display:block'></td>
</tr>
</table>
<div style='margin:2px;'></div>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='main-body'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td><center>$header_content</center></td>
</tr>
</table>
</td>
</tr>
</table>
<div height='2'><img src='".THEME."images/blank.gif' width='100%' height='2' alt='' style='display:block'></div>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' class='border'>\n<tr>
<td class='header1'>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/divider.gif'> "; } 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><td align='right' class='header1'>".ucwords(showdate("%A, %B %d, %Y", time()))."</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='header1'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='header2'><br>
".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br><br>\n");
if ($license == false) {
echo "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> 2003-2007<br><br>\n";
}
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='cap-main-l'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
<td class='cap-main' style='white-space:nowrap'>$subject</td>
<td class='cap-main-m'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
<td class='cap-main-2'><img src='".THEME."images/box_on.gif' width='7' height='14' alt=''></td>
<td class='cap-main-r'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
</tr>
</table>
<div style='margin:2px;'></div>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='main-body'>
<div style='width:100%;vertical-align:top;'>$news</div>
<div class='news-footer'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])." ·
".($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 $info['news_reads'].$locale['044']."
<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>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='cap-main-l'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
<td class='cap-main' style='white-space:nowrap'>$subject</td>
<td class='cap-main-m'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
<td class='cap-main-2'><img src='".THEME."images/box_on.gif' width='7' height='14' alt=''></td>
<td class='cap-main-r'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
</tr>
</table>
<div style='margin:2px;'></div>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='main-body'>
<div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div class='news-footer'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])." ·\n";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo $info['article_reads'].$locale['044']."
<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>
</div>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='cap-main-l'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
<td class='cap-main' style='white-space:nowrap'>$title</td>
<td class='cap-main-m'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
<td class='cap-main-2'><img src='".THEME."images/box_on.gif' width='7' height='14' alt=''></td>
<td class='cap-main-r'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
</tr>
</table>
<div style='margin:2px;'></div>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='cap-main-l'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
<td class='cap-main' style='white-space:nowrap'>$title</td>
<td class='cap-main-m'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
<td class='cap-main-2'><img src='".THEME."images/box_on.gif' width='7' height='14' alt=''></td>
<td class='cap-main-r'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
</tr>
</table>
<div style='margin:2px;'></div>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='cap-main-l'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
<td class='cap-main' style='white-space:nowrap'>$title</td>
<td class='cap-main-m'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
<td class='cap-main-2'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/box_$box_img.gif'></td>
<td class='cap-main-r'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
</tr>
</table>
<div id='box_$title'".($open=="off" ? " style='display:none'>" : ">")."
<div style='margin:2px;'></div>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='side-body'>\n";
}
function closesidex() {
echo "</td>
</tr>
</table>
</div>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='8'></td></tr>
</table>\n";
}
function ferbi($temat, $tresc) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='cap-main-l'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
<td class='cap-main' style='white-space:nowrap'>$temat</td>
<td class='cap-main-m'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
<td class='cap-main-2'><img src='".THEME."images/box_on.gif' width='7' height='14' alt=''></td>
<td class='cap-main-r'><img src='".THEME."images/blank.gif' width='9' height='20' alt='' style='display:block'></td>
</tr>
</table>
<div style='margin:2px;'></div>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='main-body'>
<div style='width:100%;vertical-align:top;'>$tresc</div>
<div class='news-footer'></div>
</td>
</tr>
</table>\n";
}
?>
Edytowane przez Pieka dnia 26.02.2008 22:18:19
|