2008-07-14 21:54:50 +08:00
|
|
|
<?php
|
|
|
|
//
|
|
|
|
// ZoneMinder web frames view file, $Date$, $Revision$
|
2008-07-25 17:48:16 +08:00
|
|
|
// Copyright (C) 2001-2008 Philip Coombes
|
2008-07-14 21:54:50 +08:00
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
|
|
|
// as published by the Free Software Foundation; either version 2
|
|
|
|
// of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
2016-12-26 23:23:16 +08:00
|
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2008-07-14 21:54:50 +08:00
|
|
|
//
|
|
|
|
|
2018-11-15 04:54:45 +08:00
|
|
|
if ( !canView('Events') ) {
|
2017-07-06 22:50:07 +08:00
|
|
|
$view = 'error';
|
|
|
|
return;
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
2019-06-17 00:02:00 +08:00
|
|
|
|
2018-11-15 04:54:45 +08:00
|
|
|
require_once('includes/Frame.php');
|
2020-08-20 02:07:51 +08:00
|
|
|
require_once('includes/Filter.php');
|
|
|
|
|
2019-07-08 04:10:53 +08:00
|
|
|
$eid = validInt($_REQUEST['eid']);
|
|
|
|
$Event = new ZM\Event($eid);
|
2008-07-14 21:54:50 +08:00
|
|
|
|
2019-06-07 01:49:24 +08:00
|
|
|
xhtmlHeaders(__FILE__, translate('Frames').' - '.$Event->Id());
|
2008-07-14 21:54:50 +08:00
|
|
|
?>
|
|
|
|
<body>
|
2020-08-23 01:56:31 +08:00
|
|
|
<?php echo getNavBarHTML() ?>
|
|
|
|
<div id="page" class="container-fluid p-3">
|
2020-08-20 01:04:08 +08:00
|
|
|
<!-- Toolbar button placement and styling handled by bootstrap-tables -->
|
|
|
|
<div id="toolbar">
|
2020-08-24 21:23:24 +08:00
|
|
|
<button type="button" id="backBtn" class="btn btn-normal" data-toggle="tooltip" data-placement="top" title="<?php echo translate('Back') ?>" disabled><i class="fa fa-arrow-left"></i></button>
|
|
|
|
<button type="button" id="refreshBtn" class="btn btn-normal" data-toggle="tooltip" data-placement="top" title="<?php echo translate('Refresh') ?>" ><i class="fa fa-refresh"></i></button>
|
2008-07-14 21:54:50 +08:00
|
|
|
</div>
|
2020-08-20 01:04:08 +08:00
|
|
|
|
|
|
|
<!-- Table styling handled by bootstrap-tables -->
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
<table
|
|
|
|
id="framesTable"
|
2020-10-17 20:28:14 +08:00
|
|
|
data-locale="<?php echo i18n() ?>"
|
2020-11-15 04:45:22 +08:00
|
|
|
data-side-pagination="server"
|
|
|
|
data-ajax="ajaxRequest"
|
2020-08-20 01:04:08 +08:00
|
|
|
data-pagination="true"
|
|
|
|
data-show-pagination-switch="true"
|
|
|
|
data-page-list="[10, 25, 50, 100, 200, All]"
|
|
|
|
data-search="true"
|
|
|
|
data-cookie="true"
|
|
|
|
data-cookie-id-table="zmFramesTable"
|
|
|
|
data-cookie-expire="2y"
|
|
|
|
data-remember-order="true"
|
|
|
|
data-show-columns="true"
|
2020-08-21 20:11:57 +08:00
|
|
|
data-show-export="true"
|
2020-08-20 01:04:08 +08:00
|
|
|
data-toolbar="#toolbar"
|
|
|
|
data-show-fullscreen="true"
|
|
|
|
data-maintain-meta-data="true"
|
|
|
|
data-mobile-responsive="true"
|
|
|
|
data-buttons-class="btn btn-normal"
|
2020-08-23 01:45:19 +08:00
|
|
|
data-detail-view="true"
|
|
|
|
data-detail-formatter="detailFormatter"
|
|
|
|
data-show-toggle="true"
|
2020-08-28 03:58:21 +08:00
|
|
|
data-show-jump-to="true"
|
2020-11-15 04:45:22 +08:00
|
|
|
data-show-refresh="true"
|
2020-08-20 01:04:08 +08:00
|
|
|
class="table-sm table-borderless">
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
<!-- Row styling is handled by bootstrap-tables -->
|
2020-08-27 20:42:39 +08:00
|
|
|
<tr>
|
|
|
|
<th class="px-3" data-align="center" data-sortable="false" data-field="EventId"><?php echo translate('EventId') ?></th>
|
2020-09-10 23:05:22 +08:00
|
|
|
<th class="px-3" data-align="center" data-sortable="true" data-field="FrameId"><?php echo translate('FrameId') ?></th>
|
2020-11-15 04:45:22 +08:00
|
|
|
<th class="px-3" data-align="center" data-sortable="true" data-field="Type"><?php echo translate('Type') ?></th>
|
|
|
|
<th class="px-3" data-align="center" data-sortable="true" data-field="TimeStamp"><?php echo translate('TimeStamp') ?></th>
|
|
|
|
<th class="px-3" data-align="center" data-sortable="true" data-field="Delta"><?php echo translate('TimeDelta') ?></th>
|
|
|
|
<th class="px-3" data-align="center" data-sortable="true" data-field="Score"><?php echo translate('Score') ?></th>
|
2020-08-27 20:42:39 +08:00
|
|
|
<th class="px-3" data-align="center" data-sortable="false" data-field="Thumbnail"><?php echo translate('Thumbnail') ?></th>
|
|
|
|
</tr>
|
2020-08-20 01:04:08 +08:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2020-11-15 04:45:22 +08:00
|
|
|
<!-- Row data populated via Ajax -->
|
|
|
|
</tbody>
|
2008-07-14 21:54:50 +08:00
|
|
|
</table>
|
2020-08-20 01:04:08 +08:00
|
|
|
</div>
|
2008-07-14 21:54:50 +08:00
|
|
|
</div>
|
2020-09-03 05:33:56 +08:00
|
|
|
<?php xhtmlFooter() ?>
|