2009-02-16 Raul Mateos <raulofpandora@gmail.com>

* include/config_process.php: Update build after last changes.
	* operation/events/events.php: Now the legend is shown only if there are
	events, just a cosmetic change.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1461 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
raulmateos 2009-02-16 17:09:41 +00:00
parent 64292adc7c
commit a7bccca13c
3 changed files with 48 additions and 37 deletions

View File

@ -1,3 +1,10 @@
2009-02-16 Raul Mateos <raulofpandora@gmail.com>
* include/config_process.php: Update build after last changes.
* operation/events/events.php: Now the legend is shown only if there are
events, just a cosmetic change.
2009-02-16 Esteban Sanchez <estebans@artica.es> 2009-02-16 Esteban Sanchez <estebans@artica.es>
* include/javascript/jquery.pandora.controls.js: Added to repository. * include/javascript/jquery.pandora.controls.js: Added to repository.

View File

@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//Pandora Version //Pandora Version
$build_version = 'PC090120'; $build_version = 'PC090216';
$pandora_version = 'v2.1-dev'; $pandora_version = 'v2.1-dev';
// Next is the directory where "/attachment" directory is placed, to upload files stores. // Next is the directory where "/attachment" directory is placed, to upload files stores.
@ -86,9 +86,13 @@ foreach ($configs as $c) {
break; break;
case "auth": case "auth":
exit ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> exit ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Pandora FMS Error</title> <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Pandora FMS Error</title>
<link rel="stylesheet" href="./include/styles/pandora.css" type="text/css"> <link rel="stylesheet" href="./include/styles/pandora.css" type="text/css">
</head><body><div align="center"> </head>
<body>
<div align="center">
<div id="db_f"> <div id="db_f">
<div> <div>
<a href="index.php"><img src="images/pandora_logo.png" border="0" alt="logo" /></a> <a href="index.php"><img src="images/pandora_logo.png" border="0" alt="logo" /></a>

View File

@ -2,7 +2,7 @@
// Pandora FMS - the Flexible Monitoring System // Pandora FMS - the Flexible Monitoring System
// ============================================ // ============================================
// Copyright (c) 2008 Artica Soluciones Tecnologicas, http://www.artica.es // Copyright (c) 2009 Artica Soluciones Tecnologicas, http://www.artica.es
// Please see http://pandora.sourceforge.net for full contribution list // Please see http://pandora.sourceforge.net for full contribution list
// This program is free software; you can redistribute it and/or // This program is free software; you can redistribute it and/or
@ -430,7 +430,9 @@ foreach ($result as $row) {
array_push ($table->data, $data); array_push ($table->data, $data);
} }
if (!empty ($table->data)) { if (empty ($table->data)) {
echo '<div class="nf">'.__('No events').'</div>';
} else {
echo '<form method="post" action="'.$url.'&pure='.$config["pure"].'">'; echo '<form method="post" action="'.$url.'&pure='.$config["pure"].'">';
print_table ($table); print_table ($table);
echo '<div style="width:750px; text-align:right">'; echo '<div style="width:750px; text-align:right">';
@ -440,13 +442,21 @@ if (!empty ($table->data)) {
if (give_acl ($config["id_user"], 0,"IM") == 1) { if (give_acl ($config["id_user"], 0,"IM") == 1) {
print_submit_button (__('Delete'), 'delete', false, 'class="sub delete"'); print_submit_button (__('Delete'), 'delete', false, 'class="sub delete"');
} }
echo '</div></form>'; echo '</div></form>
} else { <script language="JavaScript" type="text/javascript">
echo '<div class="nf">'.__('No events').'</div>'; $(document).ready( function() {
} $("INPUT[name=\'allbox\']").click( function() {
unset ($table); $("INPUT[name=\'eventid[]\']").each( function() {
$(this).attr(\'checked\', !$(this).attr(\'checked\'));
if ($config["pure"]== 0) { });
return !(this).attr(\'checked\');
});
$("#tgl_event_control").click( function () {
$("#event_control").slideToggle ("slow");
});
});
</script>';
if ($config["pure"]== 0) {
echo '<div style="padding-left:30px; width:150px; float:left; line-height:17px;">'; echo '<div style="padding-left:30px; width:150px; float:left; line-height:17px;">';
echo '<h3>'.__('Status').'</h3>'; echo '<h3>'.__('Status').'</h3>';
echo '<img src="images/dot_green.png" /> - '.__('Validated event'); echo '<img src="images/dot_green.png" /> - '.__('Validated event');
@ -461,18 +471,8 @@ if ($config["pure"]== 0) {
echo '<br />'; echo '<br />';
echo '<img src="images/page_lightning.png" /> - '.__('Create incident'); echo '<img src="images/page_lightning.png" /> - '.__('Create incident');
echo '</div><div style="clear:both;">&nbsp;</div>'; echo '</div><div style="clear:both;">&nbsp;</div>';
}
} }
unset ($table);
?> ?>
<script language="JavaScript" type="text/javascript">
$(document).ready( function() {
$("INPUT[name='allbox']").click( function() {
$("INPUT[name='eventid[]']").each( function() {
$(this).attr('checked', !$(this).attr('checked'));
});
return !(this).attr('checked');
});
$("#tgl_event_control").click( function () {
$("#event_control").slideToggle ("slow");
});
});
</script>