|
|
|
@ -780,10 +780,11 @@ if ($display_form) { |
|
|
|
|
($email_ann=='1' || !empty($surveyid))?$checked='checked':$checked=''; |
|
|
|
|
echo '<div class="row"> |
|
|
|
|
<div class="label"> |
|
|
|
|
<input class="checkbox" type="checkbox" value="1" name="email_ann" '.$checked.'> |
|
|
|
|
</div> |
|
|
|
|
<div class="formw">'. |
|
|
|
|
get_lang('EmailOption').': '.get_lang('MyGroup').' <a href="#" onclick="if(document.getElementById(\'recipient_list\').style.display==\'none\') document.getElementById(\'recipient_list\').style.display=\'block\'; else document.getElementById(\'recipient_list\').style.display=\'none\';">'.get_lang('ModifyRecipientList').'</a>'; |
|
|
|
|
<div class="formw"> |
|
|
|
|
<input class="checkbox" type="checkbox" value="1" name="email_ann" '.$checked.'> |
|
|
|
|
'.get_lang('EmailOption').': '.get_lang('MyGroup').' |
|
|
|
|
<a href="#" onclick="if(document.getElementById(\'recipient_list\').style.display==\'none\') document.getElementById(\'recipient_list\').style.display=\'block\'; else document.getElementById(\'recipient_list\').style.display=\'none\';">'.get_lang('ModifyRecipientList').'</a>'; |
|
|
|
|
AnnouncementManager::show_to_form_group($_SESSION['toolgroup']); |
|
|
|
|
echo '</div></div>'; |
|
|
|
|
} |
|
|
|
@ -833,9 +834,10 @@ if ($display_form) { |
|
|
|
|
|
|
|
|
|
echo ' <div class="row"> |
|
|
|
|
<div class="label"> |
|
|
|
|
<a href="javascript://" onclick="return plus_attachment();"><span id="plus"><img style="vertical-align:middle;" src="../img/div_show.gif" alt="" /> '.get_lang('AddAnAttachment').'</span></a> |
|
|
|
|
</div> |
|
|
|
|
<div class="formw"> |
|
|
|
|
<a href="javascript://" onclick="return plus_attachment();"><span id="plus"><img style="vertical-align:middle;" src="../img/div_show.gif" alt="" /> '.get_lang('AddAnAttachment').'</span></a> |
|
|
|
|
<br /> |
|
|
|
|
<table id="options" style="display: none;"> |
|
|
|
|
<tr> |
|
|
|
|
<td colspan="2"> |
|
|
|
@ -928,7 +930,7 @@ if ($display_announcement_list) { |
|
|
|
|
ORDER BY display_order DESC"; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} elseif (api_get_group_id() !=0 ) { |
|
|
|
|
} elseif (api_get_group_id() != 0 ) { |
|
|
|
|
// A.2. you are a course admin with a GROUP filter |
|
|
|
|
// => see only the messages of this specific group |
|
|
|
|
$sql="SELECT announcement.*, ip.visibility, ip.to_group_id, ip.insert_user_id, ip.insert_date |
|
|
|
@ -976,7 +978,6 @@ if ($display_announcement_list) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
//STUDENT |
|
|
|
|
|
|
|
|
|
if (is_array($group_memberships) && count($group_memberships)>0) { |
|
|
|
|