Szablon header to:
Kod:
<a name="top"></a>
<div style="width:$stylevar[outertablewidth]px;margin: 0 auto;">
<div id="header">
<div id="headerleftbg">
<div id="headerrightbg">
<div id="logo"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="images/header/logo.gif" alt="" width="223" height="69" /></a></div>
<br style="clear:both"/>
<div id="nav">
<ul>
<li><a href="index.php"><span>Strona Główna</span></a></li>
<if condition="$show['member']">
<li><a href="usercp.php$session[sessionurl_q]"><span>Profil</span></a></li>
</if>
<if condition="$show['registerbutton']">
<li><a href="register.php$session[sessionurl_q]"><span>Rejestracja</span></a></li>
</if>
<li><a href="calendar.php"><span>Kalendarz</span></a></li>
<if condition="$show['member']">
<li><a href="misc.php?do=topposters"><span>Posterzy</span></a></li>
</if>
<li><a href="memberlist.php"><span>Użytkownicy</span></a></li>
<li><a href="search.php"><span>Szukaj</span></a></li>
<li><a href="faq.php"><span>FAQ</span></a></li>
</ul>
</div>
<div id="search">
<form action="search.php?do=process" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input name="query" type="text" class="search_field" value="Szukaj..." onfocus="this.value=''"/><input type="image" src="images/header/go_button.gif" class="search_button"/>
</form>
</div>
<br style="clear:both" />
<div class="welcome">
<if condition="$show['member']">
<p>Witaj, <strong>$bbuserinfo[username]</strong>!</p>
<else />
<p>Witaj, <strong>Gościu</strong>. <a href="login.php">Zaloguj się!</a></p>
</if>
</div>
</div>
</div>
</div>
</div>
$spacer_open
$_phpinclude_output
<br />
<div class="curve" id="ads2">
<div class="curveleft">
</div>
</div>
<div class="curve" id="login">
<div class="curveleft">
<div class="curveright">
<div class="login">
<if condition="$show['member']">
<div id="loggedinpanel">
<h4>Panel Usera</h4>
<phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase><br/>
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase><br />
<if condition="$show['notifications']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else /><if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
<a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" class="logoutbtn"><img src="images/buttons/logout.gif" alt="Logout" /></a>
</div>
<else />
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<p><label>Login</label>
<input type="text" name="vb_login_username" id="navbar_username" size="10" accesskey="u" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></p>
<p style="margin-bottom:7px;"><label>Hasło</label>
<input type="password" name="vb_login_password" id="navbar_password" />
</p>
<span class="checkbox">
<input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" accesskey="c" /> Zapamiętaj</span>
<input type="submit" value="$vbphrase[log_in]" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" class="loginbutton" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
</if>
</div>
</div>
</div>
</div>
<br style="clear:both" />
<!-- /logo -->
<!-- content table -->
$ad_location[ad_header_end]