Improvements to layout of devices screen.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2052 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
b2d6c657c8
commit
76c8189199
|
@ -120,6 +120,9 @@ a:hover {
|
||||||
input[disabled] {
|
input[disabled] {
|
||||||
color: #888888;
|
color: #888888;
|
||||||
}
|
}
|
||||||
|
input[set] {
|
||||||
|
border: 1px #7F7FB2 dashed;
|
||||||
|
}
|
||||||
.textsmall {
|
.textsmall {
|
||||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||||
font-size: 9px;
|
font-size: 9px;
|
||||||
|
|
|
@ -124,8 +124,8 @@ foreach( $devices as $device )
|
||||||
?>
|
?>
|
||||||
<tr bgcolor="#FFFFFF">
|
<tr bgcolor="#FFFFFF">
|
||||||
<td align="left"><?= makeLink( "javascript:editDevice( ".$device['Id']." )", '<span class="'.$fclass.'">'.$device['Name'].' ('.$device['KeyString'].')</span>', canEdit( 'Devices' ) ) ?></td>
|
<td align="left"><?= makeLink( "javascript:editDevice( ".$device['Id']." )", '<span class="'.$fclass.'">'.$device['Name'].' ('.$device['KeyString'].')</span>', canEdit( 'Devices' ) ) ?></td>
|
||||||
<td align="center"><input type="button" class="form" value="<?= $zmSlangOn ?>" onClick="switchDeviceOn( '<?= $device['KeyString'] ?>' )"<?= ($device['Status'] != 'ON' && canEdit( 'Devices' ) )?"":" disabled" ?>></td>
|
<td align="center"><input type="button" class="form" value="<?= $zmSlangOn ?>" onClick="switchDeviceOn( '<?= $device['KeyString'] ?>' )"<?= ($device['Status'] != 'ON' && canEdit( 'Devices' ) )?"":' set="set"' ?>></td>
|
||||||
<td align="center"><input type="button" class="form" value="<?= $zmSlangOff ?>" onClick="switchDeviceOff( '<?= $device['KeyString'] ?>' )"<?= ($device['Status'] != 'OFF' && canEdit( 'Devices' ) )?"":" disabled" ?>></td>
|
<td align="center"><input type="button" class="form" value="<?= $zmSlangOff ?>" onClick="switchDeviceOff( '<?= $device['KeyString'] ?>' )"<?= ($device['Status'] != 'OFF' && canEdit( 'Devices' ) )?"":' set="set"' ?>></td>
|
||||||
<td align="center" class="text"><input type="checkbox" class="form" name="mark_dids[]" value="<?= $device['Id'] ?>" onClick="configureButtons( document.devices_form, 'mark_dids' );"<?php if ( !canEdit( 'Devices' ) ) {?> disabled<?php } ?>></td>
|
<td align="center" class="text"><input type="checkbox" class="form" name="mark_dids[]" value="<?= $device['Id'] ?>" onClick="configureButtons( document.devices_form, 'mark_dids' );"<?php if ( !canEdit( 'Devices' ) ) {?> disabled<?php } ?>></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -56,8 +56,8 @@ foreach( $devices as $device )
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left" style="width: 60%"><span class="<?= $fclass ?>"><?= substr( $device['Name'], 0, 16 ) ?></span></td>
|
<td align="left" style="width: 60%"><span class="<?= $fclass ?>"><?= substr( $device['Name'], 0, 16 ) ?></span></td>
|
||||||
<td align="center"><?= makeLink( $PHP_SELF."?view=".$view."&action=device&key=".$device['KeyString']."&command=on", $zmSlangOn, $device['Status'] != 'ON' && canEdit( 'Devices' ) ) ?></td>
|
<td align="center"><?= makeLink( $PHP_SELF."?view=".$view."&action=device&key=".$device['KeyString']."&command=on", $zmSlangOn, canEdit('Devices') ) ?></td>
|
||||||
<td align="center"><?= makeLink( $PHP_SELF."?view=".$view."&action=device&key=".$device['KeyString']."&command=off", $zmSlangOff, $device['Status'] != 'OFF' && canEdit( 'Devices' ) ) ?></td>
|
<td align="center"><?= makeLink( $PHP_SELF."?view=".$view."&action=device&key=".$device['KeyString']."&command=off", $zmSlangOff, canEdit('Devices') ) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue