replace Function with Recording, Analysing, Capturing

This commit is contained in:
Isaac Connor 2022-02-08 11:22:41 -05:00
parent b005927ea3
commit e7cd63a6ff
1 changed files with 15 additions and 7 deletions

View File

@ -38,7 +38,7 @@ foreach ( $storage_areas as $S ) {
$focusWindow = true; $focusWindow = true;
xhtmlHeaders(__FILE__, translate('Function')); xhtmlHeaders(__FILE__, translate('Monitors'));
getBodyTopHTML(); getBodyTopHTML();
echo getNavBarHTML(); echo getNavBarHTML();
@ -73,19 +73,27 @@ The following monitors will have these settings update when you click Save:<br/>
<?php <?php
} }
?> ?>
<p class="Function"><label><?php echo translate('Function') ?></label> <p class="Capturing"><label><?php echo translate('Capturing') ?></label>
<?php <?php
$options = array(); echo htmlSelect('newMonitor[Capturing]', ZM\Monitor::getCapturingOptions(), $monitor->Capturing());
foreach ( getEnumValues('Monitors', 'Function') as $opt ) {
$options[$opt] = translate('Fn'.$opt);
}
echo htmlSelect('newMonitor[Function]', $options, $monitor->Function());
?> ?>
</p> </p>
<p class="Analysing"><label><?php echo translate('Analysing') ?></label>
<?php
echo htmlSelect('newMonitor[Analysing]', ZM\Monitor::getAnalysingOptions(), $monitor->Analysing());
?>
</p>
<p class="Recording"><label><?php echo translate('Recording') ?></label>
<?php
echo htmlSelect('newMonitor[Recording]', ZM\Monitor::getRecordingOptions(), $monitor->Recording());
?>
</p>
<!--
<p> <p>
<label for="newMonitor[Enabled]"><?php echo translate('Enabled') ?></label> <label for="newMonitor[Enabled]"><?php echo translate('Enabled') ?></label>
<input type="checkbox" name="newMonitor[Enabled]" id="newMonitor[Enabled]" value="1"<?php if ( !empty($monitors[0]->Enabled()) ) { ?> checked="checked"<?php } ?>/> <input type="checkbox" name="newMonitor[Enabled]" id="newMonitor[Enabled]" value="1"<?php if ( !empty($monitors[0]->Enabled()) ) { ?> checked="checked"<?php } ?>/>
</p> </p>
-->
<p> <p>
<label for="newMonitor[Importance]"><?php echo translate('Importance'); echo makeHelpLink('OPTIONS_IMPORTANCE') ?></label> <label for="newMonitor[Importance]"><?php echo translate('Importance'); echo makeHelpLink('OPTIONS_IMPORTANCE') ?></label>
<?php <?php