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 ) ); ?> <?= ZM_WEB_TITLE_PREFIX ?> - <?= $monitor['Name'] ?> - <?= $zmSlangWatch ?>

 -  fps

<?= $monitor['Name'] ?>