From fca794bf2fbfdb85b24f4a2ed90b3354ffed6d29 Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Mon, 29 Oct 2007 13:00:26 +0100 Subject: [PATCH] [svn r13582] now we are able to remind all users inactive since x days --- main/announcements/announcements.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/main/announcements/announcements.php b/main/announcements/announcements.php index fb6ed0940e..f49a8eb4ca 100644 --- a/main/announcements/announcements.php +++ b/main/announcements/announcements.php @@ -1,4 +1,4 @@ -document.onload = "document.getElementById(\'recipient_list\').style.display=\'block\'";'; } + 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) + { + $user = 'USER:'.$user; + } + $email_ann = '1'; + echo ' '; + } else{ echo get_lang("Everybody"); }