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 Id" ); $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; } //$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']; $device_width = (isset($device)&&!empty($device['width']))?$device['width']:DEVICE_WIDTH; $device_height = (isset($device)&&!empty($device['height']))?$device['height']:DEVICE_HEIGHT; // Allow for margins etc $device_width -= 16; $device_height -= 16; $width_scale = ($device_width*SCALE_SCALE)/$monitor['Width']; $height_scale = ($device_height*SCALE_SCALE)/$monitor['Height']; $scale = (int)(($width_scale<$height_scale)?$width_scale:$height_scale); $image_src = getStreamSrc( array( "mode=single", "monitor=".$monitor['Id'], "scale=".$scale ) ); ?> ZM - <?= $monitor['Name'] ?> - <?= $zmSlangWatch ?>

 -  fps

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