zones can now list multiple monitors so populate a listof monitors with json data

This commit is contained in:
Isaac Connor 2020-08-31 10:13:30 -04:00
parent f00f9ead79
commit fa18887f5c
1 changed files with 7 additions and 5 deletions

View File

@ -1,8 +1,10 @@
<?php <?php
global $connkey; global $monitors;
global $monitor; ?>
var monitors = new Array();
<?php
foreach ( $monitors as $monitor ) {
echo 'monitors['.$monitor->Id().'] = '.json_encode($monitor).';'.PHP_EOL;
}
?> ?>
var connKey = '<?php echo $connkey ?>';
var monitorUrl = '<?php echo ( $monitor->UrlToIndex() ) ?>';
var CMD_QUIT = <?php echo CMD_QUIT ?>; var CMD_QUIT = <?php echo CMD_QUIT ?>;