'; } else if ( file_exists("skins/$skin/css/$css/graphics/favicon.ico") ) { echo " "; } else { echo ' '; } echo output_cache_busted_stylesheet_links(array( 'css/reset.css', 'css/font-awesome.min.css', 'css/bootstrap.min.css', )); if ( $basename == 'montage' ) { echo output_link_if_exists(array('/assets/gridstack/dist/gridstack.css', '/assets/gridstack/dist/gridstack-extra.css')); } ?> '; } // end function xhtmlHeaders( $file, $title ) // Outputs an opening body tag, and any additional content that should go at the very top, like warnings and error messages. function getBodyTopHTML() { 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 .= '' .sprintf( "%d (%d%%)", $stat['AlarmPixels'], (100*$stat['AlarmPixels']/$stat['Area']) ). ' | '.PHP_EOL; $result .= '' .sprintf( "%d (%d%%)", $stat['FilterPixels'], (100*$stat['FilterPixels']/$stat['Area']) ).' | '.PHP_EOL; $result .= '' .sprintf( "%d (%d%%)", $stat['BlobPixels'], (100*$stat['BlobPixels']/$stat['Area']) ). ' | '.PHP_EOL; $result .= '' .validHtmlStr($stat['Blobs']). ' | '.PHP_EOL; if ( $stat['Blobs'] > 1 ) { $result .= '' .sprintf( "%d-%d (%d%%-%d%%)", $stat['MinBlobSize'], $stat['MaxBlobSize'], (100*$stat['MinBlobSize']/$stat['Area']), (100*$stat['MaxBlobSize']/$stat['Area']) ). ' | '.PHP_EOL; } else { $result .= '' .sprintf( "%d (%d%%)", $stat['MinBlobSize'], 100*$stat['MinBlobSize']/$stat['Area'] ). ' | '.PHP_EOL; } $result .= '' .validHtmlStr($stat['MinX'].",".$stat['MinY']."-".$stat['MaxX'].",".$stat['MaxY']). ' | '.PHP_EOL; $result .= '' .$stat['Score']. ' | '.PHP_EOL; } } else { $result .= '
| ' .translate('NoStatisticsRecorded'). ' | '.PHP_EOL; $result .= '|||||||||