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:
Ramon Novoa 2008-10-31 17:40:43 +00:00
parent 9525ca587d
commit 67280a676b
4 changed files with 38 additions and 16 deletions

View File

@ -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,

View File

@ -127,6 +127,29 @@ if (give_acl ($config['id_user'], 0, "UM")) {
echo '<ul class="mn"><li><a href="index.php?sec=gusuarios&amp;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&amp;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">';

View File

@ -140,7 +140,7 @@ if (isset ($_GET["update_alert"])) {
} else {
echo "<h2>Pandora SNMP &gt; ".__('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>&nbsp;
<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>";

View File

@ -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&amp;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&amp;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';