From 31ad2c82559a47b57265336ec5fcd4eb580ada69 Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 24 Sep 2002 09:34:53 +0000 Subject: [PATCH] Addec cycle_count to remove Watch All link when redundant. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@55 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/zm.php b/web/zm.php index c416d2b73..74d3a31fa 100644 --- a/web/zm.php +++ b/web/zm.php @@ -307,6 +307,7 @@ if ( $view == "console" ) $monitors = array(); $max_width = 0; $max_height = 0; + $cycle_count = 0; while( $row = mysql_fetch_assoc( $result ) ) { if ( $max_width < $row[Width] ) $max_width = $row[Width]; @@ -317,6 +318,7 @@ if ( $view == "console" ) echo mysql_error(); $row2 = mysql_fetch_assoc( $result2 ); $monitors[] = array_merge( $row, $row2 ); + if ( $row['Function'] != 'None' ) $cycle_count++; } $sql = "select distinct Device from Monitors order by Device"; @@ -360,7 +362,11 @@ function newWindow(Url,Name,Width,Height) { high medium low ) + 1 ) { ?> Watch All + +  +