2010-12-22 Ramon Novoa <rnovoa@artica.es>
* operation/events/events_list.php: Fixed event name search and search pagination. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3690 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
1f94248a37
commit
d53f4797bf
|
@ -1,3 +1,8 @@
|
||||||
|
2010-12-22 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
|
* operation/events/events_list.php: Fixed event name search and
|
||||||
|
search pagination.
|
||||||
|
|
||||||
2010-12-22 Sancho Lerena <slerena@artica.es>
|
2010-12-22 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
* pandoradb_migrate_v3.1_to_v3.2.sql
|
* pandoradb_migrate_v3.1_to_v3.2.sql
|
||||||
|
|
|
@ -93,7 +93,7 @@ switch($status) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($search != "") {
|
if ($search != "") {
|
||||||
$sql_post .= " AND evento LIKE '%".$search."%'";
|
$sql_post .= " AND evento LIKE '%".base64_decode($search)."%'";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($event_type != "") {
|
if ($event_type != "") {
|
||||||
|
@ -127,7 +127,7 @@ if ($event_view_hr > 0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = "index.php?sec=eventos&sec2=operation/events/events&search=" .
|
$url = "index.php?sec=eventos&sec2=operation/events/events&search=" .
|
||||||
rawurlencode($search) . "&event_type=" . $event_type .
|
$search . "&event_type=" . $event_type .
|
||||||
"&severity=" . $severity . "&status=" . $status . "&ev_group=" .
|
"&severity=" . $severity . "&status=" . $status . "&ev_group=" .
|
||||||
$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=" .
|
||||||
|
@ -346,7 +346,7 @@ foreach ($result as $event) {
|
||||||
|
|
||||||
// Event description
|
// Event description
|
||||||
$data[1] = '<span title="'.$event["evento"].'" class="f9">';
|
$data[1] = '<span title="'.$event["evento"].'" class="f9">';
|
||||||
$data[1] .= '<a href="'.$url.'&group_rep=0&pure='.$config["pure"].'&search='.rawurlencode ($event["evento"]).'">';
|
$data[1] .= '<a href="'.$url.'&group_rep=0&offset=0&pure='.$config["pure"].'&search='.base64_encode ($event["evento"]).'">';
|
||||||
if (strlen ($event["evento"]) > 50) {
|
if (strlen ($event["evento"]) > 50) {
|
||||||
$data[1] .= mb_substr ($event["evento"], 0, 50)."...";
|
$data[1] .= mb_substr ($event["evento"], 0, 50)."...";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue