=')." '".$event[$sort_field]."'$filter_sql$mid_sql order by $sort_column ".($sort_order=='asc'?'desc':'asc'); $result = dbQuery( $sql ); while ( $row = dbFetchNext( $result ) ) { if ( $row[Id] == $eid ) { $prev_event = dbFetchNext( $result ); break; } } $sql = "select E.* from Events as E inner join Monitors as M on E.MonitorId = M.Id where $sort_column ".($sort_order=='asc'?'>=':'<=')." '".$event[$sort_field]."'$filter_sql$mid_sql order by $sort_column $sort_order"; $result = dbQuery( $sql ); while ( $row = dbFetchNext( $result ) ) { if ( $row[Id] == $eid ) { $next_event = dbFetchNext( $result ); break; } } $frames_per_page = 15; $frames_per_line = 3; $paged = $event['Frames'] > $frames_per_page; ?> <?= ZM_WEB_TITLE_PREFIX ?> - <?= $zmSlangEvent ?> - <?= $event['Name'] ?>
 
$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 ) { ?>
<< < > >>
=") ) $fraction = sprintf( "%.2F", $scale/100 ); else $fraction = sprintf( "%.2f", $scale/100 ); $event_path = getEventPath( $event ); for ( $frame_id = $lo_frame_id; $frame_id <= $hi_frame_id; $frame_id++, $count++ ) { if ( $count%$frames_per_line == 0 ) { ?> $thumb_image"; else $command = ZM_PATH_NETPBM."/jpegtopnm -dct fast $capt_image | ".ZM_PATH_NETPBM."/pnmscalefixed $fraction | ".ZM_PATH_NETPBM."/ppmtojpeg --dct=fast > $thumb_image"; #exec( escapeshellcmd( $command ) ); exec( $command ); } } $alarm_frame = $alarm_frames[$frame_id]; $img_class = $alarm_frame?"alarm":"normal"; ?>
<?= $frame_id ?>/<?= $alarm_frame?$alarm_frame['Score']:0 ?>