From 82f4d0fde1db165e914130b7d9d8455bbcf78cd9 Mon Sep 17 00:00:00 2001 From: raulmateos Date: Thu, 20 Jul 2006 14:21:22 +0000 Subject: [PATCH] (Pandora Console) * snmp_alert.php. Add text when alert not deleted git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@146 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/CHANGELOG | 2 +- pandora_console/operation/snmpconsole/snmp_alert.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_console/CHANGELOG b/pandora_console/CHANGELOG index 8a4dcf3862..7e01ce7ed9 100644 --- a/pandora_console/CHANGELOG +++ b/pandora_console/CHANGELOG @@ -1,6 +1,6 @@ 2006-07-20 Raul Mateos - * snmp_alert.php. Add text when alert not created /updated. Add different colors between rows (cosmetic changes). + * snmp_alert.php. Add text when alert not created /updated / deleted. Add different colors between rows (cosmetic changes). 2006-07-18 Raul Mateos diff --git a/pandora_console/operation/snmpconsole/snmp_alert.php b/pandora_console/operation/snmpconsole/snmp_alert.php index af4de39f0c..1a37182ad4 100644 --- a/pandora_console/operation/snmpconsole/snmp_alert.php +++ b/pandora_console/operation/snmpconsole/snmp_alert.php @@ -49,6 +49,10 @@ if (give_acl($id_user, 0, "LW")==1) { $alert_delete = $_GET["delete_alert"]; $sql1='DELETE FROM talert_snmp WHERE id_as = '.$alert_delete; $result=mysql_query($sql1); + if (!$result) + echo "

".$lang_label["delete_alert_no"]."

"; + else + echo "

".$lang_label["delete_alert_ok"]."

"; } // Alert submit (for insert or update) if (isset($_GET["submit"])){