ken15
Эксперт
Дата регистрации:
11.05.2012 19:59:33
Сообщений: 89
<?php
$avatar = getAvatar($_SESSION['login']);
if ($avatar == "" {
$avatar = "default.jpeg";
}
$messages = getAllMessages(getIDOnLogin($_SESSION["login"]));
if ($from['avatar'] == "" {
$from['avatar'] = "default.jpeg";
}
for ($i = 0; $i < count($messages); $i++) {
if ($message == 0)
echo "Папка пуста";
else echo "<ul style = 'background: url(images/v.jpeg) repeat-y center top; list-style-image: url(arrow.gif);' id='v-menu2' class='v-menu'>";
$from = getUserOnID($messages[$i]["from"]);
echo "<table style = 'margin: 0;'><tr><td><p style = 'lign: right;' ><img src = 'avatars/".$from["avatar"]."' alt = 'Аватар' width = '70' /></td><td>От <b>".$from["login"]."</b></td><td><img style = 'margin: 0;' src = 'avatars/$avatar' alt = 'Аватар' width = '70' /></td></tr></table></p>";
echo "<p>".$messages[$i]["message"]."</p>";
echo "<p style = 'float: right; color: green;'>".date("d-m-y H:i:s",$messages[$i]["date"])."</p>";
echo "<a id='submit' href = 'smessage.php?to=".$from["id"]."' title = 'Ответить'>Ответить</a>";
echo "</ul>";
}
?>