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:
ramonn 2010-12-22 20:02:21 +00:00
parent 1f94248a37
commit d53f4797bf
2 changed files with 8 additions and 3 deletions

View File

@ -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>
* pandoradb_migrate_v3.1_to_v3.2.sql

View File

@ -93,7 +93,7 @@ switch($status) {
}
if ($search != "") {
$sql_post .= " AND evento LIKE '%".$search."%'";
$sql_post .= " AND evento LIKE '%".base64_decode($search)."%'";
}
if ($event_type != "") {
@ -127,7 +127,7 @@ if ($event_view_hr > 0) {
}
$url = "index.php?sec=eventos&amp;sec2=operation/events/events&amp;search=" .
rawurlencode($search) . "&amp;event_type=" . $event_type .
$search . "&amp;event_type=" . $event_type .
"&amp;severity=" . $severity . "&amp;status=" . $status . "&amp;ev_group=" .
$ev_group . "&amp;refr=" . $config["refr"] . "&amp;id_agent=" .
$id_agent . "&amp;id_event=" . $id_event . "&amp;pagination=" .
@ -346,7 +346,7 @@ foreach ($result as $event) {
// Event description
$data[1] = '<span title="'.$event["evento"].'" class="f9">';
$data[1] .= '<a href="'.$url.'&amp;group_rep=0&amp;pure='.$config["pure"].'&amp;search='.rawurlencode ($event["evento"]).'">';
$data[1] .= '<a href="'.$url.'&amp;group_rep=0&amp;offset=0&amp;pure='.$config["pure"].'&amp;search='.base64_encode ($event["evento"]).'">';
if (strlen ($event["evento"]) > 50) {
$data[1] .= mb_substr ($event["evento"], 0, 50)."...";
}