File size: 1.32Kb
<?
/**
* Отказ в друзья
*/
if ($avtor['id']) {
?>
<div class="notification notification_withActions Row Row_style_withBorder">
<a class="notification__fillLink" href="/info.php?id=<?= $avtor['id']?>" aria-label="Перейти к уведомлению"></a>
<div class="notification__left">
<a class="notification__avatar" href="/info.php?id=<?= $avtor['id']?>">
<div class="notification__avatarPhoto"> <?= avatar($avtor['id'])?> </div>
<div class="notification__avatarIcon Icon Icon_notify_mini_hhh"></div>
</a>
</div>
<div class="notification__center">
<div class="notification__row notification__row_name_header">
<b><a href="/info.php?id=<?= $avtor['id']?>" class="mem_link" mention=""><?= $avtor['nick']?></a></b>
<?= __('отклонил') . ($avtor['pol'] == 1 ? "" : "а") . __(' Вашу заявку в друзья')?>
</div>
<div class="notification__row notification__row_name_footer"><span class="<?= ($post['read'] == 0 ? 'off' : 'time')?>"><?= vremja($post['time'])?></span> </div>
</div>
<div class="notification__body">
<div class="notification__actions">
<a class="notification__actionsTrigger" href="?del=<?= $post['id']?>&page=<?= $page?>"></a>
</div>
</div>
</div>
<?
}
else {
query("DELETE FROM `notification` WHERE `id_user` = '$user[id]' AND `id` = '$post[id]' LIMIT 1");
}
?>