'; } } $html[] = ''; // So we ge a trailing \n return implode(PHP_EOL, $html); } function output_script_if_exists($files) { global $skin; $html = array(); foreach ( $files as $file ) { $html[] = ''; } $html[] = ''; // So we ge a trailing \n return implode(PHP_EOL, $html); } function output_cache_busted_stylesheet_links($files) { $html = array(); foreach ( $files as $file ) { $html[] = ''; } if ( ! count($html) ) { ZM\Warning("No files found for $files"); } $html[] = ''; // So we ge a trailing \n return implode(PHP_EOL, $html); } ?>
' .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 .= '