2011-07-29 Sergio Martin <sergio.martin@artica.es>

* operation/events/events_list.php: Change the events free search tag
	by a combo with all the possible tags for 3380040



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4656 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-07-29 14:33:02 +00:00
parent 01710dc646
commit 25435a67de
2 changed files with 24 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2011-07-29 Sergio Martin <sergio.martin@artica.es>
* operation/events/events_list.php: Change the events free search tag
by a combo with all the possible tags for 3380040
2011-07-29 Sergio Martin <sergio.martin@artica.es> 2011-07-29 Sergio Martin <sergio.martin@artica.es>
* operation/servers/view_server_detail.php: Changed the progress graph * operation/servers/view_server_detail.php: Changed the progress graph

View File

@ -24,6 +24,7 @@ require_once($config['homedir'] . "/include/functions_users.php"); //Users funct
require_once ($config['homedir'] . '/include/functions_groups.php'); require_once ($config['homedir'] . '/include/functions_groups.php');
require_once ($config["homedir"] . '/include/functions_graph.php'); require_once ($config["homedir"] . '/include/functions_graph.php');
require_once ($config["homedir"] . '/include/functions_tags.php');
check_login (); check_login ();
@ -34,7 +35,7 @@ if (! check_acl ($config["id_user"], 0, "IR")) {
return; return;
} }
$tag_search = get_parameter("tag", ""); $tag = get_parameter("tag", "");
if ($id_agent == -2) { if ($id_agent == -2) {
$text_agent = (string) get_parameter("text_agent", __("All")); $text_agent = (string) get_parameter("text_agent", __("All"));
@ -134,8 +135,8 @@ if ($event_view_hr > 0) {
} }
//Search by tag //Search by tag
if ($tag_search != "") { if ($tag != "") {
$sql_post .= " AND tags LIKE '%".io_safe_input($tag_search)."%'"; $sql_post .= " AND tags LIKE '%".io_safe_input($tag)."%'";
} }
$url = "index.php?sec=eventos&amp;sec2=operation/events/events&amp;search=" . $url = "index.php?sec=eventos&amp;sec2=operation/events/events&amp;search=" .
@ -144,7 +145,7 @@ $url = "index.php?sec=eventos&amp;sec2=operation/events/events&amp;search=" .
$ev_group . "&amp;refr=" . $config["refr"] . "&amp;id_agent=" . $ev_group . "&amp;refr=" . $config["refr"] . "&amp;id_agent=" .
$id_agent . "&amp;id_event=" . $id_event . "&amp;pagination=" . $id_agent . "&amp;id_event=" . $id_event . "&amp;pagination=" .
$pagination . "&amp;group_rep=" . $group_rep . "&amp;event_view_hr=" . $pagination . "&amp;group_rep=" . $group_rep . "&amp;event_view_hr=" .
$event_view_hr . "&amp;id_user_ack=" . $id_user_ack . "&amp;tag_search=" . $tag_search . "&amp;offset=" . $offset; $event_view_hr . "&amp;id_user_ack=" . $id_user_ack . "&amp;tag=" . $tag . "&amp;offset=" . $offset;
echo "<br>"; echo "<br>";
//Link to toggle filter //Link to toggle filter
@ -243,7 +244,20 @@ html_print_select ($repeated_sel, "group_rep", $group_rep, '');
echo "</td></tr>"; echo "</td></tr>";
echo "<tr><td>"; echo "<tr><td>";
echo __("Tag") . "</td><td>"; echo __("Tag") . "</td><td>";
html_print_input_text ('tag', $tag_search, '', 15); //html_print_input_text ('tag', $tag_search, '', 15);
$tags = tags_search_tag();
if($tags === false) {
$tags = array();
}
$tags_name = array();
foreach($tags as $t) {
$tags_name[$t['name']] = $t['name'];
}
html_print_select ($tags_name, "tag", $tag, '', __('All'), "");
echo "</td></tr>"; echo "</td></tr>";
echo '<tr><td colspan="4" style="text-align:right">'; echo '<tr><td colspan="4" style="text-align:right">';