From f969186abb2ba4197004eaef91a50802b1734ea7 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 26 May 2016 11:15:13 -0400 Subject: [PATCH] add the ZM_WEB_ID_ON_CONSOLE option and use it to show the ID column on the console --- scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in | 10 ++++++++++ web/skins/classic/views/console.php | 11 ++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in index 610d2432d..16a618827 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in +++ b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in @@ -1564,6 +1564,16 @@ our @options = type => $types{boolean}, category => "web", }, + { + name => "ZM_WEB_ID_ON_CONSOLE", + default => "no", + description => "Should the console list the monitor id", + help => qqq("Some find it useful to have the id always visible + on the console. This option will add a column listing it. + "), + type => $types{boolean}, + category => "web", + }, { name => "ZM_WEB_POPUP_ON_ALARM", default => "yes", diff --git a/web/skins/classic/views/console.php b/web/skins/classic/views/console.php index dbf0ea2f4..1aa2c101d 100644 --- a/web/skins/classic/views/console.php +++ b/web/skins/classic/views/console.php @@ -182,6 +182,9 @@ $seqDownFile = getSkinFile( 'graphics/seq-d.gif' ); $versionClass = (ZM_DYN_DB_VERSION&&(ZM_DYN_DB_VERSION!=ZM_VERSION))?'errorText':''; +$left_columns = 3; +if ( count($servers) ) $left_columns += 1; +if ( ZM_WEB_ID_ON_CONSOLE ) ) $left_columns += 1; xhtmlHeaders( __FILE__, translate('Console') ); ?> @@ -241,6 +244,9 @@ else + + + @@ -269,7 +275,7 @@ if ( canEdit('Monitors') ) - +
+ @@ -315,6 +321,9 @@ foreach( $displayMonitors as $monitor ) $fclass .= " disabledText"; $scale = max( reScale( SCALE_BASE, $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE ), SCALE_BASE ); ?> + + '.translate('Fn'.$monitor['Function']).( empty($monitor['Enabled']) ? ', disabled' : '' ) .'', canEdit( 'Monitors' ) ) ?>