can someone tell me how can I add a login box in my website header?

anyone do It already?
Code: Select all
<TMPL_IF my_login>
<b>Welcome <TMPL_VAR my_login> - <a href="<TMPL_VAR site_url>/?op=logout" class="logout"><TMPL_VAR lang_logout></a>
<TMPL_ELSE>
<form method="POST" action="<TMPL_VAR site_url>/" name="FL">
<input type="hidden" name="op" value="login">
<input type="hidden" name="redirect" value="<TMPL_VAR redirect>">
<table>
<tr>
<td><input class="username_input" type="text" name="login" value="<TMPL_VAR login>"></td>
<td> <input class="password_input" type="password" name="password"></td>
<td><input type="submit" value="Login" /></td>
</tr>
</table>
</form>
</b>
</TMPL_IF>
I mean to show like that:Welcome: username
Logout
I tried to add this code from my_account.html into main.html:Welcome: username
Premium-Account expire: 11 February 2011
Logout
Code: Select all
<TMPL_IF premium>
<TMPL_VAR lang_prem_valid_until>: <b><TMPL_VAR premium_expire></b><input type="button" class="btn2" value="<TMPL_VAR lang_extend_account>" onClick="document.location='?op=payments'">
</TMPL_IF>