spacing
This commit is contained in:
parent
afa31842b5
commit
ba8dc2059d
|
@ -44,12 +44,12 @@ foreach( $displayMonitors as &$row ) {
|
|||
if ( isset($_REQUEST['mid']) && $row['Id'] == $_REQUEST['mid'] )
|
||||
$monIdx = count($monitors);
|
||||
|
||||
$row['ScaledWidth'] = reScale( $row['Width'], $row['DefaultScale'], ZM_WEB_DEFAULT_SCALE );
|
||||
$row['ScaledHeight'] = reScale( $row['Height'], $row['DefaultScale'], ZM_WEB_DEFAULT_SCALE );
|
||||
$row['PopupScale'] = reScale( SCALE_BASE, $row['DefaultScale'], ZM_WEB_DEFAULT_SCALE );
|
||||
$row['ScaledWidth'] = reScale($row['Width'], $row['DefaultScale'], ZM_WEB_DEFAULT_SCALE);
|
||||
$row['ScaledHeight'] = reScale($row['Height'], $row['DefaultScale'], ZM_WEB_DEFAULT_SCALE);
|
||||
$row['PopupScale'] = reScale(SCALE_BASE, $row['DefaultScale'], ZM_WEB_DEFAULT_SCALE);
|
||||
|
||||
$row['connKey'] = generateConnKey();
|
||||
$monitors[] = new Monitor( $row );
|
||||
$monitors[] = new Monitor($row);
|
||||
} # end foreach Monitor
|
||||
|
||||
if ( $monitors ) {
|
||||
|
@ -63,14 +63,14 @@ if ( $monitors ) {
|
|||
}
|
||||
|
||||
noCacheHeaders();
|
||||
xhtmlHeaders(__FILE__, translate('CycleWatch') );
|
||||
xhtmlHeaders(__FILE__, translate('CycleWatch'));
|
||||
?>
|
||||
<body>
|
||||
<div id="page">
|
||||
<?php echo $navbar = getNavBarHTML(); ?>
|
||||
<?php echo $navbar = getNavBarHTML(); ?>
|
||||
<div id="header">
|
||||
<div id="headerButtons">
|
||||
<?php if ( $mode == "stream" ) { ?>
|
||||
<?php if ( $mode == 'stream' ) { ?>
|
||||
<a href="?view=<?php echo $view ?>&mode=still&mid=<?php echo $monitor ? $monitor->Id() : '' ?>"><?php echo translate('Stills') ?></a>
|
||||
<?php } else { ?>
|
||||
<a href="?view=<?php echo $view ?>&mode=stream&mid=<?php echo $monitor ? $monitor->Id() : '' ?>"><?php echo translate('Stream') ?></a>
|
||||
|
@ -84,7 +84,7 @@ xhtmlHeaders(__FILE__, translate('CycleWatch') );
|
|||
<div id="imageFeed">
|
||||
<?php
|
||||
if ( $monitor ) {
|
||||
echo getStreamHTML( $monitor, array( 'scale'=>$scale, 'mode'=>$mode ) );
|
||||
echo getStreamHTML($monitor, array('scale'=>$scale, 'mode'=>$mode));
|
||||
} else {
|
||||
echo "There are no monitors to view.";
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
function nextCycleView() {
|
||||
window.location.replace( '?view=cycle&mid='+nextMid+'&mode='+mode, cycleRefreshTimeout );
|
||||
window.location.replace('?view=cycle&mid='+nextMid+'&mode='+mode, cycleRefreshTimeout);
|
||||
}
|
||||
|
||||
function initCycle() {
|
||||
nextCycleView.periodical( cycleRefreshTimeout );
|
||||
nextCycleView.periodical(cycleRefreshTimeout);
|
||||
}
|
||||
|
||||
window.addEvent( 'domready', initCycle );
|
||||
window.addEvent('domready', initCycle);
|
||||
|
|
|
@ -37,7 +37,6 @@ if ( ! visibleMonitor($mid) ) {
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
$monitor = new Monitor($mid);
|
||||
|
||||
#Whether to show the controls button
|
||||
|
@ -68,7 +67,7 @@ xhtmlHeaders( __FILE__, $monitor->Name().' - '.translate('Feed') );
|
|||
<div id="monitorName"><?php echo $monitor->Name() ?></div>
|
||||
<div id="menuControls">
|
||||
<?php
|
||||
if ( canView( 'Control' ) && $monitor->Type() == 'Local' ) {
|
||||
if ( canView('Control') && $monitor->Type() == 'Local' ) {
|
||||
?>
|
||||
<div id="settingsControl"><?php echo makePopupLink( '?view=settings&mid='.$monitor->Id(), 'zmSettings'.$monitor->Id(), 'settings', translate('Settings'), true, 'id="settingsLink"' ) ?></div>
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue