$max_sequence ) { $max_sequence = $row['Sequence']; } $row['zmc'] = zmcStatus( $row ); $row['zma'] = zmaStatus( $row ); $sql = "select count(Id) as ZoneCount from Zones where MonitorId = '".$row['Id']."'"; $result2 = mysql_query( $sql ); if ( !$result2 ) echo mysql_error(); $row2 = mysql_fetch_assoc( $result2 ); $sql = "select count(if(Archived=0,1,NULL)) as EventCount, count(if(Archived,1,NULL)) as ArchEventCount, count(if(StartTime>'$db_now' - INTERVAL 1 HOUR && Archived = 0,1,NULL)) as HourEventCount, count(if(StartTime>'$db_now' - INTERVAL 1 DAY && Archived = 0,1,NULL)) as DayEventCount, count(if(StartTime>'$db_now' - INTERVAL 7 DAY && Archived = 0,1,NULL)) as WeekEventCount, count(if(StartTime>'$db_now' - INTERVAL 1 MONTH && Archived = 0,1,NULL)) as MonthEventCount from Events as E where MonitorId = '".$row['Id']."'"; $result3 = mysql_query( $sql ); if ( !$result3 ) echo mysql_error(); $row3 = mysql_fetch_assoc( $result3 ); if ( $row['Function'] != 'None' ) { $cycle_count++; if ( $max_width < $row['Width'] ) $max_width = $row['Width']; if ( $max_height < $row['Height'] ) $max_height = $row['Height']; } $monitors[] = $row = array_merge( $row, $row2, $row3 ); $seq_id_list[] = $row['Id']; } $last_id = 0; $seq_id_u_list = array(); foreach ( $seq_id_list as $seq_id ) { if ( !empty($last_id) ) { $seq_id_u_list[$seq_id] = $last_id; } $last_id = $seq_id; } $last_id = 0; $seq_id_d_list = array(); foreach ( array_reverse($seq_id_list) as $seq_id ) { if ( !empty($last_id) ) { $seq_id_d_list[$seq_id] = $last_id; } $last_id = $seq_id; } if ( $cycle_count ) { $montage_rows = intval((($cycle_count-1)/ZM_WEB_MONTAGE_MAX_COLS)+1); $montage_cols = intval(ceil($cycle_count/$montage_rows)); } else { $montage_rows = 0; $montage_cols = 0; } $montage_width = ZM_WEB_MONTAGE_WIDTH?ZM_WEB_MONTAGE_WIDTH:$max_width; $montage_height = ZM_WEB_MONTAGE_HEIGHT?ZM_WEB_MONTAGE_HEIGHT:$max_height; ?> <?= ZM_WEB_TITLE_PREFIX ?> - <?= $zmSlangConsole ?>
ZoneMinder - - : / : %
,  
1 ) { ?>  /     
".$monitor['Function']."", canEdit( 'Monitors' ) ) ?> ".$monitor['Device']." (".$monitor['Channel'].")", canEdit( 'Monitors' ) ) ?> ".preg_replace( '/^.*@/', '', $monitor['Host'] )."", canEdit( 'Monitors' ) ) ?> ".preg_replace( '/^.*\//', '', $monitor['Path'] )."", canEdit( 'Monitors' ) ) ?>   ', $monitor['Sequence']>$min_sequence ) ?>', $monitor['Sequence']<$max_sequence ) ?> disabled>
disabled>