File size: 1.81Kb
<?php
$account = DB::GET_STRING("SELECT `ID`,`SEX` FROM `USERS` WHERE `ID` = '".$list['OBJECT_ID']."' LIMIT 1");
ECHO "<table style='width: 100%;'><tr>";
ECHO "<td class='notif-avatar'>";
ECHO "<a href='/id".$account['ID']."' style='position: relative;'>";
USER::AVATAR($account['ID'], 50);
ECHO "<span class='icons-notif' style='background-color: #2196F3;'>".ICONS('comment', 13, 'fa-fw')."</span>";
ECHO "</a>";
IF ($list['TIME'] + 3600 > TIME()){
ECHO "<br /><span class='count-notif'>".LG('новое')."</span>";
}
ECHO "</td>";
ECHO "<td class='notif-info'>";
ECHO USER::LOGIN($account['ID'], 0, 1);
IF ($account['SEX'] == 2){
ECHO " ".LG('ответила на Ваш комментарий')."";
}ELSE{
ECHO " ".LG('ответил на Ваш комментарий')."";
}
ECHO "<br /><span class='time'>".STIME($list['TIME'])."</span></br /></br />";
$obj = DB::GET_STRING("SELECT `ID`,`MESSAGE`,`VIDEO_ID` FROM `VIDEOS_COMMENTS` WHERE `ID` = '".$list['OBJECT_ID_LIST']."' LIMIT 1");
$videos = DB::GET_STRING("SELECT `ID`,`ID_DIR` FROM `VIDEOS` WHERE `ID` = '".$obj['VIDEO_ID']."' LIMIT 1");
IF (!ISSET($videos['ID']) || !ISSET($obj['ID'])){
ECHO "<font color='red'>".LG('Объект был удален')."</font>";
}ELSE{
ECHO "<a href='/modules/?path=videos§ion=show&video_id=".$videos['ID']."'>";
IF (IS_FILE(ROOT.'/files/upload/videos/screen/'.$videos['ID'].'.jpg') && CONFIG('VIDEO_SCREEN') == 1){
ECHO "<img src='/files/upload/videos/screen/240x240/".$videos['ID'].".jpg' style='max-width: 30px;'><br />";
}ELSE{
ECHO "<img src='/files/upload/videos/screen/no_video.jpg' style='max-width: 30px;'><br />";
}
ECHO '"'.CROP_TEXT(TEXT_ABSOLUTE($obj['MESSAGE']), 0, 40).'"';
ECHO "</a>";
}
ECHO "</td>";
ECHO "</tr></table>";
?>