|
|
|
@ -65,7 +65,6 @@ foreach ( $layouts as $l ) {
|
|
|
|
|
$layoutsById[$l->Id()] = $l;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
session_start();
|
|
|
|
|
|
|
|
|
|
$layout_id = '';
|
|
|
|
@ -102,6 +101,7 @@ if ( $Layout and ( $Layout->Name() != 'Freeform' ) ) {
|
|
|
|
|
|
|
|
|
|
if ( $scale )
|
|
|
|
|
$options['scale'] = $scale;
|
|
|
|
|
|
|
|
|
|
session_write_close();
|
|
|
|
|
|
|
|
|
|
ob_start();
|
|
|
|
@ -162,9 +162,18 @@ if ( $showZones ) {
|
|
|
|
|
<input type="hidden" name="object" value="MontageLayout"/>
|
|
|
|
|
<input type="hidden" name="action" value="Save"/>
|
|
|
|
|
|
|
|
|
|
<span id="widthControl"><label><?php echo translate('Width') ?>:</label><?php echo htmlSelect( 'width', $widths, $options['width'], 'changeSize(this);' ); ?></span>
|
|
|
|
|
<span id="heightControl"><label><?php echo translate('Height') ?>:</label><?php echo htmlSelect( 'height', $heights, $options['height'], 'changeSize(this);' ); ?></span>
|
|
|
|
|
<span id="scaleControl"><label><?php echo translate('Scale') ?>:</label><?php echo htmlSelect( 'scale', $scales, $scale, 'changeScale(this);' ); ?></span>
|
|
|
|
|
<span id="widthControl">
|
|
|
|
|
<label><?php echo translate('Width') ?>:</label>
|
|
|
|
|
<?php echo htmlSelect('width', $widths, $options['width'], 'changeSize(this);'); ?>
|
|
|
|
|
</span>
|
|
|
|
|
<span id="heightControl">
|
|
|
|
|
<label><?php echo translate('Height') ?>:</label>
|
|
|
|
|
<?php echo htmlSelect('height', $heights, $options['height'], 'changeSize(this);'); ?>
|
|
|
|
|
</span>
|
|
|
|
|
<span id="scaleControl">
|
|
|
|
|
<label><?php echo translate('Scale') ?>:</label>
|
|
|
|
|
<?php echo htmlSelect('scale', $scales, $scale, 'changeScale(this);'); ?>
|
|
|
|
|
</span>
|
|
|
|
|
<span id="layoutControl">
|
|
|
|
|
<label for="layout"><?php echo translate('Layout') ?>:</label>
|
|
|
|
|
<?php echo htmlSelect('zmMontageLayout', $layoutsById, $layout_id, array('onchange'=>'selectLayout(this);', 'id'=>'zmMontageLayout')); ?>
|
|
|
|
@ -187,7 +196,10 @@ foreach ( $monitors as $monitor ) {
|
|
|
|
|
?>
|
|
|
|
|
<div id="monitorFrame<?php echo $monitor->Id() ?>" class="monitorFrame" title="<?php echo $monitor->Id() . ' ' .$monitor->Name() ?>" style="<?php echo $options['width'] ? 'width:'.$options['width'].'px;':''?>">
|
|
|
|
|
<div id="monitor<?php echo $monitor->Id() ?>" class="monitor idle">
|
|
|
|
|
<div id="imageFeed<?php echo $monitor->Id() ?>" class="imageFeed" onclick="createPopup( '?view=watch&mid=<?php echo $monitor->Id() ?>', 'zmWatch<?php echo $monitor->Id() ?>', 'watch', <?php echo reScale( $monitor->Width(), $monitor->PopupScale() ); ?>, <?php echo reScale( $monitor->Height(), $monitor->PopupScale() ); ?> );">
|
|
|
|
|
<div
|
|
|
|
|
id="imageFeed<?php echo $monitor->Id() ?>"
|
|
|
|
|
class="imageFeed"
|
|
|
|
|
onclick="createPopup('?view=watch&mid=<?php echo $monitor->Id() ?>', 'zmWatch<?php echo $monitor->Id() ?>', 'watch', <?php echo reScale( $monitor->Width(), $monitor->PopupScale() ); ?>, <?php echo reScale( $monitor->Height(), $monitor->PopupScale() ); ?> );">
|
|
|
|
|
<?php
|
|
|
|
|
$monitor_options = $options;
|
|
|
|
|
if ( $Positions ) {
|
|
|
|
@ -204,8 +216,14 @@ foreach ( $monitors as $monitor ) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( $monitor->Type() == "WebSite" ) {
|
|
|
|
|
echo getWebSiteUrl( 'liveStream'.$monitor->Id(), $monitor->Path(), reScale( $monitor->Width(), $scale ), reScale( $monitor->Height(), $scale ), $monitor->Name() );
|
|
|
|
|
if ( $monitor->Type() == 'WebSite' ) {
|
|
|
|
|
echo getWebSiteUrl(
|
|
|
|
|
'liveStream'.$monitor->Id(),
|
|
|
|
|
$monitor->Path(),
|
|
|
|
|
reScale($monitor->Width(), $scale),
|
|
|
|
|
reScale($monitor->Height(), $scale),
|
|
|
|
|
$monitor->Name()
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
echo getStreamHTML($monitor, $monitor_options);
|
|
|
|
|
}
|
|
|
|
@ -256,7 +274,9 @@ foreach ( $monitors as $monitor ) {
|
|
|
|
|
?>
|
|
|
|
|
Sorry, your browser does not support inline SVG
|
|
|
|
|
</svg>
|
|
|
|
|
<?php } # end if showZones ?>
|
|
|
|
|
<?php
|
|
|
|
|
} # end if showZones
|
|
|
|
|
?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
if ( (!ZM_WEB_COMPACT_MONTAGE) && ($monitor->Type() != 'WebSite') ) {
|
|
|
|
@ -268,7 +288,7 @@ foreach ( $monitors as $monitor ) {
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
} # end foreach monitor
|
|
|
|
|
?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|