diff --git a/web/skins/classic/views/monitor.php b/web/skins/classic/views/monitor.php index 745ecd9fe..115869616 100644 --- a/web/skins/classic/views/monitor.php +++ b/web/skins/classic/views/monitor.php @@ -19,6 +19,7 @@ // require_once( 'includes/Server.php'); +require_once( 'includes/Storage.php'); if ( !canView( 'Monitors' ) ) { @@ -29,7 +30,6 @@ if ( !canView( 'Monitors' ) ) $tabs = array(); $tabs["general"] = translate('General'); $tabs["source"] = translate('Source'); -$tabs["storage"] = translate('Storage'); $tabs["timestamp"] = translate('Timestamp'); $tabs["buffers"] = translate('Buffers'); if ( ZM_OPT_CONTROL && canView( 'Control' ) ) @@ -576,7 +576,7 @@ if ( $tab != 'source' || ($newMonitor['Type'] != 'Remote' && $newMonitor['Protoc } if ( $tab != 'storage' ) { ?> - + $server_obj ) { $servers[$server_obj->Id] = $server_obj->Name(); } -?> - + echo buildSelect( "newMonitor[ServerId]", $servers ); + ?> + + +'Default'); + $result = dbQuery( 'SELECT * FROM Storage ORDER BY Name'); + $results = $result->fetchALL(PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, 'Storage' ); + foreach ( $results as $row => $storage_obj ) { + $storage_areas[$storage_obj->Id] = $storage_obj->Name(); + } + echo buildSelect( "newMonitor[StorageId]", $storage_areas ); + ?>