Make getMonitorCapturingOptions a member of the class, so can call it getCapturingOptions. Same with Analysing and Recording options

This commit is contained in:
Isaac Connor 2022-02-27 14:03:48 -05:00
parent 13251b133a
commit 1d15de0534
1 changed files with 8 additions and 8 deletions

View File

@ -545,11 +545,11 @@ if (count($available_monitor_ids)) {
<td class="text-right pr-3"><?php echo translate('Capturing'); echo makeHelpLink('OPTIONS_CAPTURING'); ?></td> <td class="text-right pr-3"><?php echo translate('Capturing'); echo makeHelpLink('OPTIONS_CAPTURING'); ?></td>
<td> <td>
<?php <?php
echo htmlSelect('newMonitor[Capturing]', ZM\getMonitorCapturingOptions(), $monitor->Capturing()); echo htmlSelect('newMonitor[Capturing]', ZM\Monitor::getCapturingOptions(), $monitor->Capturing());
?> ?>
<div id="capturing_help"> <div id="capturing_help">
<?php <?php
foreach (ZM\getMonitorCapturingOptions() as $fn => $translated) { foreach (ZM\Monitor::getCapturingOptions() as $fn => $translated) {
if (isset($OLANG['CAPTURING_'.strtoupper($fn)])) { if (isset($OLANG['CAPTURING_'.strtoupper($fn)])) {
echo '<div class="form-text" id="'.$fn.'Help">'.$OLANG['CAPTURING_'.strtoupper($fn)]['Help'].'</div>'; echo '<div class="form-text" id="'.$fn.'Help">'.$OLANG['CAPTURING_'.strtoupper($fn)]['Help'].'</div>';
} }
@ -572,11 +572,11 @@ if (count($available_monitor_ids)) {
<td class="text-right pr-3"><?php echo translate('Recording') ?></td> <td class="text-right pr-3"><?php echo translate('Recording') ?></td>
<td> <td>
<?php <?php
echo htmlSelect('newMonitor[Recording]', ZM\getMonitorRecordingOptions(), $monitor->Recording(), array('on-change-this'=>'Recording_onChange')); echo htmlSelect('newMonitor[Recording]', ZM\Monitor::getRecordingOptions(), $monitor->Recording(), array('on-change-this'=>'Recording_onChange'));
?> ?>
<div id="Recording_help"> <div id="Recording_help">
<?php <?php
foreach (ZM\getMonitorRecordingOptions() as $fn => $translated) { foreach (ZM\Monitor::getRecordingOptions() as $fn => $translated) {
if (isset($OLANG['RECORDING_'.strtoupper($fn)])) { if (isset($OLANG['RECORDING_'.strtoupper($fn)])) {
echo '<div class="form-text" id="'.$fn.'Help">'.$OLANG['RECORDING_'.strtoupper($fn)]['Help'].'</div>'; echo '<div class="form-text" id="'.$fn.'Help">'.$OLANG['RECORDING_'.strtoupper($fn)]['Help'].'</div>';
} }
@ -625,12 +625,12 @@ if (count($available_monitor_ids)) {
<td class="text-right pr-3"><?php echo translate('Analysing') ?></td> <td class="text-right pr-3"><?php echo translate('Analysing') ?></td>
<td> <td>
<?php <?php
echo htmlSelect('newMonitor[Analysing]', ZM\getMonitorAnalysingOptions(), $monitor->Analysing(), array('on-change-this'=>'Analysing_onChange')); echo htmlSelect('newMonitor[Analysing]', ZM\Monitor::getAnalysingOptions(), $monitor->Analysing(), array('on-change-this'=>'Analysing_onChange'));
?> ?>
<div id="Analysing_help"> <div id="Analysing_help">
<?php <?php
foreach (ZM\getMonitorAnalysingOptions() as $fn => $translated) { foreach (ZM\Monitor::getAnalysingOptions() as $fn => $translated) {
if (isset($OLANG['ANALYSING_'.strtoupper($fn)])) { if (isset($OLANG['ANALYSING_'.strtoupper($fn)])) {
echo '<div class="form-text" id="'.$fn.'Help">'.$OLANG['ANALYSING_'.strtoupper($fn)]['Help'].'</div>'; echo '<div class="form-text" id="'.$fn.'Help">'.$OLANG['ANALYSING_'.strtoupper($fn)]['Help'].'</div>';
} }
@ -643,7 +643,7 @@ if (count($available_monitor_ids)) {
<td class="text-right pr-3"><?php echo translate('AnalysisSource') ?></td> <td class="text-right pr-3"><?php echo translate('AnalysisSource') ?></td>
<td> <td>
<?php <?php
echo htmlSelect('newMonitor[AnalysisSource]', ZM\getMonitorAnalysisSourceOptions(), $monitor->AnalysisSource()); echo htmlSelect('newMonitor[AnalysisSource]', ZM\Monitor::getAnalysisSourceOptions(), $monitor->AnalysisSource());
?> ?>
</td> </td>
</tr> </tr>
@ -1008,7 +1008,7 @@ include('_monitor_source_nvsocket.php');
<td class="text-right pr-3"><?php echo translate('RecordingSource') ?></td> <td class="text-right pr-3"><?php echo translate('RecordingSource') ?></td>
<td> <td>
<?php <?php
echo htmlSelect('newMonitor[RecordingSource]', ZM\getMonitorRecordingSourceOptions(), $monitor->RecordingSource()); echo htmlSelect('newMonitor[RecordingSource]', ZM\Monitor::getRecordingSourceOptions(), $monitor->RecordingSource());
?> ?>
</td> </td>
</tr> </tr>