예제 #1
0
            $email_ann = '1';
            // setting the variables for the form elements: the title of the email
            //$title_to_modify = sprintf(get_lang('RemindInactiveLearnersMailSubject'), api_get_setting('siteName'),' > ',$_course['name']);
            $title_to_modify = sprintf(get_lang('RemindInactiveLearnersMailSubject'), api_get_setting('siteName'));
            // setting the variables for the form elements: the message of the email
            //$content_to_modify = sprintf(get_lang('RemindInactiveLearnersMailContent'),api_get_setting('siteName'),' > ',$_course['name'],$since);
            $content_to_modify = sprintf(get_lang('RemindInactiveLearnersMailContent'), api_get_setting('siteName'), $since);
            // when we want to remind the users who have never been active then we have a different subject and content for the announcement
            if ($_GET['since'] == 'never') {
                $title_to_modify = sprintf(get_lang('RemindInactiveLearnersMailSubject'), api_get_setting('siteName'));
                $content_to_modify = get_lang('YourAccountIsActiveYouCanLoginAndCheckYourCourses');
            }
        } else {
            //echo '<span id="recipient_overview">' . get_lang('Everybody') . '</span>';
        }
        AnnouncementManager::show_to_form($to);
        echo '		</div>
					</div>';
        if (!isset($announcement_to_modify)) {
            $announcement_to_modify = '';
        }
        $email_ann == '1' ? $checked = 'checked' : ($checked = '');
        echo '	<div class="control-group">
                    <div class="controls">
                        <label class="checkbox" for="email_ann">
                            <input id="email_ann" class="checkbox" type="checkbox" value="1" name="email_ann" checked> ' . get_lang('EmailOption') . '</label>
                    </div>
                </div>';
    } else {
        if (!isset($announcement_to_modify)) {
            $announcement_to_modify = "";