From 1ea1852476d85f355219a0156ef3da7fc13adb03 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 29 Mar 2016 11:52:25 -0400 Subject: [PATCH] Do some Storage Areas support --- web/skins/classic/views/montagereview.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/skins/classic/views/montagereview.php b/web/skins/classic/views/montagereview.php index b9b5765fc..a6a8a73c0 100644 --- a/web/skins/classic/views/montagereview.php +++ b/web/skins/classic/views/montagereview.php @@ -100,6 +100,8 @@ if ( !canView( 'Events' ) ) return; } +require_once( 'includes/Monitor.php' ); + if ( !empty($_REQUEST['group']) ) { $group = $_REQUEST['group']; @@ -117,7 +119,7 @@ else // Note we round up just a bit on the end time as otherwise you get gaps, like 59.78 to 00 in the next second, which can give blank frames when moved through slowly. $eventsSql = " - select E.Id,E.Name,UNIX_TIMESTAMP(E.StartTime) as StartTimeSecs, + select E.Id,E.Name,E.StorageId,UNIX_TIMESTAMP(E.StartTime) as StartTimeSecs, case when E.EndTime is null then (Select UNIX_TIMESTAMP(DATE_ADD(E.StartTime, Interval max(Delta)+0.5 Second)) from Frames F where F.EventId=E.Id) else UNIX_TIMESTAMP(E.EndTime) end as CalcEndTimeSecs, E.Length, @@ -553,13 +555,12 @@ function SetImageSource(monId,val) else { var zeropad = ; - for(var i=0; i= eStartSecs[i] && val <= eEndSecs[i]) { var frame=parseInt((val - eStartSecs[i])/(eEndSecs[i]-eStartSecs[i])*eventFrames[i])+1; -// img = ePath[i] + zeropad.substr(frame.toString().length) + frame.toString() + "-capture.jpg"; - img = "index.php?view=image&path=" + ePath[i].substring(6) + zeropad.substr(frame.toString().length) + frame.toString() + "-capture.jpg" + "&width=" + monitorCanvasObj[monId].width + "&height=" + monitorCanvasObj[monId].height; + img = "index.php?view=image&eid=" + eId[i] + '&fid='+frame + "&width=" + monitorCanvasObj[monId].width + "&height=" + monitorCanvasObj[monId].height; return img; } }