From 10aba27d29fd42951d7103afe863404128116161 Mon Sep 17 00:00:00 2001 From: slerena Date: Wed, 28 Mar 2012 16:56:45 +0000 Subject: [PATCH] 2012-03-28 Sancho Lerena * operation/agentes/estado_agente.php: Fixed several usability problems. Fixed search problem with html entities (blank spaces, etc). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5846 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 +++++ .../operation/agentes/estado_agente.php | 23 ++++++++----------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3914fc8aac..674dc30a45 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2012-03-28 Sancho Lerena + + * operation/agentes/estado_agente.php: Fixed several usability problems. + Fixed search problem with html entities (blank spaces, etc). + + 2012-03-28 Vanessa Gil * pandoradb.sql diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index 005e5a47d1..87b3bf7854 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -116,7 +116,7 @@ while ($row = db_get_all_row_by_steps_sql($first, $result, "SELECT * FROM tgrupo // Take some parameters (GET) $group_id = (int) get_parameter ("group_id", 0); -$search = trim(io_safe_output_html(get_parameter ("search", ""))); +$search = trim(get_parameter ("search", "")); $offset = get_parameter('offset', 0); $refr = get_parameter('refr', 0); $recursion = get_parameter('recursion', 0); @@ -149,16 +149,19 @@ echo ''; echo '
'.__('Group').': '; $groups = users_get_groups (); -html_print_select_groups(false, "AR", true, 'group_id', $group_id, 'this.form.submit()', '', '', false, false, true, '', false, 'width:180px'); +html_print_select_groups(false, "AR", true, 'group_id', $group_id, 'this.form.submit()', '', '', false, false, true, '', false, 'width:150px'); + +echo ''; + +echo ui_print_help_tip (__("Group recursion"), true); -echo ''.__('Group recursion').': '; html_print_checkbox ("recursion", 1, $recursion, false, false, 'this.form.submit()'); echo ''; echo __('Free text for search').' (*): '; -html_print_input_text ("search", $search, '', 15); +html_print_input_text ("search", $search, '', 8); echo ''; @@ -370,15 +373,7 @@ $table->align[7] = "center"; $table->align[8] = "right"; $table->style = array(); -$table->style[0] = 'width: 9%'; -$table->style[1] = 'width: 11%'; -$table->style[2] = 'width: 7%'; -$table->style[3] = 'width: 10%'; -$table->style[4] = 'width: 9%'; -$table->style[5] = 'width: 10%'; -$table->style[6] = 'width: 6%'; -$table->style[7] = 'width: 6%'; -$table->style[8] = 'width: 15%'; +$table->style[0] = 'width: 15%'; $table->data = array (); @@ -416,7 +411,7 @@ foreach ($agents as $agent) { $data[0] .= ' '; }*/ - $data[1] = ui_print_truncate_text($agent["description"], 30, false, true, true, '[…]', 'font-size: 6.5pt'); + $data[1] = ui_print_truncate_text($agent["description"], 50, false, true, true, '[…]', 'font-size: 6.5pt'); $data[2] = ui_print_os_icon ($agent["id_os"], false, true);