diff --git a/html/forms/discovery-module-update.inc.php b/html/forms/discovery-module-update.inc.php new file mode 100644 index 000000000..224657ae5 --- /dev/null +++ b/html/forms/discovery-module-update.inc.php @@ -0,0 +1,37 @@ +'); +echo(' + + + + + +'); echo(''); echo(''); echo(''); diff --git a/html/pages/device/edit/modules.inc.php b/html/pages/device/edit/modules.inc.php index 1e9ba7ff2..36a53b3f1 100644 --- a/html/pages/device/edit/modules.inc.php +++ b/html/pages/device/edit/modules.inc.php @@ -1,105 +1,236 @@ +
+
+ Poller Modules +
+
+ Discovery Modules +
+
+
+
+ + + + + + + '); -$i=0; - -echo('
Poller Modules
'); - -echo('
ModuleGlobalDevice
'); -echo(''); foreach ($config['poller_modules'] as $module => $module_status) { - if (!is_integer($i/2)) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; } + echo(' + + + + + '); - $i++; + echo(' + + +'); } -echo('
ModuleGlobalDevice
'.$module.' +'); - echo('
'.$module.''); + if($module_status == 1) + { + echo('Enabled'); + } + else + { + echo('Disabled'); + } - echo(($module_status ? 'enabled' : 'disabled' )); - - echo(''); + echo(' + +'); if (isset($attribs['poll_'.$module])) { - if ($attribs['poll_'.$module]) {echo("enabled");} else { echo('disabled'); } - } else { - echo(($module_status ? 'enabled' : 'disabled' )); + if ($attribs['poll_'.$module]) + { + echo('Enabled'); + $module_checked = 'checked'; + } + else + { + echo('Disabled'); + $module_checked = ''; + } + } + else + { + if($module_status == 1) + { + echo('Enabled'); + $module_checked = 'checked'; + } + else + { + echo('Disabled'); + $module_checked = ''; + } } - echo(''); + echo(' + +'); - echo('
- - - -
'); + echo(' + +'); - echo('
'); -echo('
'); -echo('
'); -$i=0; -echo('
Discovery Modules
'); -echo(''); -echo(''); +?> + +
ModuleGlobalDevice
+
+
+ + + + + + + + + $module_status) { - if (!is_integer($i/2)) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; } - echo(' + + + + '); + echo(' + + +'); - $i++; } -echo('
ModuleGlobalDevice
'.$module.''); - echo(($module_status ? 'enabled' : 'disabled' )); + echo(' +
+ '.$module.' + +'); - echo(''); + if($module_status == 1) + { + echo('Enabled'); + } + else + { + echo('Disabled'); + } + + echo(' + +'); if (isset($attribs['discover_'.$module])) { - if ($attribs['discover_'.$module]) {echo("enabled");} else { echo('disabled'); } - } else { - echo(($module_status ? 'enabled' : 'disabled' )); + if($attribs['discover_'.$module]) + { + echo('Enabled'); + $module_checked = 'checked'; + } + else + { + echo('Disabled'); + $module_checked = ''; + } + } + else + { + if($module_status == 1) + { + echo('Enabled'); + $module_checked = 'checked'; + } + else + { + echo('Disabled'); + $module_checked = ''; + } } - echo(''); + echo(' + +'); - echo('
- - - -
'); + echo(' + +'); - echo('
'); -echo('
'); +echo(' + +
+'); ?> + +