From 9fcf0a31cbe03495f8a28bdc1fb8422fb35b8c03 Mon Sep 17 00:00:00 2001 From: stan Date: Sat, 14 Jan 2006 22:48:32 +0000 Subject: [PATCH] Revamped options slightly. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1815 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_funcs.php | 4 ++-- web/zm_html_view_event.php | 8 ++++---- web/zm_html_view_filter.php | 4 ++-- web/zm_html_view_montagefeed.php | 6 +++--- web/zm_html_view_options.php | 6 +++--- web/zm_html_view_watchfeed.php | 6 +++--- web/zm_lang_en_gb.php | 1 + 7 files changed, 18 insertions(+), 17 deletions(-) diff --git a/web/zm_funcs.php b/web/zm_funcs.php index 321f89735..c6a152da1 100644 --- a/web/zm_funcs.php +++ b/web/zm_funcs.php @@ -1015,8 +1015,8 @@ function parseSort( $save_to_session=false, $term_sep='&' ) if ( !isset($sort_field) ) { - $sort_field = ZM_EVENT_SORT_FIELD; - $sort_asc = (ZM_EVENT_SORT_ORDER == "asc"); + $sort_field = ZM_WEB_EVENT_SORT_FIELD; + $sort_asc = (ZM_WEB_EVENT_SORT_ORDER == "asc"); } switch( $sort_field ) { diff --git a/web/zm_html_view_event.php b/web/zm_html_view_event.php index 3ee47a6c4..a701eb581 100644 --- a/web/zm_html_view_event.php +++ b/web/zm_html_view_event.php @@ -373,10 +373,10 @@ if ( $mode == "stream" ) ?> ? $start_section = 0; if ( !empty($fid) ) { - $start_section = (int)floor(($fid * $panel_sections)/($event['Frames']+1)); + $start_section = (int)floor((($fid-1) * $panel_sections)/($event['Frames']+1)); } if ( ZM_WEB_SHOW_PROGRESS ) { diff --git a/web/zm_html_view_filter.php b/web/zm_html_view_filter.php index 86b527406..53ffe3418 100644 --- a/web/zm_html_view_filter.php +++ b/web/zm_html_view_filter.php @@ -138,8 +138,8 @@ $sort_dirns = array( ); if ( !$sort_field ) { - $sort_field = ZM_EVENT_SORT_FIELD; - $sort_asc = (ZM_EVENT_SORT_ORDER == "asc"); + $sort_field = ZM_WEB_EVENT_SORT_FIELD; + $sort_asc = (ZM_WEB_EVENT_SORT_ORDER == "asc"); } ?> diff --git a/web/zm_html_view_montagefeed.php b/web/zm_html_view_montagefeed.php index 68ef71e9a..0d4f500bc 100644 --- a/web/zm_html_view_montagefeed.php +++ b/web/zm_html_view_montagefeed.php @@ -106,10 +106,10 @@ window.setTimeout( "window.location.reload(true)",