zoneminder/web/skins/classic/views/js/timeline.js.php

24 lines
686 B
PHP
Raw Normal View History

var filterQuery = '<?php echo validJsStr($filterQuery) ?>';
<?php
$jsMonitors = array();
2017-10-19 00:44:07 +08:00
$fields = array('Name', 'LabelFormat', 'SaveJPEGs', 'VideoWriter');
2017-07-14 05:35:06 +08:00
foreach ( $monitors as $monitor ) {
$jsMonitor = array();
foreach ($fields as $field) {
$jsMonitor[$field] = $monitor->$field();
2017-07-14 05:35:06 +08:00
}
$jsMonitors[$monitor->Id()] = $jsMonitor;
}
?>
var monitors = <?php echo json_encode($jsMonitors) ?>;
2015-05-10 21:10:30 +08:00
var archivedString = "<?php echo translate('Archived') ?>";
var minTime = '<?php echo $minTime?>';
var midTime = '<?php echo $midTime?>';
var maxTime = '<?php echo $maxTime?>';
var range = '<?php echo $range?>';
var zoomout_range = '<?php (int)($range*$majXScale['zoomout']) ?>';