Control(); $cmd = $control->CanFocusCon() ? 'data-on-mousedown="controlCmd" data-on-mouseup="controlCmd"' : 'data-on-click="controlCmd"'; ob_start(); ?>
CanAutoFocus() ) { ?>
Control(); $cmd = $control->CanZoomCon() ? 'data-on-mousedown="controlCmd" data-on-mouseup="controlCmd"' : 'data-on-click="controlCmd"'; ob_start(); ?>
CanAutoZoom() ) { ?>
Control(); $cmd = $control->CanIrisCon() ? 'data-on-mousedown="controlCmd" data-on-mouseup="controlCmd"' : 'data-on-click="controlCmd"'; ob_start(); ?>
CanAutoIris() ) { ?>
Control(); $cmd = $control->CanWhiteCon() ? 'data-on-mousedown="controlCmd" data-on-mouseup="controlCmd"' : 'data-on-click="controlCmd"'; ob_start(); ?>
CanAutoWhite() ) { ?>
Control(); // One button per sound the device holds, numbered by the file id the // firmware expects, the same way presets are addressed. The id is carried // in the command name (audioPlay12) because the control request has no // general way to attach a parameter to a button. $min = $control->MinAudioFile(); $max = $control->MaxAudioFile(); ob_start(); ?>
CanAudioPlay() ) { if ( is_numeric($min) && is_numeric($max) && $min <= $max ) { ?>
CanAudioVolume() ) { ?>
Control(); ob_start(); ?>
CanPan(); $hasTilt = $control->CanTilt(); $hasDiag = $hasPan && $hasTilt && $control->CanMoveDiag(); $cmd = $control->CanMoveCon() ? 'data-on-mousedown="controlCmd" data-on-mouseup="controlCmd" ' : 'data-on-click="controlCmd" '; ?>
Control(); // MAX_PRESETS IS PER LINE $max_presets = 12; $sql = 'SELECT * FROM ControlPresets WHERE MonitorId = ?'; $labels = array(); foreach ( dbFetchAll($sql, NULL, array($monitor->Id())) as $row ) { $labels[$row['Preset']] = $row['Label']; } $presetBreak = (int)(($control->NumPresets()+1)/((int)(($control->NumPresets()-1)/$max_presets)+1)); ob_start(); ?>
NumPresets(); $i++ ) { ?>
HasHomePreset() ) { ?> CanSetPresets() ) { ?>
Control(); ob_start(); ?>
CanWake() ) { ?> CanSleep() ) { ?> CanReset() ) { ?> CanReboot() ) { ?>
$monitor->Id(), 'TriggerOn'=>'Manual', 'Enabled'=>1), array('order'=>'`Sequence`,`Id`')); if ( !count($actions) ) return ''; ob_start(); ?>
TargetMonitor(); if ( !$target or !canView('Control', $target->Id()) ) continue; $label = $action->Label() ? $action->Label() : translate('Action'.$action->ActionType()).' - '.$target->Name(); ?>
Control(); $actionControls = monitorActionControls($monitor); // A monitor with manual actions but no control of its own still gets a // panel; there is simply nothing but the action buttons in it. if ( !$control or !$control->Id() ) { if ( $actionControls === '' ) return ''; return '
'.$actionControls.'
'; } $cmds = $control->commands(); ob_start(); ?>
CanFocus() ) echo controlFocus($monitor, $cmds); if ( $control->CanZoom() ) echo controlZoom($monitor, $cmds); if ( $control->CanIris() ) echo controlIris($monitor, $cmds); if ( $control->CanWhite() ) echo controlWhite($monitor, $cmds); if ( $control->CanLight() ) echo controlLight($monitor, $cmds); if ( $control->CanIndicatorLight() ) echo controlIndicatorLight($monitor, $cmds); if ( $control->CanAudioPlay() || $control->CanAudioVolume() ) echo controlAudio($monitor, $cmds); if ( $control->CanMove() ) { ?>
CanWake() || $control->CanSleep() || $control->CanReset() || $control->CanReboot() ) echo controlPower($monitor, $cmds); if ( $control->HasPresets() ) echo controlPresets($monitor, $cmds); ?>