2014-12-17 03:04:30 +08:00
|
|
|
<div role="tabpanel" class="tab-pane active" id="general">
|
2014-12-14 12:15:31 +08:00
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="Name"><?= $SLANG['Name'] ?></label>
|
2014-12-17 03:18:54 +08:00
|
|
|
<input type="text" id="Name" class="form-control" ng-model="newMonitor[Name]" placeholder="Monitor-Name" />
|
2014-12-14 12:15:31 +08:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="SourceType"><?= $SLANG['SourceType'] ?></label>
|
2014-12-17 03:18:54 +08:00
|
|
|
<select ng-model="newMonitor[Type]" id="SourceType" class="form-control">
|
2014-12-14 12:15:31 +08:00
|
|
|
<option value="Local">Local</option>
|
|
|
|
<option value="Remote">Remote</option>
|
|
|
|
<option value="File">File</option>
|
|
|
|
<option value="Ffmpeg">Ffmpeg</option>
|
|
|
|
<option value="Libvlc">Libvlc</option>
|
|
|
|
<option value="cURL">cURL (HTTP(S) only)</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="Function"><?= $SLANG['Function'] ?></label>
|
2014-12-17 03:18:54 +08:00
|
|
|
<select class="form-control" id="Function" ng-model="newMonitor[Function]">
|
2014-12-14 12:15:31 +08:00
|
|
|
<option value="None">None</option>
|
|
|
|
<option value="Monitor" selected="selected">Monitor</option>
|
|
|
|
<option value="Modect">Modect</option>
|
|
|
|
<option value="Record">Record</option>
|
|
|
|
<option value="Mocord">Mocord</option>
|
|
|
|
<option value="Nodect">Nodect</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
2014-12-17 03:18:54 +08:00
|
|
|
<input type="checkbox" id="Enabled" ng-model="newMonitor[Enabled]" value="1"<?php if ( !empty($newMonitor['Enabled']) ) { ?> checked="checked"<?php } ?>/>
|
2014-12-14 12:15:31 +08:00
|
|
|
Enabled
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="MaxFPS"><?= $SLANG['MaximumFPS'] ?></label>
|
2014-12-17 03:18:54 +08:00
|
|
|
<input type="number" id="MaxFPS" class="form-control" ng-model="newMonitor[MaxFPS]" value="<?= validHtmlStr($newMonitor['MaxFPS']) ?>" />
|
2014-12-14 12:15:31 +08:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="AlarmMaxFPS"><?= $SLANG['AlarmMaximumFPS'] ?></label>
|
2014-12-17 03:18:54 +08:00
|
|
|
<input type="number" id="AlarmMaxFPS" class="form-control" ng-model="newMonitor[AlarmMaxFPS]" value="<?= validHtmlStr($newMonitor['AlarmMaxFPS']) ?>" />
|
2014-12-14 12:15:31 +08:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
if ( ZM_FAST_IMAGE_BLENDS )
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['RefImageBlendPct'] ?></label>
|
2014-12-17 03:18:54 +08:00
|
|
|
<select class="form-control" ng-model="newMonitor[RefBlendPerc]"><?php foreach ( $fastblendopts as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['RefBlendPerc'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?></select></div>
|
2014-12-14 12:15:31 +08:00
|
|
|
<div class="form-group"><?= "Alarm " . $SLANG['RefImageBlendPct'] ?></label>
|
2014-12-17 03:18:54 +08:00
|
|
|
<select class="form-control" ng-model="newMonitor[AlarmRefBlendPerc]"><?php foreach ( $fastblendopts_alarm as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['AlarmRefBlendPerc'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?></select></div>
|
2014-12-14 12:15:31 +08:00
|
|
|
<?php
|
|
|
|
} else {
|
|
|
|
?>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['RefImageBlendPct'] ?></label>
|
2014-12-17 03:18:54 +08:00
|
|
|
<input type="text" class="form-control" ng-model="newMonitor[RefBlendPerc]" value="<?= validHtmlStr($newMonitor['RefBlendPerc']) ?>" />
|
2014-12-14 12:15:31 +08:00
|
|
|
</div>
|
|
|
|
<div class="form-group"><?= "Alarm " . $SLANG['RefImageBlendPct'] ?></label>
|
2014-12-17 03:18:54 +08:00
|
|
|
<input type="text" class="form-control" ng-model="newMonitor[AlarmRefBlendPerc]" value="<?= validHtmlStr($newMonitor['AlarmRefBlendPerc']) ?>" />
|
2014-12-14 12:15:31 +08:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|