";
- echo get_lang("SentTo").": ";
- echo " | ";
+ //this variable defines if the course administrator can send a message to a specific user / group or not
+ if(empty($_SESSION['toolgroup']))
+ {
+ echo '
+ '.
+ Display::return_icon('group.gif', get_lang('ModifyRecipientList'), array ('align' => 'absmiddle')).' '.get_lang('SentTo').'
+
+ ';
if(isset($_GET['id']) && is_array($to)){
echo ' ';
- } elseif(isset($_GET['remind_inactive'])) {
+ }
+ elseif(isset($_GET['remind_inactive']))
+ {
$email_ann = '1';
$_SESSION['select_groupusers']="show";
$content_to_modify = sprintf(get_lang('RemindInactiveLearnersMailContent'),api_get_setting('siteName'), 7);
$title_to_modify = sprintf(get_lang('RemindInactiveLearnersMailSubject'),api_get_setting('siteName'));
- } elseif(isset($_GET['remindallinactives']) && $_GET['remindallinactives']=='true') {
+ }
+ elseif(isset($_GET['remindallinactives']) && $_GET['remindallinactives']=='true')
+ {
$since = isset($_GET['since']) ? intval($_GET['since']) : 6;
$to = Tracking :: get_inactives_students_in_course($_course['id'],$since, $_SESSION['id_session']);
- foreach($to as &$user) {
+ foreach($to as &$user)
+ {
$user = 'USER:'.$user;
}
$_SESSION['select_groupusers']="show";
$email_ann = '1';
$content_to_modify = sprintf(get_lang('RemindInactiveLearnersMailContent'),api_get_setting('siteName'),$since);
$title_to_modify = sprintf(get_lang('RemindInactiveLearnersMailSubject'),api_get_setting('siteName'));
+
/*
//echo ' ';
*/
- } else {
+ }
+ else{
echo get_lang("Everybody");
}
- echo " | ";
- echo Display::return_icon('group.gif', get_lang('ModifyRecipientList'), array ('align' => 'absmiddle')).''.get_lang('ModifyRecipientList').'';
- echo " |