Parašė Tomcis· 2009 Bir. 25 00:06:47
#2
//Vavu viva.
if(iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "
<table align='center' cellpadding='0' cellspacing='0'>
<tr style='padding-top: 5px;' height='65' valign='middle'>
<td style='padding-top: 2px;' align='left'>";
echo ($userdata['user_avatar'] ? "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' width='55' height='55' style='border: 1px solid #ED3A3D;'>" : "<img src='http://cdn.mydeco.com/media/img/defaults/no_avatar.gif' width='55' height='55' style='border: 1px solid #ED3A3D;'>");
echo "</td>
<td align='left' style='padding-left:7px;font-size:10px;'>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='hav'>Asmeninės žinutės</a>"; if ($msg_count) { echo " (".sprintf($msg_count).")"; }
echo "<br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='hav'>Asmeninė anketa</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='hav'>Į administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='hav'>Redaguoti anketą</a>
</td>
<td style='padding-left: 7px;' align='left' >
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."forumas.php?id=".$userdata['user_id']."' class='hav'>Mano forumas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='hav'>Narių sąrašas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."submit.php?stype=n' class='hav'>Pateikti naujieną</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='hav'><font color='red'>Atsijungti[x]</font></a>
</td>
</tr>
</table>
";
} else {
echo "<form><input type='text' name='user_name' class='laukas1' value='Nario vardas' onfocus=\"if(this.value=='Nario vardas'){this.value='';}\" onblur=\"if(this.value==''){this.value='Nario vardas';}\">
<input type='password' name='user_pass' class='laukas1' value='Slaptazodis' onfocus=\"if(this.value=='Slaptazodis'){this.value='';}\" onblur=\"if(this.value==''){this.value='Slaptazodis';}\" ><br>
<div align='right' style='padding-right: 50px;'><input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>";
}