2011-06-21 17:19:10 +08:00
|
|
|
<?php
|
|
|
|
//
|
|
|
|
// ZoneMinder web log view file, $Date: 2010-02-23 09:10:36 +0000 (Tue, 23 Feb 2010) $, $Revision: 3030 $
|
|
|
|
// Copyright (C) 2001-2008 Philip Coombes
|
|
|
|
//
|
|
|
|
// 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.
|
2011-06-21 17:19:10 +08:00
|
|
|
//
|
|
|
|
|
2018-05-17 02:17:57 +08:00
|
|
|
if ( !canView('System') ) {
|
|
|
|
$view = 'error';
|
|
|
|
return;
|
2011-06-21 17:19:10 +08:00
|
|
|
}
|
|
|
|
|
2020-08-03 08:25:24 +08:00
|
|
|
xhtmlHeaders(__FILE__, translate('SystemLog'));
|
2011-06-21 17:19:10 +08:00
|
|
|
?>
|
|
|
|
<body>
|
2020-09-20 01:59:15 +08:00
|
|
|
<?php echo getNavBarHTML() ?>
|
2020-12-02 21:47:57 +08:00
|
|
|
<div id="page" class="px-3 table-responsive-sm">
|
2020-10-03 02:26:35 +08:00
|
|
|
|
|
|
|
<div id="logSummary" class="text-center">
|
|
|
|
<?php echo translate('State') ?>: <span id="logState"></span> -
|
|
|
|
<?php echo translate('Total') ?>: <span id="totalLogs"></span> -
|
|
|
|
<?php echo translate('Available') ?>: <span id="availLogs"></span> -
|
|
|
|
<?php echo translate('Displaying') ?>: <span id="displayLogs"></span> -
|
|
|
|
<?php echo translate('Updated') ?>: <span id="lastUpdate"></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="toolbar">
|
|
|
|
<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 id="refreshBtn" class="btn btn-normal" data-toggle="tooltip" data-placement="top" title="<?php echo translate('Refresh') ?>" ><i class="fa fa-refresh"></i></button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table
|
|
|
|
id="logTable"
|
2020-10-17 20:28:14 +08:00
|
|
|
data-locale="<?php echo i18n() ?>"
|
2020-10-03 02:26:35 +08:00
|
|
|
class="table-sm table-borderless"
|
|
|
|
data-side-pagination="server"
|
|
|
|
data-ajax="ajaxRequest"
|
|
|
|
data-pagination="true"
|
|
|
|
data-page-list="[10, 25, 50, 100, 200, 300, 400, 500]"
|
|
|
|
data-search="true"
|
|
|
|
data-advanced-search="true"
|
|
|
|
data-id-table="advancedTable"
|
|
|
|
data-cookie="true"
|
|
|
|
data-cookie-id-table="zmLogsTable"
|
|
|
|
data-cookie-expire="2y"
|
|
|
|
data-remember-order="true"
|
|
|
|
data-show-columns="true"
|
|
|
|
data-show-export="true"
|
|
|
|
data-toolbar="#toolbar"
|
|
|
|
data-show-fullscreen="true"
|
|
|
|
data-maintain-meta-data="true"
|
|
|
|
data-buttons-class="btn btn-normal"
|
|
|
|
data-show-jump-to="true"
|
|
|
|
data-auto-refresh="true"
|
|
|
|
data-auto-refresh-silent="true"
|
|
|
|
data-show-refresh="true"
|
|
|
|
data-auto-refresh-interval="5"
|
|
|
|
>
|
|
|
|
<thead class="thead-highlight">
|
|
|
|
<tr>
|
|
|
|
<th data-sortable="true" data-field="DateTime"><?php echo translate('DateTime') ?></th>
|
|
|
|
<th data-sortable="true" data-field="Component"><?php echo translate('Component') ?></th>
|
|
|
|
<th data-sortable="false" data-field="Server"><?php echo translate('Server') ?></th>
|
|
|
|
<th data-sortable="true" data-field="Pid"><?php echo translate('Pid') ?></th>
|
|
|
|
<th data-sortable="true" data-field="Code"><?php echo translate('Level') ?></th>
|
|
|
|
<th data-sortable="true" data-field="Message"><?php echo translate('Message') ?></th>
|
|
|
|
<th data-sortable="true" data-field="File"><?php echo translate('File') ?></th>
|
|
|
|
<th data-sortable="true" data-field="Line"><?php echo translate('Line') ?></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
<!-- Row data populated via Ajax -->
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
2020-08-03 08:25:24 +08:00
|
|
|
</div><!--page-->
|
2020-09-03 05:35:13 +08:00
|
|
|
<?php xhtmlFooter() ?>
|