$fid, 'Type'=>'Normal', 'Score'=>0 ); } else { $frame = dbFetchOne( 'SELECT * FROM Frames WHERE EventId = ? AND Score = ?', NULL, array( $eid, $event['MaxScore'] ) ); } $Frame = new Frame( $frame ); $maxFid = $event['Frames']; $firstFid = 1; $prevFid = $Frame->FrameId()-1; $nextFid = $Frame->FrameId()+1; $lastFid = $maxFid; $alarmFrame = $Frame->Type()=='Alarm'; if ( isset( $_REQUEST['scale'] ) ) $scale = validInt($_REQUEST['scale']); else $scale = max( reScale( SCALE_BASE, $event['DefaultScale'], ZM_WEB_DEFAULT_SCALE ), SCALE_BASE ); $show = 'capt'; if ( isset($_REQUEST['show']) ) { $show = $_REQUEST['show']; #} else if ( $imageData['hasAnalImage'] ) { #$show = 'anal'; } $imageData = getImageSrc( $event, $frame, $scale, ($show=="capt") ); $imagePath = $imageData['thumbPath']; $eventPath = $imageData['eventPath']; $dImagePath = sprintf( "%s/%0".ZM_EVENT_IMAGE_DIGITS."d-diag-d.jpg", $eventPath, $Frame->FrameId() ); $rImagePath = sprintf( "%s/%0".ZM_EVENT_IMAGE_DIGITS."d-diag-r.jpg", $eventPath, $Frame->FrameId() ); $focusWindow = true; xhtmlHeaders(__FILE__, translate('Frame')." - ".$event['Id']." - ".$Frame->FrameId() ); ?>