2008-07-14 21:54:50 +08:00
|
|
|
//
|
|
|
|
// Import constants
|
|
|
|
//
|
2014-12-05 07:44:23 +08:00
|
|
|
var CMD_NONE = <?php echo CMD_NONE ?>;
|
|
|
|
var CMD_PAUSE = <?php echo CMD_PAUSE ?>;
|
|
|
|
var CMD_PLAY = <?php echo CMD_PLAY ?>;
|
|
|
|
var CMD_STOP = <?php echo CMD_STOP ?>;
|
|
|
|
var CMD_FASTFWD = <?php echo CMD_FASTFWD ?>;
|
|
|
|
var CMD_SLOWFWD = <?php echo CMD_SLOWFWD ?>;
|
|
|
|
var CMD_SLOWREV = <?php echo CMD_SLOWREV ?>;
|
|
|
|
var CMD_FASTREV = <?php echo CMD_FASTREV ?>;
|
|
|
|
var CMD_ZOOMIN = <?php echo CMD_ZOOMIN ?>;
|
|
|
|
var CMD_ZOOMOUT = <?php echo CMD_ZOOMOUT ?>;
|
|
|
|
var CMD_PAN = <?php echo CMD_PAN ?>;
|
|
|
|
var CMD_SCALE = <?php echo CMD_SCALE ?>;
|
|
|
|
var CMD_PREV = <?php echo CMD_PREV ?>;
|
|
|
|
var CMD_NEXT = <?php echo CMD_NEXT ?>;
|
|
|
|
var CMD_SEEK = <?php echo CMD_SEEK ?>;
|
|
|
|
var CMD_QUERY = <?php echo CMD_QUERY ?>;
|
2008-07-14 21:54:50 +08:00
|
|
|
|
2014-12-05 07:44:23 +08:00
|
|
|
var SCALE_BASE = <?php echo SCALE_BASE ?>;
|
2008-07-14 21:54:50 +08:00
|
|
|
|
|
|
|
//
|
|
|
|
// PHP variables to JS
|
|
|
|
//
|
2014-12-05 07:44:23 +08:00
|
|
|
var connKey = '<?php echo $connkey ?>';
|
2008-07-14 21:54:50 +08:00
|
|
|
|
2011-02-08 22:30:59 +08:00
|
|
|
var eventData = {
|
2016-10-13 03:39:53 +08:00
|
|
|
Id: '<?php echo $Event->Id() ?>',
|
|
|
|
MonitorId: '<?php echo $Event->MonitorId() ?>',
|
|
|
|
Width: '<?php echo $Event->Width() ?>',
|
|
|
|
Height: '<?php echo $Event->Height() ?>',
|
2017-10-22 09:57:24 +08:00
|
|
|
Length: '<?php echo $Event->Length() ?>',
|
|
|
|
StartTime: '<?php echo $Event->StartTime() ?>',
|
|
|
|
EndTime: '<?php echo $Event->EndTime() ?>',
|
2017-11-12 00:19:31 +08:00
|
|
|
Frames: '<?php echo $Event->Frames() ?>',
|
2017-10-22 09:57:24 +08:00
|
|
|
MonitorName: '<?php echo $Monitor->Name() ?>'
|
2008-07-14 21:54:50 +08:00
|
|
|
};
|
|
|
|
|
2017-09-30 09:49:58 +08:00
|
|
|
var filterQuery = '<?php echo isset($filterQuery)?validJsStr(htmlspecialchars_decode($filterQuery)):'' ?>';
|
|
|
|
var sortQuery = '<?php echo isset($sortQuery)?validJsStr(htmlspecialchars_decode($sortQuery)):'' ?>';
|
2008-07-14 21:54:50 +08:00
|
|
|
|
2017-11-12 00:19:31 +08:00
|
|
|
var rates = <?php echo json_encode(array_keys($rates)) ?>;
|
2017-10-22 09:57:24 +08:00
|
|
|
var scale = "<?php echo $scale ?>";
|
|
|
|
var LabelFormat = "<?php echo validJsStr($Monitor->LabelFormat())?>";
|
|
|
|
|
2014-12-05 07:44:23 +08:00
|
|
|
var canEditEvents = <?php echo canEdit( 'Events' )?'true':'false' ?>;
|
|
|
|
var streamTimeout = <?php echo 1000*ZM_WEB_REFRESH_STATUS ?>;
|
2008-07-14 21:54:50 +08:00
|
|
|
|
2014-12-05 07:44:23 +08:00
|
|
|
var canStreamNative = <?php echo canStreamNative()?'true':'false' ?>;
|
2017-11-22 11:49:27 +08:00
|
|
|
var streamMode = '<?php echo $streamMode ?>';
|
2008-07-14 21:54:50 +08:00
|
|
|
|
|
|
|
//
|
|
|
|
// Strings
|
|
|
|
//
|
2015-05-10 21:10:30 +08:00
|
|
|
var deleteString = "<?php echo translate('Delete') ?>";
|
|
|
|
var causeString = "<?php echo translate('AttrCause') ?>";
|