<?php
global $userdata, $aidlink, $locale, $db_prefix, $theme_width, $result;
echo "<table cellspacing='0' cellpadding='0' class='loginp' width='550'><tr>";
if (iMEMBER) {
echo "<td style='padding-left:50px;'>
<div style='float:left;'><a href='".BASEDIR."edit_profile.php' style='color:#FFF;'>Redaguoti profili</a>
<a href='".BASEDIR."messages.php' style='color:#FFF;'>Žinutės</span></a></div>
<div style='float:left; padding-left:10px;'>
<a href='".BASEDIR."members.php' style='color:#FFF;'>Narių sarašas</a>
<a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' style='color:#FFF;'>Mano profilis</a>
</div><div style='float:left; padding-left:10px;'>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo " <a href='".ADMIN."index.php".$aidlink."' style='color:Red;'>Administracija</a>";
}
echo" <a href='".BASEDIR."setuser.php?logout=yes' target='' style='color:#FFF;'>Atsijungti</a></td></div><div style='clear:both;'></div>";
} else {
echo"
<div class='pasisveikinimas'> Sveikas atvykęs, <b>svečias</b>.</div>
<td align='center'>
<tr>
<td style='padding-left:90px;'><form name='loginform' method='post' action='".FUSION_SELF."'>
<div class='id'></div><input type='text' name='user_name' value='vardas' onfocus=\"if(this.value=='vardas'){this.value='';}\" onblur=\"if(this.value==''){this.value='vardas';}\" class='login'></td>
<td style='padding-right:10px;'>
<div class='psw'></div><input type='password' name='user_pass' value='slaptažodis' onfocus=\"if(this.value=='slaptažodis'){this.value='';}\" onblur=\"if(this.value==''){this.value='slaptažodis';}\" class='login2'></td>
<td style='padding-right:20px;'><input type='submit' name='login' value='' class='ok'></td>
<td class='login-text' colspan='2'>
<div class='reg'>
Dar ne narys? <a href=".BASEDIR."register.php'>Užsiregistuok!</a> <br />
Pamiršai slaptažodi?<a href=".BASEDIR."lostpassword.php ' >Prašyk naujo!</a></td></tr>
</div>
</form>
</td>
</tr>\n";
}
echo "</tr></table>";
?>