From 2ec33eb22cac5b7732587665eed57c4ef019bd7c Mon Sep 17 00:00:00 2001 From: javilanz Date: Wed, 19 Jan 2011 13:50:22 +0000 Subject: [PATCH] 2011-01-19 Javier Lanz * extensions/module_groups.php: Added truncation and scroll bar * operation/agentes/status_monitor.php: Fixed combobox functionality * general/logon_ok.php: Added a scroll bar at the bottom * godmode/groups/modu_group_list.php: Truncated module groups name git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3749 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/extensions/module_groups.php | 9 +++++++-- pandora_console/general/logon_ok.php | 2 ++ pandora_console/godmode/groups/modu_group_list.php | 2 +- pandora_console/operation/agentes/status_monitor.php | 8 ++++---- 5 files changed, 20 insertions(+), 7 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 30391080d0..955b1a5aa5 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2011-01-19 Javier Lanz + * extensions/module_groups.php: Added truncation and scroll bar + * operation/agentes/status_monitor.php: Fixed combobox functionality + * general/logon_ok.php: Added a scroll bar at the bottom + * godmode/groups/modu_group_list.php: Truncated module groups name + 2011-01-18 Miguel de Dios * include/functions.php: in function "format_for_graph" added the units diff --git a/pandora_console/extensions/module_groups.php b/pandora_console/extensions/module_groups.php index 4661eede56..436b321495 100644 --- a/pandora_console/extensions/module_groups.php +++ b/pandora_console/extensions/module_groups.php @@ -105,7 +105,11 @@ function mainModuleGroups() { $agentGroups = get_user_groups ($config['id_user'], "AR", false); $modelGroups = get_all_model_groups(); array_walk($modelGroups, 'translate'); //Translate all head titles to language is set - + + foreach ($modelGroups as $i => $n) { + $modelGroups[$i] = printTruncateText($n, 20); + } + $head = $modelGroups; array_unshift($head, ' '); @@ -204,8 +208,9 @@ function mainModuleGroups() { array_push($tableData,$row); } $table->data = $tableData; - + echo "
"; print_table($table); + echo "
"; echo "

" . __("The colours meaning:") . "

    " . diff --git a/pandora_console/general/logon_ok.php b/pandora_console/general/logon_ok.php index 9c5e3b7e76..753f2456be 100644 --- a/pandora_console/general/logon_ok.php +++ b/pandora_console/general/logon_ok.php @@ -172,6 +172,8 @@ foreach ($sessions as $session) { array_push ($table->data, $data); } +echo "
    "; print_table ($table); +echo "
    "; echo ""; // activity ?> diff --git a/pandora_console/godmode/groups/modu_group_list.php b/pandora_console/godmode/groups/modu_group_list.php index 6ba5dc7fc1..3864a495ef 100644 --- a/pandora_console/godmode/groups/modu_group_list.php +++ b/pandora_console/godmode/groups/modu_group_list.php @@ -131,7 +131,7 @@ foreach ($groups as $id_group ) { // $data[0] = ''; // else // $data[0] = ' '; - $data[0] = ''.$id_group["name"].''; + $data[0] = ''.printTruncateText($id_group["name"], 50).''; // $data[2] = get_group_name ($group["parent"]); // $data[3] = $group['disabled'] ? __('Disabled') : __('Enabled'); $data[1] = ''; diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index cf8561b70f..1f762803fb 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -66,22 +66,22 @@ echo ''; echo ''.__('Module group').''; echo ''; print_select_from_sql ("SELECT * FROM tmodule_group ORDER BY name", - 'modulegroup', $modulegroup, '',__('All'), 0, false, false, true, false, 'width: 100px;'); + 'modulegroup', $modulegroup, 'this.form.submit();',__('All'), 0, false, false, true, false, 'width: 100px;'); echo ''.__('Module name').''; echo ''; $user_groups = implode (",", array_keys (get_user_groups ())); -$user_agents = implode (",", array_keys (get_group_agents($user_groups))); +$user_agents = array_keys (get_group_agents($user_groups)); $modules = get_db_all_rows_filter ('tagente_modulo', array('id_agente' => $user_agents, 'nombre' => '<>delete_pending'), 'DISTINCT(nombre)'); print_select (index_array ($modules, 'nombre', 'nombre'), "ag_modulename", $ag_modulename, 'this.form.submit();', __('All'), '', false, false, true, '', false, 'width: 150px;'); -echo ''.__('Search').''; +echo ''.__('Search').''; echo ''; -print_input_text ("ag_freestring", $ag_freestring, '', 15,30, false); +print_input_text ("ag_freestring", $ag_freestring, '', 20,30, false); echo ''; print_submit_button (__('Show'), "uptbutton", false, 'class="sub search"');