zones can now list multiple monitors so populate a listof monitors with json data
This commit is contained in:
parent
f00f9ead79
commit
fa18887f5c
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
global $connkey;
|
||||
global $monitor;
|
||||
global $monitors;
|
||||
?>
|
||||
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 ?>;
|
||||
|
||||
|
|
Loading…
Reference in New Issue