'; } else if ( file_exists("skins/$skin/css/$css/graphics/favicon.ico") ) { echo " "; } else { echo ' '; } echo output_link_if_exists(array('fonts/material-icons.woff2'), false, $param = ['global', 'preload', ' as="font" type="font/woff2" crossorigin']); //echo output_link_if_exists(array('fonts/material-icons.woff'), false, $param = ['global', 'preload', ' as="font" type="font/woff" crossorigin']); echo output_link_if_exists(array('css/base/material-icons.css'), false); echo output_link_if_exists(array('fonts/fontawesome-webfont.woff2?v=4.7.0'), false, $param = ['global', 'preload font', ' as="font" type="font/woff2" crossorigin']); echo output_script_if_exists(array( 'js/fontfaceobserver.standalone.js', )); ?> '; } // end function xhtmlHeaders( $file, $title ) // True when the monitor filter panel should be shown inline (at the top of the // view) with its own toggle icon, rather than embedded in the left sidebar. // The sidebar can only be used when the navbar is on the left; without a left // navbar there is nothing to embed into, so filters are always inline. The // effective navbar position is the request/cookie/session value resolved into // the global $navbar_type by index.php, not the ZM_WEB_NAVBAR_TYPE default, so // the user's live choice is honoured. This mirrors the panel relocation // condition in skin.js, which uses the same value. function filterSettingsInline() { global $navbar_type; if ($navbar_type != 'left') return true; return defined('ZM_WEB_FILTER_SETTINGS_POSITION') && ZM_WEB_FILTER_SETTINGS_POSITION == 'inline'; } // Outputs an opening body tag, and any additional content that should go at the very top, like warnings and error messages. function getBodyTopHTML() { global $view; //Needed for more flexible global governance $classes = $view.'-page'; if (defined('ZM_WEB_NAVBAR_STICKY') and ZM_WEB_NAVBAR_STICKY) $classes .= ' sticky'; if (filterSettingsInline()) $classes .= ' filter-inline'; if (defined('ZM_WEB_BUTTON_STYLE') and ZM_WEB_BUTTON_STYLE == 'icons') $classes .= ' btn-icons-only'; else if (defined('ZM_WEB_BUTTON_STYLE') and ZM_WEB_BUTTON_STYLE == 'text') $classes .= ' btn-text-only'; if (defined('ZM_WEB_SHOW_NAV_BUTTONS') and !ZM_WEB_SHOW_NAV_BUTTONS) $classes .= ' hide-nav-buttons'; $classHTML = ' class="'.$classes.'"'; echo '
'; global $error_message; if ( $error_message ) { echo '| ' .translate('Zone'). ' | '.PHP_EOL; $result .= '' .translate('PixelDiff'). ' | '.PHP_EOL; $result .= '' .translate('AlarmPx'). ' | '.PHP_EOL; $result .= '' .translate('FilterPx'). ' | '.PHP_EOL; $result .= '' .translate('BlobPx'). ' | '.PHP_EOL; $result .= '' .translate('Blobs'). ' | '.PHP_EOL; $result .= '' .translate('BlobSizes'). ' | '.PHP_EOL; $result .= '' .translate('AlarmLimits'). ' | '.PHP_EOL; $result .= '' .translate('Score'). ' | '.PHP_EOL; $result .= '||
|---|---|---|---|---|---|---|---|---|---|---|
| ' .validHtmlStr($stat['ZoneName']). ' | '.PHP_EOL; $result .= '' .validHtmlStr($stat['PixelDiff']). ' | '.PHP_EOL; $result .= '' .$pct($stat['AlarmPixels']). ' | '.PHP_EOL; $result .= '' .$pct($stat['FilterPixels']).' | '.PHP_EOL; $result .= '' .$pct($stat['BlobPixels']). ' | '.PHP_EOL; $result .= '' .validHtmlStr($stat['Blobs']). ' | '.PHP_EOL; if ( $stat['Blobs'] > 1 ) { if ( $pixelArea > 0 ) { $result .= '' .sprintf( "%d-%d (%d%%-%d%%)", $stat['MinBlobSize'], $stat['MaxBlobSize'], (100*$stat['MinBlobSize']/$pixelArea), (100*$stat['MaxBlobSize']/$pixelArea) ). ' | '.PHP_EOL; } else { $result .= '' .sprintf( "%d-%d", $stat['MinBlobSize'], $stat['MaxBlobSize'] ). ' | '.PHP_EOL; } } else { $result .= '' .$pct($stat['MinBlobSize']). ' | '.PHP_EOL; } $result .= '' .validHtmlStr($stat['MinX'].",".$stat['MinY']."-".$stat['MaxX'].",".$stat['MaxY']). ' | '.PHP_EOL; $result .= '' .$stat['Score']. ' | '.PHP_EOL; $result .= '
| and "colspan" is not being applied $result .= ' | ' .translate('NoStatisticsRecorded'). ' | '.PHP_EOL; $result .= '|||||||||