Feature #2785 platform settings

skala
Juan Carlos Raña 14 years ago
parent 025fdd0aa9
commit a0e8e0f387
  1. 24
      main/admin/calendar.lib.php
  2. 42
      main/admin/settings.php
  3. BIN
      main/img/icons/22/agenda.png
  4. BIN
      main/img/icons/32/agenda.png
  5. BIN
      main/img/icons/32/html_editor.png
  6. BIN
      main/img/icons/32/languages.png
  7. BIN
      main/img/icons/32/ldap.png
  8. BIN
      main/img/icons/32/platform.png
  9. BIN
      main/img/icons/32/platform_event.png
  10. BIN
      main/img/icons/32/plugins.png
  11. BIN
      main/img/icons/32/security.png
  12. BIN
      main/img/icons/32/stylesheets.png
  13. BIN
      main/img/icons/32/template.png
  14. BIN
      main/img/icons/32/timezone.png
  15. BIN
      main/img/icons/32/tools.png
  16. BIN
      main/img/icons/32/tuning.png
  17. 15
      main/img/icons/48/_sum.txt
  18. BIN
      main/img/icons/48/agenda.png
  19. BIN
      main/img/icons/48/html_editor.png
  20. BIN
      main/img/icons/48/languages.png
  21. BIN
      main/img/icons/48/ldap.png
  22. BIN
      main/img/icons/48/platform.png
  23. BIN
      main/img/icons/48/platform_event.png
  24. BIN
      main/img/icons/48/plugins.png
  25. BIN
      main/img/icons/48/security.png
  26. BIN
      main/img/icons/48/stylesheets.png
  27. BIN
      main/img/icons/48/template.png
  28. BIN
      main/img/icons/48/timezone.png
  29. BIN
      main/img/icons/48/tools.png
  30. BIN
      main/img/icons/48/tuning.png
  31. BIN
      main/img/settings bis.png
  32. BIN
      main/img/settings.png

@ -477,20 +477,26 @@ function store_new_agenda_item() {
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University
*/ */
function display_courseadmin_links() { function display_courseadmin_links() {
echo "<a href='".api_get_self()."?".api_get_cidreq()."&action=add&amp;origin=".Security::remove_XSS($_GET['origin'])."'>".Display::return_icon('calendar_personal_add.gif', get_lang('AgendaAdd'))." ".get_lang('AgendaAdd')."</a>"; echo "<a href='".api_get_self()."?".api_get_cidreq()."&action=add&amp;origin=".Security::remove_XSS($_GET['origin'])."'>".Display::return_icon('platform_event.png', get_lang('AgendaAdd'),'','32')."</a>";
} }
function display_student_links() { function display_student_links() {
if ($_SESSION['view'] <> 'month') {
echo '<a href="'.api_get_self().'?action=view&amp;view=month">'.
Display::return_icon('month_empty.png',get_lang('MonthView'),'','32').'</a>';
if ($_SESSION['sort'] == 'DESC') { if ($_SESSION['sort'] == 'DESC') {
echo "<a href='".api_get_self()."?sort=asc&amp;origin=".Security::remove_XSS($_GET['origin'])."'>".Display::return_icon('calendar_up.gif',get_lang('AgendaSortChronologicallyUp')).' '.get_lang("AgendaSortChronologicallyUp")."</a>"; echo '<a href="'.api_get_self().'?sort=asc&amp;origin='.Security::remove_XSS($_GET['origin']).'">'.Display::return_icon('calendar_normal.png',get_lang('AgendaSortChronologicallyUp'),'','32').'</a>';
} else {
echo "<a href='".api_get_self()."?sort=desc&amp;origin=".Security::remove_XSS($_GET['origin'])."'>".Display::return_icon('calendar_down.gif',get_lang('AgendaSortChronologicallyDown')).' '.get_lang("AgendaSortChronologicallyDown")."</a>";
} }
if ($_SESSION['view'] <> 'month') { else {
echo "<a href=\"".api_get_self()."?action=view&amp;view=month\"><img src=\"../img/calendar_month.gif\" border=\"0\" alt=\"".get_lang('MonthView')."\" /> ".get_lang('MonthView')."</a>"; echo '<a href="'.api_get_self().'?sort=desc&amp;origin='.Security::remove_XSS($_GET['origin']).'">'.Display::return_icon('calendar_inverse.png',get_lang('AgendaSortChronologicallyDown'),'','32').'</a>';
} else { }
echo "<a href=\"".api_get_self()."?action=view&amp;view=list\"><img src=\"../img/calendar_select.gif\" border=\"0\" alt=\"".get_lang('ListView')."\" /> ".get_lang('ListView')."</a>"; }
else {
echo '<a href="'.api_get_self().'?action=view&amp;view=list">'.Display::return_icon('appointments.png', get_lang('ListView'),'','32').'</a>';
} }
} }
/** /**
@ -770,7 +776,7 @@ function display_agenda_items()
// the icons. If the message is sent to one or more specific users/groups // the icons. If the message is sent to one or more specific users/groups
// we add the groups icon // we add the groups icon
// 2do: if it is sent to groups we display the group icon, if it is sent to a user we show the user icon // 2do: if it is sent to groups we display the group icon, if it is sent to a user we show the user icon
Display::display_icon('calendar_global.png', get_lang('Agenda')); Display::display_icon('agenda.png', get_lang('Agenda'),'','22');
/*if ($myrow['to_group_id']!=='0') { /*if ($myrow['to_group_id']!=='0') {
echo Display::return_icon('group.gif', get_lang('AllUsersOfThePlatform')); echo Display::return_icon('group.gif', get_lang('AllUsersOfThePlatform'));
}*/ }*/

@ -540,22 +540,22 @@ if (!empty($_GET['action']) && $_GET['action'] == 'stored') {
} }
// The action images. // The action images.
$action_images['platform'] = 'logo.gif'; $action_images['platform'] = 'platform.png';
$action_images['course'] = 'course.gif'; $action_images['course'] = 'course.png';
$action_images['tools'] = 'reference.gif'; $action_images['tools'] = 'tools.png';
$action_images['user'] = 'students.gif'; $action_images['user'] = 'user.png';
$action_images['gradebook'] = 'gradebook_eval_not_empty.gif'; $action_images['gradebook'] = 'gradebook.png';
$action_images['ldap'] = 'loginmanager.gif'; $action_images['ldap'] = 'ldap.png';
$action_images['security'] = 'passwordprotected.gif'; $action_images['security'] = 'security.png';
$action_images['languages'] = 'languages.gif'; $action_images['languages'] = 'languages.png';
$action_images['tuning'] = 'tuning.gif'; $action_images['tuning'] = 'tuning.png';
$action_images['plugins'] = 'plugin.gif'; $action_images['plugins'] = 'plugins.png';
$action_images['stylesheets'] = 'theme.gif'; $action_images['stylesheets'] = 'stylesheets.png';
$action_images['templates'] = 'template.gif'; $action_images['templates'] = 'template.png';
$action_images['search'] = 'search.gif'; $action_images['search'] = 'search.png';
$action_images['editor'] = 'html.png'; $action_images['editor'] = 'html_editor.png';
$action_images['timezones'] = 'timezones.png'; $action_images['timezones'] = 'timezone.png';
$action_images['extra'] = 'more.png'; $action_images['extra'] = 'wizard.png';
// Grabbing the categories. // Grabbing the categories.
//$selectcategories = "SELECT DISTINCT category FROM ".$table_settings_current." WHERE category NOT IN ('stylesheets','Plugins')"; //$selectcategories = "SELECT DISTINCT category FROM ".$table_settings_current." WHERE category NOT IN ('stylesheets','Plugins')";
@ -564,12 +564,12 @@ $resultcategories = api_get_settings_categories(array('stylesheets', 'Plugins',
echo "\n<div class=\"actions\">"; echo "\n<div class=\"actions\">";
//while ($row = Database::fetch_array($resultcategories)) //while ($row = Database::fetch_array($resultcategories))
foreach ($resultcategories as $row) { foreach ($resultcategories as $row) {
echo "\n\t<a href=\"".api_get_self()."?category=".$row['category']."\">".Display::return_icon($action_images[strtolower($row['category'])], api_ucfirst(get_lang($row['category']))).api_ucfirst(get_lang($row['category']))."</a>"; echo "\n\t<a href=\"".api_get_self()."?category=".$row['category']."\">".Display::return_icon($action_images[strtolower($row['category'])], api_ucfirst(get_lang($row['category'])),'','32')."</a>";
} }
echo "\n\t<a href=\"".api_get_self()."?category=Plugins\">".Display::return_icon($action_images['plugins'], api_ucfirst(get_lang('Plugins'))).api_ucfirst(get_lang('Plugins'))."</a>"; echo "\n\t<a href=\"".api_get_self()."?category=Search\">".Display::return_icon($action_images['search'], api_ucfirst(get_lang('Search')),'','32')."</a>";
echo "\n\t<a href=\"".api_get_self()."?category=stylesheets\">".Display::return_icon($action_images['stylesheets'], api_ucfirst(get_lang('Stylesheets'))).api_ucfirst(get_lang('Stylesheets'))."</a>"; echo "\n\t<a href=\"".api_get_self()."?category=stylesheets\">".Display::return_icon($action_images['stylesheets'], api_ucfirst(get_lang('Stylesheets')),'','32')."</a>";
echo "\n\t<a href=\"".api_get_self()."?category=Templates\">".Display::return_icon($action_images['templates'], api_ucfirst(get_lang('Templates'))).api_ucfirst(get_lang('Templates'))."</a>"; echo "\n\t<a href=\"".api_get_self()."?category=Templates\">".Display::return_icon($action_images['templates'], api_ucfirst(get_lang('Templates')),'','32')."</a>";
echo "\n\t<a href=\"".api_get_self()."?category=Search\">".Display::return_icon($action_images['search'], api_ucfirst(get_lang('Search'))).api_ucfirst(get_lang('Search'))."</a>"; echo "\n\t<a href=\"".api_get_self()."?category=Plugins\">".Display::return_icon($action_images['plugins'], api_ucfirst(get_lang('Plugins')),'','32')."</a>";
echo "\n</div>"; echo "\n</div>";
if (!empty($_GET['category'])) { if (!empty($_GET['category'])) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 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: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

@ -215,6 +215,21 @@ new_class modif mix gnome nuvola
user_to_class modif mix gnome nuvola user_to_class modif mix gnome nuvola
session_to_class modif mix gnome nuvola session_to_class modif mix gnome nuvola
course_to_class modif mix gnome nuvola course_to_class modif mix gnome nuvola
--
platform chamilo
languages crystal
tools nuvola
stylesheets nuvola
security nuvola
ldap nuvola
plugins crystal
template crystal
timezone nuvola
tuning nuvola
html_editor gnome
--
platform_event modif nuvola
agenda nuvola
--julio --julio
star star

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Loading…
Cancel
Save