Ale to raczej nie kolor, patrzyłem na kod theme.php kilka razy i błedu nie znalazłem. Zobaczcie wy na to:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
$body_text = "#FFFFFF";
$body_bg = "#111111";
$theme_width = "980";
$theme_width_l = "150";
$theme_width_r = "150";
function render_header($header_content) {
global
$theme_width,$settings,$db_prefix,$locale,$userdata,$aidlink;
echo "<center><table id='Table_01' width='981' height='254' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='11'>
<img src='/themes/plusv2/images/index_01.png' width='980' height='140' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='1' height='140' alt=''></td>
</tr>
<tr>
<td colspan='4' background='/themes/plusv2/images/index_02.png'> </td>
<td rowspan='2'>
<a href='http://www.gtaplus.pl/index.php'><img src='/themes/plusv2/images/index_03.png' alt='' width='60' height='21' border='0'></a></td>
<td rowspan='2'>
<a href='http://www.gtaplus.pl/forum'><img src='/themes/plusv2/images/index_04.png' alt='' width='65' height='21' border='0'></a></td>
<td>
<a href='http://www.gtaplus.pl/upload.php'><img src='/themes/plusv2/images/index_05.png' alt='' width='110' height='20' border='0'></a></td>
<td>
<a href='http://www.gtaplus.pl/viewpage.php?page_id=1'><img src='/themes/plusv2/images/index_06.png' alt='' width='66' height='20' border='0'></a></td>
<td>
<a href='http://www.gtaplus.pl/viewpage.php?page_id=2'><img src='/themes/plusv2/images/index_07.png' alt='' width='68' height='20' border='0'></a></td>
<td colspan='2' rowspan='2'>
<a href='http://www.gtaplus.pl/viewpage.php?page_id=5'><img src='/themes/plusv2/images/index_08.png' alt='' width='83' height='21' border='0'></a></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='1' height='20' alt=''></td>
</tr>
<tr>
<td colspan='4' rowspan='2'>
<img src='/themes/plusv2/images/index_09.png' width='528' height='14' alt=''></td>
<td colspan='3' rowspan='2'>
<img src='/themes/plusv2/images/index_10.png' width='244' height='14' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='1' height='1' alt=''></td>
</tr>
<tr>
<td colspan='2'>
<img src='/themes/plusv2/images/index_11.png' width='125' height='13' alt=''></td>
<td colspan='2'>
<img src='/themes/plusv2/images/index_12.png' width='83' height='13' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='1' height='13' alt=''></td>
</tr>
<tr>
<td rowspan='2' background='/themes/plusv2/images/index_13.png'><div style=\"padding-left=20px;\"> ";
if (iMEMBER) {
opensidel();
if ($userdata['user_avatar'] != "") {
echo " <center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr><tr>\n";
echo "<td align='left'><img src='".IMAGES."avatar_mod/srodek_lewa.png' width='12' height='100%'></td>\n";
echo "<td align='center' height='1%'>";
echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' hight='50' alt='".$data['user_name']."'></td>";
echo "<td align='right'><img src='".IMAGES."avatar_mod/srodek_prawa.png' height='100%' width='12'></td></tr><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_prawa.png' height='12' width='12'></td></tr>\n";
echo "</table></center>";
} else {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr><tr>\n";
echo "<td align='left'><img src='".IMAGES."avatar_mod/srodek_lewa.png' width='12' height='100%'></td>\n";
echo "<td align='center' height='1%'>";
echo "<img src='http://www.gtaplus.pl/forum1/images/brak.gif' width='50' hight='50'></td>";
echo "<td align='right'><img src='".IMAGES."avatar_mod/srodek_prawa.png' height='100%' width='12'></td></tr><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_prawa.png' height='12' width='12'></td></tr>\n";
echo "</table></center>";
echo"<table><tr><td></td></tr></table>";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo " <a href='".BASEDIR."edit_profile.php' class='side'>Edytuj Profil</a><br>
<a href='".BASEDIR."messages.php' class='side'>Wiadomosci</a><br>
<a href='".BASEDIR."uzytkownicy.html' class='side'>Uzytkownicy</a><br>
\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo " <a href='http://www.gtaplus.pl/administration/index.php?aid=ee48ff5a52f81dae' >Panel Administratora</a><br>\n";
}{echo "\n
";
echo" <a href='".BASEDIR."setuser.php?logout=yes' class='side'>[ Wyloguj ]</a>\n";
if ($msg_count) echo "<center><b><a href='".BASEDIR."messages.php' class='side2'>".sprintf('Masz %u PW' , $msg_count)."</a></b></center>\n";
}
tablebreak();
} else {
opensidel();
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='panellogowania_texbox' value='Login....' onBlur=\"if(this.value=='') this.value='Login....';\" onFocus=\"if(this.value=='Login....') this.value='';\" style=\"padding-top: 4px; padding-left: 5px; padding-right: 29px ; width:100px; height:20px;\" ><br><br>
<input type='password' name='user_pass' class='panellogowania_texbox' value='haslo' onBlur=\"if(this.value=='') this.value='haslo';\" onFocus=\"if(this.value=='haslo') this.value='';\" style=\"padding-top: 4px; padding-left: 5px; padding-right: 29px ; width:100px; height:20px;\" ><br>
<input type='checkbox' name='remember_me' value='y' title='Zapamietaj mnie' style='vertical-align:middle;'>
<input type='submit' name='login' value='Loguj' class='panelogowania_button'>
</form>
</div>\n";
}
closesidel();
echo"
</div></td>
<td rowspan='2' background='/themes/plusv2/images/index_14.png'><div style=\"padding-left=10px;\">
";$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='230' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='small' width='225'><a href='".BASEDIR."pliki.html?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side' style=\"color: #F5F5F5\">$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>Brak Plików w Pobieralni</center>\n";
}echo"</div></td>
<td><img src='/themes/plusv2/images/index_15.jpg' height='60' alt=''>
</td>
<td colspan='7'>
<img src='/themes/plusv2/images/index_16.png' width='468' height='60' alt=''></td>
<td>
<img src='/themes/plusv2/images/index_17.png' width='25' height='60' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='1' height='60' alt=''></td>
</tr>
<tr>
<td colspan='9'>
<img src='/themes/plusv2/images/index_18.png' width='504' height='19' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='1' height='19' alt=''></td>
</tr>
<tr>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='232' height='1' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='244' height='1' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='11' height='1' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='41' height='1' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='60' height='1' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='65' height='1' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='110' height='1' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='66' height='1' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='68' height='1' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='58' height='1' alt=''></td>
<td>
<img src='/themes/plusv2/images/spacer.gif' width='25' height='1' alt=''></td>
<td></td>
</tr>
</table></center>\n";
echo "<center><table width='980' cellspacing='0' cellpadding='0'></center>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<BR><BR><tr>
<td width='980' height='98' background='/themes/plusv2/images/index_19.png' scope='col'> Powered by <b><a href='http://www.php-fusion.co.uk/'>PHP-Fusion</a></b> | Strona dziala poprawnie w przegladarce <b><a href='http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.12/win32/pl/Firefox%20Setup%202.0.0.12.exe'>Mozilla Firefox</a></b> </td><td> <img src='/themes/plusv2/images/index_19.png' width='239' height='98'></td>
</tr>\n";
}
function render_news($subject, $news, $info) {
echo "<center><table width='630' cellpadding='5' cellspacing='5'>
<tr><td>
<table width='630' cellpadding='2' cellspacing='2'>
<tr><td class='capmain'>$subject</td></tr>
<tr><td class='capmain'>$news</td></tr>
<tr>
<td align='right' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr></table>
</td>
</tr>
</table></center>\n";
}
function render_article($subject, $article, $info) {
echo "<center><BR><table width='630' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='630' 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 class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr></table>
</td>
</tr>
</table></center>\n";
}
function opentable($title) {
echo "<center><table width='630' cellpadding='0' cellspacing='0'>
<tr><td>
<table width='630' cellpadding='0' cellspacing='0'>
<tr><td class='capmain'>$title</td></tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td></tr></table>
</td></tr></table></center>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr><td><table width='100%' cellpadding='0' cellspacing='0'>
<tr><td class='scapmain'>$title</td></tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td></tr></table>
</td></tr></table>\n";
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table width='980' cellpadding='0' cellspacing='0'>
<tr><td><table width='980' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</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>
</td></tr></table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='7'></td></tr></table>\n";
}
function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>\n";
}
function closesidel() {
echo "</td>
</tr>
</table>\n";
}
?>
|