Feature #2785 added announces

skala
Juan Carlos Raña 14 years ago
parent af9775c5d9
commit 06e742cc43
  1. 6
      main/announcements/announcements.php
  2. BIN
      main/img/icons/16/announce.png
  3. BIN
      main/img/icons/32/announce.png
  4. BIN
      main/img/icons/32/delete_announce.png
  5. BIN
      main/img/icons/32/folder.png
  6. BIN
      main/img/icons/32/new_announce.png
  7. BIN
      main/img/icons/48/announce.png
  8. BIN
      main/img/icons/48/delete_announce.png
  9. BIN
      main/img/icons/48/folder.png
  10. BIN
      main/img/icons/48/new_announce.png
  11. 7
      main/img/icons/48/sum.txt

@ -845,7 +845,7 @@ $announcement_number = Database::num_rows($result);
$show_actions = false; $show_actions = false;
if ((api_is_allowed_to_edit(false,true) OR (api_get_course_setting('allow_user_edit_announcement') && !api_is_anonymous())) and (empty($_GET['origin']) or $_GET['origin'] !== 'learnpath')) { if ((api_is_allowed_to_edit(false,true) OR (api_get_course_setting('allow_user_edit_announcement') && !api_is_anonymous())) and (empty($_GET['origin']) or $_GET['origin'] !== 'learnpath')) {
echo '<div class="actions">'; echo '<div class="actions">';
echo "<a href='".api_get_self()."?".api_get_cidreq()."&action=add&origin=".(empty($_GET['origin'])?'':$_GET['origin'])."'>".Display::return_icon('announce_add.gif',get_lang('AddAnnouncement')).get_lang('AddAnnouncement')."</a>"; echo "<a href='".api_get_self()."?".api_get_cidreq()."&action=add&origin=".(empty($_GET['origin'])?'':$_GET['origin'])."'>".Display::return_icon('new_announce.png',get_lang('AddAnnouncement'),'','32')."</a>";
$show_actions = true; $show_actions = true;
} }
@ -853,7 +853,7 @@ $announcement_number = Database::num_rows($result);
if (api_get_group_id() == 0 ) { if (api_get_group_id() == 0 ) {
if (!$show_actions) if (!$show_actions)
echo '<div class="actions">'; echo '<div class="actions">';
echo "<a href=\"".api_get_self()."?".api_get_cidreq()."&action=delete_all\" onclick=\"javascript:if(!confirm('".get_lang("ConfirmYourChoice")."')) return false;\">".Display::return_icon('valvesdelete.gif',get_lang('AnnouncementDeleteAll')).get_lang('AnnouncementDeleteAll')."</a>\n"; } // if announcementNumber > 1 echo "<a href=\"".api_get_self()."?".api_get_cidreq()."&action=delete_all\" onclick=\"javascript:if(!confirm('".get_lang("ConfirmYourChoice")."')) return false;\">".Display::return_icon('delete_announce.png',get_lang('AnnouncementDeleteAll'),'','32')."</a>"; } // if announcementNumber > 1
} }
if ($show_actions) if ($show_actions)
echo '</div>'; echo '</div>';
@ -884,7 +884,7 @@ if (empty($_GET['origin']) OR $_GET['origin'] !== 'learnpath') {
//validation when belongs to a session //validation when belongs to a session
$session_img = api_get_session_image($myrow['session_id'], $_user['status']); $session_img = api_get_session_image($myrow['session_id'], $_user['status']);
echo Display::return_icon('lp_announcement.png', api_convert_and_format_date($myrow['end_date'], DATE_FORMAT_LONG), array('align' => 'absmiddle', 'Width' => '10', 'Height' => '10'))." <a style=\"text-decoration:none\" href=\"announcements.php?".api_get_cidreq()."#".$myrow['id']."\" ".$class.">" . api_trunc_str($title, $length) . "</a>" . $session_img; echo Display::return_icon('announce.png', api_convert_and_format_date($myrow['end_date'], DATE_FORMAT_LONG), array('align' => 'absmiddle', 'Width' => '10', 'Height' => '10'),'16')." <a style=\"text-decoration:none\" href=\"announcements.php?".api_get_cidreq()."#".$myrow['id']."\" ".$class.">" . api_trunc_str($title, $length) . "</a>" . $session_img;
echo "</td></tr>"; echo "</td></tr>";
} }
echo "</table>"; echo "</table>";

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

@ -19,6 +19,7 @@ settings nuvola
edit nuvola edit nuvola
draw nuvola draw nuvola
paint nuvola paint nuvola
folder nuvola
-- --
course nuvola course nuvola
wizard nuvola wizard nuvola
@ -31,4 +32,8 @@ assessment nuvola
link nuvola link nuvola
new_link modif nuvola new_link modif nuvola
view_tree nuvola view_tree nuvola
view_none nuvola view_none nuvola
--
announce nuvola
new_announce modif nuvola
delete_announce modif nuvola
Loading…
Cancel
Save