STATE_PREALARM && $last_status <= STATE_PREALARM ); $old_alarm = ( $status <= STATE_PREALARM && $last_status > STATE_PREALARM ); $result = mysql_query( "select * from Monitors where Function != 'None' order by Sequence" ); $monitors = array(); $mon_idx = 0; $max_width = 0; $max_height = 0; while( $row = mysql_fetch_assoc( $result ) ) { if ( !visibleMonitor( $row['Id'] ) ) { continue; } if ( isset($mid) && $row['Id'] == $mid ) $mon_idx = count($monitors); if ( $max_width < $row['Width'] ) $max_width = $row['Width']; if ( $max_height < $row['Height'] ) $max_height = $row['Height']; $monitors[] = $row; } mysql_free_result( $result ); //$monitor = $monitors[$mon_idx]; $next_mid = $mon_idx==(count($monitors)-1)?$monitors[0]['Id']:$monitors[$mon_idx+1]['Id']; $prev_mid = $mon_idx==0?$mon_index[(count($monitors)-1)]['Id']:$monitors[$mon_idx-1]['Id']; $scale = getDeviceScale( $monitor['Width'], $monitor['Height'] ); $image_src = getStreamSrc( array( "mode=single", "monitor=".$monitor['Id'], "scale=".$scale ) ); ?>
= makeLink( "$PHP_SELF?view=events&page=1&filter=1&trms=1&attr1=MonitorId&op1=%3d&val1=".$monitor['Id']."&sort_field=Id&sort_desc=1", $monitor['Name'], canView( 'Events' ) ) ?>: = $status_string ?> - = $fps_string ?> fps
= $zmSlangPrev ?> | = $zmSlangConsole ?> | = $zmSlangNext ?> |