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
|
|
|
|
2014-12-17 06:11:02 +08:00
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
2014-12-14 12:15:31 +08:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="Name"><?= $SLANG['Name'] ?></label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<input type="text" id="Name" class="form-control" ng-model="monitor.Name" placeholder="Monitor-Name" required />
|
2014-12-14 12:15:31 +08:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2014-12-19 23:13:52 +08:00
|
|
|
<label for="Type"><?= $SLANG['SourceType'] ?></label>
|
|
|
|
<select ng-model="monitor.Type" id="Type" class="form-control" required>
|
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-18 05:08:35 +08:00
|
|
|
<select class="form-control" id="Function" ng-model="monitor.Function" required>
|
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-18 05:08:35 +08:00
|
|
|
<input type="checkbox" id="Enabled" ng-model="monitor.Enabled" value="1"<?php if ( !empty($newMonitor['Enabled']) ) { ?> checked="checked"<?php } ?>/>
|
2014-12-14 12:15:31 +08:00
|
|
|
Enabled
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
if ( ZM_FAST_IMAGE_BLENDS )
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['RefImageBlendPct'] ?></label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<select class="form-control" ng-model="monitor.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-17 06:09:45 +08:00
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= "Alarm " . $SLANG['RefImageBlendPct'] ?></label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<select class="form-control" ng-model="monitor.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-18 05:08:35 +08:00
|
|
|
<input type="text" class="form-control" ng-model="monitor.RefBlendPerc" value="6" />
|
2014-12-14 12:15:31 +08:00
|
|
|
</div>
|
2014-12-17 06:09:45 +08:00
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= "Alarm " . $SLANG['RefImageBlendPct'] ?></label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<input type="text" class="form-control" ng-model="monitor.AlarmRefBlendPerc" value="6" />
|
2014-12-14 12:15:31 +08:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2014-12-22 10:54:27 +08:00
|
|
|
<div class="form-group" ng-show="monitor.Type == 'Local'">
|
2014-12-17 06:11:02 +08:00
|
|
|
<label for="MaxFPS"><?= $SLANG['MaximumFPS'] ?></label>
|
2014-12-22 10:47:04 +08:00
|
|
|
<input type="text" id="MaxFPS" class="form-control" ng-model="monitor.MaxFPS" />
|
2014-12-17 06:11:02 +08:00
|
|
|
</div>
|
2014-12-22 10:54:27 +08:00
|
|
|
<div class="form-group" ng-show="monitor.Type == 'Local'">
|
2014-12-17 06:11:02 +08:00
|
|
|
<label for="AlarmMaxFPS"><?= $SLANG['AlarmMaximumFPS'] ?></label>
|
2014-12-22 10:47:04 +08:00
|
|
|
<input type="text" id="AlarmMaxFPS" class="form-control" ng-model="monitor.AlarmMaxFPS" />
|
2014-12-17 06:11:02 +08:00
|
|
|
</div>
|
2014-12-17 06:06:54 +08:00
|
|
|
</div> <!-- End .col-md-6 -->
|
|
|
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= "Target Colorspace" ?></label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<select required class="form-control" ng-model="monitor.Colours">
|
|
|
|
<?php foreach ( $Colours as $name => $value ) { ?><option value="<?= $value ?>"<?php if ( $value == $newMonitor['Colours'] ) { ?> selected="selected"<?php } ?>><?= $name ?></option><?php } ?>
|
|
|
|
</select>
|
2014-12-17 06:06:54 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['CaptureWidth'] ?> (<?= $SLANG['Pixels'] ?>)</label>
|
2014-12-22 10:47:04 +08:00
|
|
|
<input class="form-control" type="text" ng-model="monitor.Width" placeholder="704" />
|
2014-12-17 06:06:54 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['CaptureHeight'] ?> (<?= $SLANG['Pixels'] ?>)</label>
|
2014-12-22 10:47:04 +08:00
|
|
|
<input class="form-control" type="text" ng-model="monitor.Height" placeholder="480" />
|
2014-12-17 06:06:54 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<input type="checkbox" ng-model="monitor.preserveAspectRatio" value="1"/>
|
2014-12-17 06:06:54 +08:00
|
|
|
<?= $SLANG['PreserveAspect'] ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for=""><?= $SLANG['Orientation'] ?></label>
|
2014-12-18 05:08:35 +08:00
|
|
|
<select class="form-control" ng-model="monitor.Orientation" required>
|
2014-12-22 10:47:04 +08:00
|
|
|
<option value="0">Normal</option>
|
|
|
|
<option value="90">Rotate Right</option>
|
|
|
|
<option value="180">Inverted</option>
|
|
|
|
<option value="270">Rotate Left</option>
|
|
|
|
<option value="hori">Flipped Horizontally</option>
|
|
|
|
<option value="vert">Flipped Vertically</option>
|
2014-12-18 05:08:35 +08:00
|
|
|
</select>
|
2014-12-17 06:06:54 +08:00
|
|
|
</div>
|
|
|
|
</div> <!-- End .col-md-6 -->
|
|
|
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
|
|
|
|
|
|
|
<?php include("tab-monitor-local.php"); ?>
|
2014-12-18 05:08:35 +08:00
|
|
|
<?php include("tab-monitor-curl.php"); ?>
|
|
|
|
<?php include("tab-monitor-ffmpeg-vlc.php"); ?>
|
2014-12-17 09:54:42 +08:00
|
|
|
<?php include("tab-monitor-remote.php"); ?>
|
2014-12-17 06:06:54 +08:00
|
|
|
|
|
|
|
</div> <!-- End .col-md-4 -->
|
|
|
|
</div> <!-- End .row -->
|
|
|
|
|
|
|
|
|
2014-12-14 12:15:31 +08:00
|
|
|
</div>
|