2010-05-03 Sergio Martin <sergio.martin@artica.es>

* operation/events/events.php: Fixed the successfully
	message over the header for bug: 2989965



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2651 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-05-03 07:39:11 +00:00
parent 0b8ccd8c7c
commit 979aa8b2a8
2 changed files with 29 additions and 20 deletions

View File

@ -1,3 +1,8 @@
2010-05-03 Sergio Martin <sergio.martin@artica.es>
* operation/events/events.php: Fixed the successfully
message over the header for bug: 2989965
2010-04-30 Sergio Martin <sergio.martin@artica.es> 2010-04-30 Sergio Martin <sergio.martin@artica.es>
* godmode/alerts/alert_list.builder.php: Removed an * godmode/alerts/alert_list.builder.php: Removed an

View File

@ -131,26 +131,6 @@ $groups[0] = __('System');
$delete = (bool) get_parameter ("delete"); $delete = (bool) get_parameter ("delete");
$validate = (bool) get_parameter ("validate"); $validate = (bool) get_parameter ("validate");
//Process deletion (pass array or single value)
if ($delete) {
$ids = (array) get_parameter ("eventid", -1);
$return = delete_event ($ids, ($group_rep == 1));
print_result_message ($return,
__('Successfully deleted'),
__('Could not be deleted'));
}
//Process validation (pass array or single value)
if ($validate) {
$ids = (array) get_parameter ("eventid", -1);
$return = validate_event ($ids, ($group_rep == 1));
print_result_message ($return,
__('Successfully validated'),
__('Could not be validated'));
}
//Group selection //Group selection
if ($ev_group > 1 && in_array ($ev_group, array_keys ($groups))) { if ($ev_group > 1 && in_array ($ev_group, array_keys ($groups))) {
//If a group is selected and it's in the groups allowed //If a group is selected and it's in the groups allowed
@ -230,6 +210,30 @@ else {
echo "</h2>"; echo "</h2>";
} }
//Process validation (pass array or single value)
if ($validate) {
$ids = (array) get_parameter ("eventid", -1);
if($ids[0] != -1){
$return = validate_event ($ids, ($group_rep == 1));
print_result_message ($return,
__('Successfully validated'),
__('Could not be validated'));
}
}
//Process deletion (pass array or single value)
if ($delete) {
$ids = (array) get_parameter ("eventid", -1);
if($ids[0] != -1){
$return = delete_event ($ids, ($group_rep == 1));
print_result_message ($return,
__('Successfully deleted'),
__('Could not be deleted'));
}
}
//Link to toggle filter //Link to toggle filter
echo '<a href="#" id="tgl_event_control"><b>'.__('Event control filter').'</b>&nbsp;'.print_image ("images/down.png", true, array ("title" => __('Toggle filter(s)'))).'</a><br><br>'; echo '<a href="#" id="tgl_event_control"><b>'.__('Event control filter').'</b>&nbsp;'.print_image ("images/down.png", true, array ("title" => __('Toggle filter(s)'))).'</a><br><br>';