diff --git a/web/zm_html_view_timeline.php b/web/zm_html_view_timeline.php index a21cd5943..933117210 100644 --- a/web/zm_html_view_timeline.php +++ b/web/zm_html_view_timeline.php @@ -32,7 +32,7 @@ if ( !isset($mouseover) ) $mode = "overlay"; if ( !isset($mode) ) - $mode = "split"; + $mode = "overlay"; $min_event_width = 5; $max_event_width = 20; @@ -199,9 +199,7 @@ $scales = array( ); $maj_x_scale = getDateScale( $scales, $range, $chart['grid']['x']['major']['min'], $chart['grid']['x']['major']['max'] ); -//$min_x_scale = getDateScale( $scales, $range, $chart['grid']['x']['minor']['min'], $chart['grid']['x']['minor']['max'] ); //print_r( $maj_x_scale ); -//print_r( $min_x_scale ); // Adjust the range etc for scale $min_time_t -= $min_time_t%($maj_x_scale['factor']*$maj_x_scale['align']); @@ -716,16 +714,9 @@ function eventWindow(Url,Name,Width,Height) { var Win = window.open(Url,Name,"resizable,width="+Width+",height="+Height ); } -function filterWindow(Url,Name) -{ - var Win = window.open(Url,Name,"resizable,scrollbars,width== $jws['filter']['w'] ?>,height== $jws['filter']['h'] ?>"); -} function closeWindow() { window.close(); - // This is a hack. The only way to close an existing window is to try and open it! - var filterWindow = window.open( "= $PHP_SELF ?>?view=none", 'zmFilter', 'width=1,height=1' ); - filterWindow.close(); } //var width = document.screen.availWidth; //var height = document.screen.availHeight; @@ -872,26 +863,26 @@ function loadEventImage( image_path, image_label, image_link, image_width, image $max_event_label_height?$max_event_label_height:$chart['graph']['event_bar_height']; -$chart['graph']['activity_height'] = ($graph_height - $chart['graph']['events_height']); -$chart['data']['y']['density'] = $chart['data']['y']['range']/$chart['graph']['activity_height']; + else + { + $chart['graph']['event_bar_height'] = $max_event_bar_height; + $chart['graph']['events_height'] = $max_event_bar_height; + } + $chart['graph']['activity_height'] = ($graph_height - $chart['graph']['events_height']); + $chart['data']['y']['density'] = $chart['data']['y']['range']/$chart['graph']['activity_height']; ?> #ChartBox #ChartPanel #Activity { @@ -905,10 +896,10 @@ $chart['data']['y']['density'] = $chart['data']['y']['range']/$chart['graph']['a margin: auto; } #ChartBox #ChartPanel #Events= $monitor_id ?> { position: absolute; @@ -921,15 +912,98 @@ foreach ( array_keys($monitor_ids) as $monitor_id ) margin: auto; background-color: #fcfcfc; border-bottom: 1px solid lightgrey; } + + +#ChartBox #ChartPanel #Activity= $monitor_id ?> { + position: absolute; + text-align: center; + vertical-align: top; + top: = $top ?>px; + width: = $chart['graph']['width'] ?>px; + height: = $chart['graph']['activity_bar_height'] ?>px; + padding: 0px; + margin: auto; + + border-bottom: 1px solid lightgrey; + +} +#ChartBox #ChartPanel #Events= $monitor_id ?> { + position: absolute; + text-align: center; + vertical-align: middle; + top: = $top+$chart['graph']['activity_bar_height']+1 ?>px; + width: = $chart['graph']['width'] ?>px; + height: = $chart['graph']['event_bar_height'] ?>px; + padding: 0px; + margin: auto; + background-color: #fcfcfc; + + border-bottom: 1px solid black; + +} + div.activity= $monitor_id ?> { position: absolute; bottom: 0px; @@ -945,8 +1019,6 @@ div.event= $monitor_id ?> { background-color: = $monitors[$monitor_id]['WebColour'] ?>; } #ChartBox #Range { @@ -985,32 +1057,6 @@ div.majlabelx { font-weight: normal; } -div.mingridx { - position: absolute; - z-index: 1; - top: 0px; - width: 1px; - height: = $chart['graph']['activity_height'] ?>px; - border-left: dotted 1px lightgrey; -} -div.majtickx { - position: absolute; - z-index: 0; - bottom: -3px; - width: 1px; - height: 3px; - border-left: solid 1px lightgrey; -} -div.minlabelx { - position: absolute; - text-align: center; - z-index: 0; - bottom: -15px; - width: 20px; - font-size: 7px; - font-weight: normal; -} - div.majgridy { position: absolute; z-index: 1; @@ -1074,41 +1120,83 @@ foreach( array_keys($mon_event_slots) as $monitor_id )