diff --git a/main/admin/index.php b/main/admin/index.php index 01202110fa..746122ef97 100644 --- a/main/admin/index.php +++ b/main/admin/index.php @@ -63,9 +63,9 @@ $blocks['users']['icon'] = Display::return_icon('members.gif', get_lang('Users' $blocks['users']['label'] = api_ucfirst(get_lang('Users')); if (api_is_platform_admin()) { - $search_form = '
+ $search_form = ' - +
'; $blocks['users']['search_form'] = $search_form; $items = array( @@ -97,9 +97,9 @@ if (api_is_platform_admin()) { $blocks['courses']['icon'] = Display::return_icon('course.gif', get_lang('Courses'), array(), ICON_SIZE_MEDIUM, false); $blocks['courses']['label'] = api_ucfirst(get_lang('Courses')); - $search_form = '
+ $search_form = ' - +
'; $blocks['courses']['search_form'] = $search_form; @@ -135,7 +135,7 @@ if (api_is_platform_admin()) { $search_form = ' '; $blocks['platform']['search_form'] = $search_form; @@ -172,9 +172,9 @@ if (api_get_setting('use_session_mode') == 'true') { $blocks['sessions']['icon'] = Display::return_icon('session.png', get_lang('Sessions'), array(), ICON_SIZE_SMALL, false); $blocks['sessions']['label'] = api_ucfirst(get_lang('Sessions')); - $search_form = '
+ $search_form = ' - +
'; $blocks['sessions']['search_form'] = $search_form; $items = array(); @@ -203,9 +203,9 @@ if (api_get_setting('use_session_mode') == 'true') { $blocks['classes']['icon'] = Display::return_icon('group.gif', get_lang('AdminClasses'), array(), ICON_SIZE_SMALL, false); $blocks['classes']['label'] = api_ucfirst(get_lang('AdminClasses')); - $search_form = '
+ $search_form = ' - +
'; $blocks['classes']['search_form'] = $search_form; $items = array(); @@ -292,7 +292,11 @@ if (api_is_platform_admin()) { //session_write_close(); //close session to avoid blocking concurrent access //flush(); //send data to client as much as allowed by the web server //ob_flush(); - $blocks['chamilo']['extra'] = '
'.get_lang('VersionCheck').': '.version_check().''; + + //Version check + $blocks['version_check']['icon'] = Display::return_icon('logo.gif', 'Chamilo.org', array(), ICON_SIZE_SMALL, false); + $blocks['version_check']['label'] = get_lang('VersionCheck'); + $blocks['version_check']['extra'] = version_check(); } $tpl = new Template(); @@ -319,14 +323,14 @@ function version_check() { // The site has not been registered yet. $return = ''; - if ($row['selected_value'] == 'false') { - $return .= '
'; + if ($row['selected_value'] == 'false') { $return .= get_lang('VersionCheckExplanation'); - $return .= ''.get_lang('HideCampusFromPublicDokeosPlatformsList'); - $return .= ''; + $return .= ''; + $return .= ''; $return .= '
'; } else { - $return = 'site registered. '; + //$return = 'site registered. '; $return .= check_system_version(); } return $return; @@ -350,7 +354,6 @@ function register_site() { $sql = "UPDATE $tbl_settings SET selected_value='true' WHERE variable='donotlistcampus'"; $result = Database::query($sql); } - // Reload the settings. } diff --git a/main/css/base.css b/main/css/base.css index da484661b2..f12d09999d 100644 --- a/main/css/base.css +++ b/main/css/base.css @@ -246,6 +246,11 @@ a.tag { margin-bottom:10px; } +/* Admin index.php */ +#settings .span6 { + min-height: 180px; +} + /* user_portal course status icon */ .coursestatusicons { border: 0px solid #000; diff --git a/main/template/default/admin/settings_index.tpl b/main/template/default/admin/settings_index.tpl index f62ddf2ac5..f45585ae58 100644 --- a/main/template/default/admin/settings_index.tpl +++ b/main/template/default/admin/settings_index.tpl @@ -31,7 +31,13 @@ $(function() {
  • {{ url.label }}
  • {% endfor %} - {% endif%} + {% endif %} + + {% if block_item.extra is not null %} +

    + {{ block_item.extra }} +

    + {% endif %} {% endfor %}