Bug 382 - Added X10 device control to web interface
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2041 e3e1d417-86f3-4887-817a-d78f3d33393fpull/27/merge
parent
8c52662bd2
commit
c3236c98cf
|
@ -111,7 +111,8 @@ $jws = array(
|
|||
'controlcaps' => array( 'w'=>700, 'h'=>320 ),
|
||||
'controlcap' => array( 'w'=>360, 'h'=>440 ),
|
||||
'cycle' => array( 'w'=>16, 'h'=>32 ),
|
||||
'device' => array( 'w'=>196, 'h'=>164 ),
|
||||
'device' => array( 'w'=>260, 'h'=>120 ),
|
||||
'devices' => array( 'w'=>400, 'h'=>240 ),
|
||||
'donate' => array( 'w'=>500, 'h'=>280 ),
|
||||
'event' => array( 'w'=>96, 'h'=>168 ),
|
||||
'eventdetail' => array( 'w'=>400, 'h'=>220 ),
|
||||
|
|
|
@ -226,6 +226,8 @@ newWindow( '<?= $PHP_SELF ?>?view=donate', 'zmDonate', <?= $jws['donate']['w'] ?
|
|||
<td class="smallhead" align="right"><?= $zmSlangLoad ?>: <?= getLoad() ?> / <?= $zmSlangDisk ?>: <?= getDiskPercent() ?>%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="smallhead" align="left"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td class="smallhead" align="left">
|
||||
<tr>
|
||||
<td class="smallhead" align="left">
|
||||
<?php
|
||||
if ( canView( 'System' ) )
|
||||
|
@ -243,6 +245,18 @@ else
|
|||
?>
|
||||
</td>
|
||||
<?php
|
||||
if ( ZM_OPT_X10 && canView('Devices' ) )
|
||||
{
|
||||
?>
|
||||
<td class="smallhead" align="right"><a href="javascript: newWindow( '<?= $PHP_SELF ?>?view=devices', 'zmDevices', <?= $jws['devices']['w'] ?>, <?= $jws['devices']['h'] ?> );"><?= $zmSlangDevices ?></a></td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<?php
|
||||
if ( ZM_OPT_USE_AUTH )
|
||||
{
|
||||
?>
|
||||
|
|
|
@ -239,6 +239,7 @@ $zmSlangDeviceChannel = 'Device Channel';
|
|||
$zmSlangDeviceFormat = 'Device Format';
|
||||
$zmSlangDeviceNumber = 'Device Number';
|
||||
$zmSlangDevicePath = 'Device Path';
|
||||
$zmSlangDevices = 'Devices';
|
||||
$zmSlangDimensions = 'Dimensions';
|
||||
$zmSlangDisableAlarms = 'Disable Alarms';
|
||||
$zmSlangDisk = 'Disk';
|
||||
|
@ -340,6 +341,7 @@ $zmSlangInclude = 'Include';
|
|||
$zmSlangIn = 'In';
|
||||
$zmSlangInverted = 'Inverted';
|
||||
$zmSlangIris = 'Iris';
|
||||
$zmSlangKeyString = 'Key String';
|
||||
$zmSlangLabel = 'Label';
|
||||
$zmSlangLanguage = 'Language';
|
||||
$zmSlangLast = 'Last';
|
||||
|
@ -453,6 +455,8 @@ $zmSlangNoSavedFilters = 'NoSavedFilters';
|
|||
$zmSlangNoStatisticsRecorded = 'There are no statistics recorded for this event/frame';
|
||||
$zmSlangNotes = 'Notes';
|
||||
$zmSlangNumPresets = 'Num Presets';
|
||||
$zmSlangOff = 'Off';
|
||||
$zmSlangOn = 'On';
|
||||
$zmSlangOpen = 'Open';
|
||||
$zmSlangOpEq = 'equal to';
|
||||
$zmSlangOpGtEq = 'greater than or equal to';
|
||||
|
|
|
@ -128,7 +128,20 @@ foreach( $monitors as $monitor )
|
|||
}
|
||||
?>
|
||||
<tr>
|
||||
<?php
|
||||
if ( ZM_OPT_X10 )
|
||||
{
|
||||
?>
|
||||
<td align="left"><?= makeLink( "$PHP_SELF?view=devices", $zmSlangDevices, canView('Devices' ) ) ?></td>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<td align="left"> </td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<td align="center"><?= makeLink( "$PHP_SELF?view=montage", count($monitors), ( $running && canView( 'Stream' ) && $cycle_count > 1 ) ) ?></td>
|
||||
<td align="right"><?= makeLink( "$PHP_SELF?view=events&page=1&filter=1&trms=2&attr1=Archived&op1=%3d&val1=0&cnj2=and&attr2=DateTime&op2=%3e%3d&val2=-1%20hour", $hour_event_count, canView( 'Events' ) ) ?></td>
|
||||
<td align="right"><?= makeLink( "$PHP_SELF?view=events&page=1&filter=1&trms=2&attr1=Archived&op1=%3d&val1=0&cnj2=and&attr2=Date&op2=%3e%3d&val2=today", $today_event_count, canView( 'Events' ) ) ?></td>
|
||||
|
|
Loading…
Reference in New Issue