=')." '".$event[preg_replace( '/^.*\./', '', $sort_column )]."'$filter_sql$mid_sql order by $sort_column ".($sort_order=='asc'?'desc':'asc'); $result = mysql_query( $sql ); if ( !$result ) die( mysql_error() ); while ( $row = mysql_fetch_assoc( $result ) ) { if ( $row['Id'] == $eid ) { $prev_event = mysql_fetch_assoc( $result ); break; } } mysql_free_result( $result ); $sql = "select E.* from Events as E inner join Monitors as M on E.MonitorId = M.Id where $sort_column ".($sort_order=='asc'?'>=':'<=')." '".$event[preg_replace( '/^.*\./', '', $sort_column )]."'$filter_sql$mid_sql order by $sort_column $sort_order"; $result = mysql_query( $sql ); if ( !$result ) die( mysql_error() ); while ( $row = mysql_fetch_assoc( $result ) ) { if ( $row['Id'] == $eid ) { $next_event = mysql_fetch_assoc( $result ); break; } } mysql_free_result( $result ); if ( !isset( $rate ) ) $rate = reScale( RATE_BASE, $event['DefaultRate'], ZM_WEB_DEFAULT_RATE ); if ( !isset( $scale ) ) $scale = reScale( SCALE_BASE, $event['DefaultScale'], ZM_WEB_DEFAULT_SCALE ); if ( $mode == "still" && $scale < SCALE_BASE ) $scale = SCALE_BASE; $frames_per_line = ZM_WEB_FRAMES_PER_LINE; $frames_per_page = $frames_per_line * ZM_WEB_FRAME_LINES; $paged = $event['Frames'] > $frames_per_page; if ( $mode == "stream" ) { $sql = "select max(Delta)-min(Delta) as Duration from Frames where EventId = '$eid'"; $result = mysql_query( $sql ); if ( !$result ) die( mysql_error() ); $frame_data = mysql_fetch_assoc( $result ); mysql_free_result( $result ); $frame_data['RealDuration'] = ($frame_data['Duration']*RATE_BASE)/$rate; $panel_init_color = '#eeeeee'; $panel_done_color = '#aaaaaa'; $panel_border_color = '#666666'; $panel_divider_color = '#999999'; $panel_sections = 40; $panel_section_width = (int)ceil(reScale($event['Width'],$scale)/$panel_sections); $panel_width = ($panel_sections*$panel_section_width-1); //$panel_section_width = 10; //$panel_sections = ((int)($event['Width']/$panel_section_width))+1; //$panel_width = $panel_sections*$panel_section_width; $panel_timeout = (int)((($frame_data['RealDuration']+1)*1000)/$panel_sections); if ( !isset( $play ) ) $play = false; } ob_start(); ?> <?= ZM_WEB_TITLE_PREFIX ?> - <?= $zmSlangEvent ?> - <?= $event['Name'] ?>
">/ ">//
disabled>
Learn Pref: 
:    :
$pages ) $page = $pages; if ( $page > 1 ) { if ( false && $page > 2 ) { ?> <<  <     - $pages ) break; $pages_used[$new_page] = true; array_push( $new_pages, $new_page ); } if ( !isset($pages_used[$pages]) ) array_push( $new_pages, $pages ); foreach ( $new_pages as $new_page ) { ?>    >  >>
<?= $frame['FrameId'] ?>/<?= $frame['Type']=='alarm'?$frame['Score']:0 ?>