[login]
<script language="javascript">
var set_login = 0;
var set_pass  = 0;
</script>
<form name="login" method="post" action="" id="login">
<input type="hidden" name="referer" value="{request_uri}" />
<input type="hidden" name="action" value="dologin" />

<input onfocus="if (!set_login){set_login=1;this.value='';}" value="{l_name}" type="text" name="username" maxlength="60" size="25" /> 
<input onfocus="if(!set_pass){set_pass=1;this.value='';}" value="{l_password}"  type="password" name="password" maxlength="20" size="25" /> 
<input type="submit" value="{l_login}" src="{tpl_url}/images/2z_23.gif" border:0" name="Login" /><br>

<a href="{reg_link}">{l_registration}</a><br />
<a href="{lost_link}">{l_lostpassword}</a>

<br />{result}

<div style="display:none;">Скачать бесплатно <a href="http://topshablons.ru/2z-project"> шаблоны 2z-project</a></div> <div style="display:none;"><a href="http://wlna.info" title="Свежие новости">Свежие новости</a>.</div><div style="display:none;"> <a href="http://opolicii.ru/" title="Новости">Новости</a> </div>

</form>
[/login]
[is-logged]
<div class="mw_login">{l_hello}, {name}<br /> 
[if-have-perm]&nbsp;<a href="{zz_url}">{l_adminpanel}</a> &nbsp;<a href="{addnews_link}">{l_addnews}</a><br />[/if-have-perm]&nbsp;<a href="{profile_link}">{l_myprofile}</a> &nbsp;<a href="/?action=logout">{l_logout}</a></div>
[/is-logged]