
<div id="header_bar">
<ul class="pbbList_inline">
 {if !{$_CONF['member_permission']}}
<li style="margin: 0 3px; display:inline-block; list-style:none; float: right;">
<a href="index.php?page=register&amp;index=1" title="{$lang['register']}" id="register_link">{$lang['register']}</a>
</li>
<li style="margin: 0 3px; display:inline-block; list-style:none; float: right;">
<a href="index.php?page=login&amp;sign=1" title="{$lang['Login_mem']}" id="sign_link">{$lang['Login_mem']}</a>
</li>
{else}
<li style="margin: 0 3px; display:inline-block; list-style:none; float: right;">
<a href="index.php?page=usercp&amp;index=1" title="{$lang['usercp']}" id="usercp_link" >{$lang['usercp']}</a>
</li style="margin: 0 3px; display:inline-block; list-style:none; float: right;">
<li style="margin: 0 3px; display:inline-block; list-style:none; float: right;">
<a href="javascript:logout('index.php?page=logout&amp;index=1')" id="logout_link" title="{$lang['logout']}">{$lang['logout']}</a>
</li>
<li class="alerts-switch" style="margin: 0 3px; display:inline-block; list-style:none; float: right;">
{if {$_CONF['member_permission']}}
{if {$all_alerts_num} > 0}
<a href="javascript:switchMenuNone('alerts')" class="alerts">{$lang['alerts']} : <strong>{$all_alerts_num}</strong>
<img border="0" cellspacing="1" src="{$image_path}/menu_open.gif" /></a>
{template}alerts{/template}
{/if}
{/if}
<!-- action_find_addons_2 -->
</li>
<li class="UserPhotoli" style="margin: 0 3px; display:inline-block; list-style:none; float: left;">
{if {$_CONF['info_row']['allow_avatar']}}
{if {$_CONF['rows']['member_row']['avater_path']} != ''}
<a class="UserPhotoLink" href="index.php?page=profile&amp;show=1&amp;id={$_CONF['rows']['member_row']['id']}">
<img src="{$_CONF['rows']['member_row']['avater_path']}" alt="Photo" class="UserPhoto UserPhoto_mini">
</a>
{else}
<a class="UserPhotoLink" href="index.php?page=profile&amp;show=1&amp;id={$_CONF['rows']['member_row']['id']}">
<img src="{$image_path}/
{$_CONF['info_row']['default_avatar']}" class="UserPhoto UserPhoto_mini">
</a>
{/if}
{/if}
</li>

<li style="margin: 0 3px; display:inline-block; list-style:none; float: left;">
<span class="welcomelink">{$lang['Hello_your']} </span>
<span class="username_link">
<a href="index.php?page=profile&amp;show=1&amp;id={$_CONF['rows']['member_row']['id']}" title="{$lang['Last_visit']}
({$lastvisit})">
({$username_style})</a>
</span>
	{if {$_CONF['info_row']['pm_feature']}}
	{if {$_CONF['rows']['group_info']['use_pm']} == 1}
<span class="memberlink">
	<a href="index.php?page=pm_list&amp;list=1&amp;folder=inbox">{$lang['Private_Messages']}</a>:
({$pm_num})
	</span>
	{/if}
	{/if}
{if {$_CONF['rows']['member_row']['usergroup']} == 5}
 <span class="memberlink">
	<a href="index.php?page=forget&amp;active_member=1&amp;send_active_code=1">{$lang['send_active_code']}</a>
	</span>
{/if}
</li>

{/if}

 {if !{$_CONF['member_permission']}}
 <li style="margin: 0 3px; display:inline-block; list-style:none; float: left;">
<form method="post" action="index.php?page=login&amp;login=1">
<input type="text" class="login_input" name="username" value="{$lang['username']}" onfocus="if (this.value == '{$lang['username']}') this.value = '';" size="12"  />
	<input type="password" class="login_input" name="password" value="pass" onfocus="if (this.value == 'pass') this.value = '';" size="12"/>
	<input type="submit" class="submit_login" value="{$lang['login']}" />
	<input type="checkbox" name="temporary" value="on" id="fp1" /> {$lang['Temp_login']}
	</form>
</li>
{/if}
</ul>
</div>