2008-10-31 Ramon Novoa <rnovoa@artica.es>
* operation/snmpconsole/snmp_alert.php: Moved to godmode/snmpconsole/snmp_alert.php. * godmode/snmpconsole: Added to repository. SNMP console godmode subdirectory. * godmode/menu.php, operation/menu.php: Updated menus to reflect the change. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1211 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
9525ca587d
commit
67280a676b
|
@ -1,3 +1,14 @@
|
|||
2008-10-31 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* operation/snmpconsole/snmp_alert.php: Moved to
|
||||
godmode/snmpconsole/snmp_alert.php.
|
||||
|
||||
* godmode/snmpconsole: Added to repository. SNMP console godmode
|
||||
subdirectory.
|
||||
|
||||
* godmode/menu.php,
|
||||
operation/menu.php: Updated menus to reflect the change.
|
||||
|
||||
2008-10-31 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* include/styles/god.css,
|
||||
|
|
|
@ -127,6 +127,29 @@ if (give_acl ($config['id_user'], 0, "UM")) {
|
|||
echo '<ul class="mn"><li><a href="index.php?sec=gusuarios&sec2=godmode/users/user_list" class="mn">'.__('Manage users').'</a></li></ul></div>';
|
||||
}
|
||||
|
||||
// SNMP console
|
||||
if (give_acl($config['id_user'], 0, "AW")) {
|
||||
if ($sec == "gsnmpconsole"){
|
||||
echo "<div id='god9s'>";
|
||||
} else
|
||||
echo "<div id='god9'>";
|
||||
|
||||
echo "<ul class='mn'><li><a href='index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert' class='mn'>" . __('Manage SNMP console') . "</a></li></ul></div>";
|
||||
|
||||
// SNMP Console alert (submenu)
|
||||
if ($sec == "gsnmpconsole") {
|
||||
if ($sec2 == "godmode/snmpconsole/snmp_alert") {
|
||||
echo "<div class='arrowgs'>";
|
||||
} else {
|
||||
echo "<div class='arrowg'>";
|
||||
}
|
||||
echo "<ul class='mn'><li><a href='index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert' class='mn'>".__('SNMP alerts')."</a></li></ul></div>";
|
||||
}
|
||||
|
||||
enterprise_hook ('snmpconsole_submenu');
|
||||
}
|
||||
|
||||
|
||||
// Reporting
|
||||
if (give_acl ($config['id_user'], 0, "PM")) {
|
||||
echo '<div id="god51">';
|
||||
|
|
|
@ -140,7 +140,7 @@ if (isset ($_GET["update_alert"])) {
|
|||
} else {
|
||||
echo "<h2>Pandora SNMP > ".__('Create alert')."</h2>";
|
||||
}
|
||||
echo '<form name="agente" method="post" action="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert&submit='.$id_as.'">';
|
||||
echo '<form name="agente" method="post" action="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert&submit='.$id_as.'">';
|
||||
echo '<table cellpadding="4" cellspacing="4" width="650" class="databox_color">';
|
||||
|
||||
// Alert type (e-mail, event etc.)
|
||||
|
@ -325,9 +325,9 @@ if (isset ($_GET["update_alert"])) {
|
|||
$data[7] = __('Never');
|
||||
}
|
||||
|
||||
$data[8] = '<a href="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert&delete_alert='.$row["id_as"].'">
|
||||
$data[8] = '<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert&delete_alert='.$row["id_as"].'">
|
||||
<img src="images/cross.png" border="0" alt="'.__('Delete').'"></a>
|
||||
<a href="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert&update_alert='.$row["id_as"].'">
|
||||
<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert&update_alert='.$row["id_as"].'">
|
||||
<img src="images/config.png" border="0" alt="'.__('Update').'"></a>';
|
||||
$idx = count ($table->data); //The current index of the table is 1 less than the count of table data so we count before adding to table->data
|
||||
array_push ($table->data, $data);
|
||||
|
@ -359,7 +359,7 @@ if (isset ($_GET["update_alert"])) {
|
|||
unset ($table);
|
||||
|
||||
echo '<div style="text-align:right; width:740px">';
|
||||
echo '<form name="agente" method="post" action="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert&update_alert=-1">';
|
||||
echo '<form name="agente" method="post" action="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert&update_alert=-1">';
|
||||
print_submit_button (__('Create'), "add_alert", false, 'class="sub next"');
|
||||
echo "</form></div>";
|
||||
|
|
@ -234,18 +234,6 @@ if (give_acl ($config['id_user'], 0, "AR")) {
|
|||
echo '<div id="op6" class="operation-menu'.$selected.'">';
|
||||
echo '<ul class="mn"><li><a href="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_view" class="mn">'.__('SNMP console').'</a></li></ul></div>';
|
||||
|
||||
if (give_acl($config['id_user'], 0, "AW")) {
|
||||
// SNMP Console alert (submenu)
|
||||
if ($sec == "snmpconsole") {
|
||||
if ($sec2 == "operation/snmpconsole/snmp_alert") {
|
||||
echo "<div class='operation-submenu submenu-selected'>";
|
||||
} else {
|
||||
echo "<div class='operation-submenu'>";
|
||||
}
|
||||
echo "<ul class='mn'><li><a href='index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert' class='mn'>".__('SNMP alerts')."</a></li></ul></div>";
|
||||
}
|
||||
}
|
||||
|
||||
// Messages
|
||||
if($sec2 == "operation/messages/message" && !isset ($_GET["nuevo_g"])) {
|
||||
$selected = ' menu-selected';
|
||||
|
|
Loading…
Reference in New Issue