diff --git a/web/zm_html_view_timeline.php b/web/zm_html_view_timeline.php index 10c4926e5..17f7c9d91 100644 --- a/web/zm_html_view_timeline.php +++ b/web/zm_html_view_timeline.php @@ -162,12 +162,28 @@ elseif ( isset($min_time) && isset($max_time) ) $mid_time = date( "Y-m-d H:i:s", $mid_time_t ); } -if ( !isset($min_time) || !isset($max_time) ) +if ( isset($min_time) && isset($max_time) ) +{ + $temp_min_time = $temp_max_time = $temp_expandable = false; + extractDatetimeRange( $tree, $temp_min_time, $temp_max_time, $temp_expandable ); + $filter_sql = parseTreeToSQL( $tree ); + //echo $filter_sql; + //echo '
'; + + if ( $filter_sql ) + { + $filter_sql = " and $filter_sql"; + $events_sql .= $filter_sql; + } +} +else { //$filter_query = parseTreeToQuery( $tree ); //echo $filter_query; //echo '
'; $filter_sql = parseTreeToSQL( $tree ); + $temp_min_time = $temp_max_time = $temp_expandable = false; + extractDatetimeRange( $tree, $temp_min_time, $temp_max_time, $temp_expandable ); //echo $filter_sql; //echo '
'; @@ -200,8 +216,6 @@ if ( !isset($min_time) || !isset($max_time) ) $mid_time = date( "Y-m-d H:i:s", $mid_time_t ); } -$temp_min_time = $temp_max_time = $temp_expandable = false; -extractDatetimeRange( $tree, $temp_min_time, $temp_max_time, $temp_expandable ); //echo "MnT: $temp_min_time, MxT: $temp_max_time, ExP: $temp_expandable
"; appendDatetimeRange( $tree, $min_time, $max_time ); @@ -1146,9 +1160,9 @@ div.zoom {
- <<   - -   - >> + <<   + -   + >>
No Event