Bug 382 - Added X10 device control to web interface

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2041 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2006-11-09 10:54:19 +00:00
parent 8c52662bd2
commit c3236c98cf
4 changed files with 33 additions and 1 deletions

View File

@ -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 ),

View File

@ -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 )
{
?>

View File

@ -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';

View File

@ -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">&nbsp;</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&amp;page=1&amp;filter=1&amp;trms=2&amp;attr1=Archived&amp;op1=%3d&amp;val1=0&amp;cnj2=and&amp;attr2=DateTime&amp;op2=%3e%3d&amp;val2=-1%20hour", $hour_event_count, canView( 'Events' ) ) ?></td>
<td align="right"><?= makeLink( "$PHP_SELF?view=events&amp;page=1&amp;filter=1&amp;trms=2&amp;attr1=Archived&amp;op1=%3d&amp;val1=0&amp;cnj2=and&amp;attr2=Date&amp;op2=%3e%3d&amp;val2=today", $today_event_count, canView( 'Events' ) ) ?></td>