No wiec mam taki problem... Zrobilem panel logowania przy logu, lecz nie wyswietla mi sie logo...
kawalek mojego theme.php
/* Theme Settings */
$body_text = "#000000";
$body_bg = "#D0D6D9";
$theme_width = "100%";
$theme_width_l = "165";
$theme_width_r = "165";
function render_header($header_content) {
include THEME."zeneca_nav.php";
global $theme_width,$settings,$userdata,$aidlink,$loginerror;
"<td width='560' height='170' align='left' style='background-color: #EAECEE; background-image:url(".THEME."images/main_logo.gif);background-repeat: no-repeat; background-position: left; padding: 7px;'></td>";
echo "<td width='250' height='220' align='center' style='background-color: #EAECEA'>";
echo "<div align='right'>";
if (iMEMBER) {
opensidel();
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Edytuj Profil</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Twoje Wiadomo¶ci</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Lista Userów</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".ADMIN."index.php".$aidlink."' class='side'> Administracja</a><br>\n";
}{echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Wyloguj</a>\n";
if ($msg_count) echo "<br><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='textbox' value='twoj nick' onBlur=\"if(this.value=='') this.value='nick';\" onFocus=\"if(this.value=='nick') this.value='';\" style='width:100px'><br><br>
<input type='password' name='user_pass' class='textbox' value='haselko' onBlur=\"if(this.value=='') this.value='hasło';\" onFocus=\"if(this.value=='hasło') this.value='';\" style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='Zapamiętaj mnie' style='vertical-align:middle;'>
<input type='submit' name='login' value='Loguj' class='button'>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='side'>Rejestracja</a><br>\n";
}
echo "<a href='".BASEDIR."lostpassword.php' class='side'>Zapomniane hasło</a>
</div>\n";
}
closesidel();
echo "</div>";
echo "</td>";
echo "</tr></td></tr></table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width'>\n<tr>
<td class='pasek' width='100%' align='center' style='height: 32px;'>
<div id='navigation'>
<a onmouseover=\"MM_swapImage('Image1','','".THEME."images/nav/nav_home_on.gif',1)\" onmouseout='MM_swapImgRestore()' href='".BASEDIR."index.php'><img alt='' src='".THEME."images/nav/nav_home.gif' name='Image1'></a>
<a onmouseover=\"MM_swapImage('Image2','','".THEME."images/nav/nav_downloads_on.gif',1)\" onmouseout='MM_swapImgRestore()' href='".BASEDIR."downloads.php'><img alt='' src='".THEME."images/nav/nav_downloads.gif' name='Image2'></a>
<a onmouseover=\"MM_swapImage('Image3','','".THEME."images/nav/nav_articles_on.gif',1)\" onmouseout='MM_swapImgRestore()' href='".BASEDIR."articles.php'><img alt='' src='".THEME."images/nav/nav_articles.gif' name='Image3'></a>
<a onmouseover=\"MM_swapImage('Image4','','".THEME."images/nav/nav_community_on.gif',1)\" onmouseout='MM_swapImgRestore()' href='".BASEDIR."forum/index.php'><img alt='' src='".THEME."images/nav/nav_community.gif' name='Image4'></a>
<a onmouseover=\"MM_swapImage('Image5','','".THEME."images/nav/nav_search_on.gif',1)\" onmouseout='MM_swapImgRestore()' href='".BASEDIR."search.php'><img alt='' src='".THEME."images/nav/nav_search.gif' name='Image5'></a>
</div></div></td></tr></table>
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'><tr>
<td>
</td></tr></table>
</td>
</tr>
</table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width'>\n<tr>\n";
}
function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='130' class='border'>
<tr>
<td class='side-body'></td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closesidel() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
Kto mi pomoze? :P |