Add EventStartCommand and EventEndCommand to monitors ui
This commit is contained in:
parent
b626de50dc
commit
21218491f7
|
@ -57,6 +57,8 @@ class Monitor extends ZM_Object {
|
||||||
'DecodingEnabled' => array('type'=>'boolean','default'=>1),
|
'DecodingEnabled' => array('type'=>'boolean','default'=>1),
|
||||||
'LinkedMonitors' => array('type'=>'set', 'default'=>null),
|
'LinkedMonitors' => array('type'=>'set', 'default'=>null),
|
||||||
'Triggers' => array('type'=>'set','default'=>''),
|
'Triggers' => array('type'=>'set','default'=>''),
|
||||||
|
'EventStartCommand' => '',
|
||||||
|
'EventEndCommand' => '',
|
||||||
'ONVIF_URL' => '',
|
'ONVIF_URL' => '',
|
||||||
'ONVIF_Username' => '',
|
'ONVIF_Username' => '',
|
||||||
'ONVIF_Password' => '',
|
'ONVIF_Password' => '',
|
||||||
|
|
|
@ -675,6 +675,14 @@ if (count($available_monitor_ids)) {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td class="text-right pr-3"><?php echo translate('Event Start Command') ?></td>
|
||||||
|
<td><input type="text" name="newMonitor[EventStartCommand]" value="<?php echo validHtmlStr($monitor->EventStartCommand()) ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="text-right pr-3"><?php echo translate('Event End Command') ?></td>
|
||||||
|
<td><input type="text" name="newMonitor[EventEndCommand]" value="<?php echo validHtmlStr($monitor->EventEndCommand()) ?>" /></td>
|
||||||
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue