From 515fa5eda6a96a57a10ea2526f59cbcbb34e34c4 Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 4 Nov 2005 15:39:18 +0000 Subject: [PATCH] Improvements to timeline integration. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1541 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_funcs.php | 4 +- web/zm_html_view_filter.php | 12 +- web/zm_html_view_timeline.php | 570 ++++++++++++++++++++++++++++++++-- 3 files changed, 555 insertions(+), 31 deletions(-) diff --git a/web/zm_funcs.php b/web/zm_funcs.php index 46a00b30a..d330e333d 100644 --- a/web/zm_funcs.php +++ b/web/zm_funcs.php @@ -912,10 +912,8 @@ function parseFilter( $save_to_session=false ) case 'TotScore': case 'AvgScore': case 'MaxScore': - $filter_sql .= "E.".$$attr_name; - break; case 'Archived': - $filter_sql .= "E.Archived = ".$$value_name; + $filter_sql .= "E.".$$attr_name; break; case 'DiskPercent': $filter_sql .= getDiskPercent(); diff --git a/web/zm_html_view_filter.php b/web/zm_html_view_filter.php index 4ff2d782a..8fd46017f 100644 --- a/web/zm_html_view_filter.php +++ b/web/zm_html_view_filter.php @@ -53,8 +53,8 @@ $conjunction_types = array( 'and' => $zmSlangConjAnd, 'or' => $zmSlangConjOr ); -$obracket_types = array( '' => '' ); -$cbracket_types = array( '' => '' ); +$obracket_types = array( '0' => '' ); +$cbracket_types = array( '0' => '' ); for ( $i = 1; $i <= ceil(($trms-1)/2); $i++ ) { $obracket_types[$i] = str_repeat( "(", $i ); @@ -127,7 +127,7 @@ if ( !$sort_field )