|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
|
|
|
|
|
|
// name of the language file that needs to be included |
|
|
|
|
$language_file = array ('courses', 'index'); |
|
|
|
|
$language_file = array ('admin','courses', 'index'); |
|
|
|
|
|
|
|
|
|
// including necessary files |
|
|
|
|
require_once 'main/inc/global.inc.php'; |
|
|
|
@ -11,6 +11,12 @@ require_once api_get_path(LIBRARY_PATH).'system_announcements.lib.php'; |
|
|
|
|
$tool_name = get_lang('SystemAnnouncements'); |
|
|
|
|
Display::display_header($tool_name); |
|
|
|
|
|
|
|
|
|
if (api_is_platform_admin()) { |
|
|
|
|
echo '<div class="action">'; |
|
|
|
|
echo '<a href="'.api_get_path(WEB_PATH).'main/admin/system_announcements.php">'.Display::return_icon('edit.gif', get_lang('EditSystemAnnouncement')).get_lang('EditSystemAnnouncement').'</a>'; |
|
|
|
|
echo '</div><br />'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$start = isset($_GET['start']) ? (int)$_GET['start'] : $start = 0; |
|
|
|
|
|
|
|
|
|
if (isset($_user['user_id'])) { |
|
|
|
|