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:
parent
01710dc646
commit
25435a67de
|
@ -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
|
||||||
|
|
|
@ -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&sec2=operation/events/events&search=" .
|
$url = "index.php?sec=eventos&sec2=operation/events/events&search=" .
|
||||||
|
@ -144,7 +145,7 @@ $url = "index.php?sec=eventos&sec2=operation/events/events&search=" .
|
||||||
$ev_group . "&refr=" . $config["refr"] . "&id_agent=" .
|
$ev_group . "&refr=" . $config["refr"] . "&id_agent=" .
|
||||||
$id_agent . "&id_event=" . $id_event . "&pagination=" .
|
$id_agent . "&id_event=" . $id_event . "&pagination=" .
|
||||||
$pagination . "&group_rep=" . $group_rep . "&event_view_hr=" .
|
$pagination . "&group_rep=" . $group_rep . "&event_view_hr=" .
|
||||||
$event_view_hr . "&id_user_ack=" . $id_user_ack . "&tag_search=" . $tag_search . "&offset=" . $offset;
|
$event_view_hr . "&id_user_ack=" . $id_user_ack . "&tag=" . $tag . "&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">';
|
||||||
|
|
Loading…
Reference in New Issue