|
|
|
|
@ -119,7 +119,7 @@ if ($numberLoop != 0) { |
|
|
|
|
|
|
|
|
|
$title = Security::remove_XSS($invitation['title'], STUDENT, true); |
|
|
|
|
$content = Security::remove_XSS($invitation['content'], STUDENT, true); |
|
|
|
|
$date = api_convert_and_format_date($invitation['send_date'], DATE_TIME_FORMAT_LONG); |
|
|
|
|
$date = Display::dateToStringAgoAndLongDate($invitation['send_date']); |
|
|
|
|
$invitationHtml .= '<div class="row">'; |
|
|
|
|
$invitationHtml .= '<div class="col-md-2">'; |
|
|
|
|
$invitationHtml .= '<a href="profile.php?u='.$sender_user_id.'">'; |
|
|
|
|
@ -137,7 +137,7 @@ if ($numberLoop != 0) { |
|
|
|
|
'is_my_friend' => 'friend', |
|
|
|
|
]), |
|
|
|
|
'check', |
|
|
|
|
'default', |
|
|
|
|
'primary', |
|
|
|
|
['id' => 'btn-accept-'.$sender_user_id] |
|
|
|
|
); |
|
|
|
|
$invitationHtml .= Display::toolbarButton( |
|
|
|
|
@ -147,7 +147,7 @@ if ($numberLoop != 0) { |
|
|
|
|
'denied_friend_id' => $sender_user_id, |
|
|
|
|
]), |
|
|
|
|
'times', |
|
|
|
|
'default', |
|
|
|
|
'danger', |
|
|
|
|
['id' => 'btn-deny-'.$sender_user_id] |
|
|
|
|
); |
|
|
|
|
$invitationHtml .= '</div>'; |
|
|
|
|
@ -157,7 +157,7 @@ if ($numberLoop != 0) { |
|
|
|
|
'.$user_info['complete_name'].'</a>: |
|
|
|
|
</h5>'; |
|
|
|
|
$invitationHtml .= '<div class="content-invitation">'.$content.'</div>'; |
|
|
|
|
$invitationHtml .= '<div class="date-invitation">'.get_lang('DateSend').' : '.$date.'</div>'; |
|
|
|
|
$invitationHtml .= '<div class="date-invitation">'.get_lang('Sent').' : '.$date.'</div>'; |
|
|
|
|
|
|
|
|
|
$invitationHtml .= '</div>'; |
|
|
|
|
$invitationHtml .= '</div></div>'; |
|
|
|
|
@ -173,7 +173,6 @@ if (count($list_get_invitation_sent) > 0) { |
|
|
|
|
$invitationSentHtml .= '<div id="id_'.$sender_user_id.'" class="well">'; |
|
|
|
|
$title = Security::remove_XSS($invitation['title'], STUDENT, true); |
|
|
|
|
$content = Security::remove_XSS($invitation['content'], STUDENT, true); |
|
|
|
|
$date = api_convert_and_format_date($invitation['send_date'], DATE_TIME_FORMAT_LONG); |
|
|
|
|
|
|
|
|
|
$invitationSentHtml .= '<div class="row">'; |
|
|
|
|
$invitationSentHtml .= '<div class="col-md-3">'; |
|
|
|
|
@ -184,7 +183,8 @@ if (count($list_get_invitation_sent) > 0) { |
|
|
|
|
$invitationSentHtml .= '<h4 class="title-profile"> |
|
|
|
|
<a class="profile_link" href="profile.php?u='.$sender_user_id.'">'.$user_info['complete_name'].'</a></h4>'; |
|
|
|
|
$invitationSentHtml .= '<div class="content-invitation">'.$title.' : '.$content.'</div>'; |
|
|
|
|
$invitationSentHtml .= '<div class="date-invitation">'.get_lang('DateSend').' : '.$date.'</div>'; |
|
|
|
|
$invitationSentHtml .= '<div class="date-invitation">'. |
|
|
|
|
get_lang('Sent').' : '.Display::dateToStringAgoAndLongDate($invitation['send_date']).'</div>'; |
|
|
|
|
$invitationSentHtml .= '</div>'; |
|
|
|
|
$invitationSentHtml .= '</div></div>'; |
|
|
|
|
} |
|
|
|
|
|