echo "
<div class='login-body'>";
if (iMEMBER) {
$result = dbquery("SELECT message_id FROM ".$db_prefix."messages WHERE message_to = '".$userdata['user_id']."' AND message_read = '0' AND message_folder = '0' LIMIT 1");
echo "<div style='padding:5px; padding-top:15px;'>
<div class='center'><a href='".BASEDIR."edit_profile.php'>Redaguoti profili</a>
<a href='".BASEDIR."messages.php' >Žinutės [naujų: <b><span style='color:#fff'>".dbrows($result)."</span></b>]</a><br />
<a href='".BASEDIR."setuser.php?logout=yes'>Atsijungti</a> ";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<a href='".ADMIN."index.php".$aidlink."' ><b>Administracija</b></a>";
echo "<div class='login-body'>";
if (iMEMBER) {
$result = dbquery("SELECT message_id FROM ".$db_prefix."messages WHERE message_to = '".$userdata['user_id']."' AND message_read = '0' AND message_folder = '0' LIMIT 1");
echo "<div style='padding:5px; padding-top:15px;'>
<div class='center'><table><tr><td><a href='".BASEDIR."edit_profile.php'>Redaguoti profili</a></td>
<td><a href='".BASEDIR."messages.php' >Žinutės [naujų: <b><span style='color:#fff'>".dbrows($result)."</span></b>]</a><br /></td></tr><tr>
<td><a href='".BASEDIR."setuser.php?logout=yes'>Atsijungti</a></td> ";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<td><a href='".ADMIN."index.php".$aidlink."' ><b>Administracija</b></a></td>";
}
echo "</tr></table>";
echo "<div class='login-body'>";
if (iMEMBER) {
$result = dbquery("SELECT message_id FROM ".$db_prefix."messages WHERE message_to = '".$userdata['user_id']."' AND message_read = '0' AND message_folder = '0' LIMIT 1");
echo "<div style='padding:5px; padding-top:15px;'>
<div class='center'><table><tr><td align='center' width='50%'><a href='".BASEDIR."edit_profile.php'>Redaguoti profili</a></td>
<td align='center' width='50%'><a href='".BASEDIR."messages.php' >Žinutės [naujų: <b><span style='color:#fff'>".dbrows($result)."</span></b>]</a><br /></td></tr><tr>
<td align='center' width='50%'><a href='".BASEDIR."setuser.php?logout=yes'>Atsijungti</a></td> ";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<td align='center' width='50%'><a href='".ADMIN."index.php".$aidlink."' ><b>Administracija</b></a></td>";
}
echo "</tr></table>";