mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
01_FHEMWEB.pm: Implement FW_addDetailToSummary (Forum #71772)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14244 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1b38c24f4a
commit
b71c5e1268
@ -1665,7 +1665,7 @@ FW_alias($)
|
|||||||
sub
|
sub
|
||||||
FW_makeDeviceLine($$$$$)
|
FW_makeDeviceLine($$$$$)
|
||||||
{
|
{
|
||||||
my( $d,$row,$extPage,$nameDisplay,$usuallyAtEnd) = @_;;
|
my ($d,$row,$extPage,$nameDisplay,$usuallyAtEnd) = @_;
|
||||||
my $rf = ($FW_room ? "&room=$FW_room" : ""); # stay in the room
|
my $rf = ($FW_room ? "&room=$FW_room" : ""); # stay in the room
|
||||||
|
|
||||||
FW_pF "\n<tr class=\"%s\">", ($row&1)?"odd":"even";
|
FW_pF "\n<tr class=\"%s\">", ($row&1)?"odd":"even";
|
||||||
@ -1822,6 +1822,15 @@ FW_showRoom()
|
|||||||
$extPage{group} = $g;
|
$extPage{group} = $g;
|
||||||
|
|
||||||
FW_makeDeviceLine($d,$row,\%extPage,$nameDisplay,\%usuallyAtEnd);
|
FW_makeDeviceLine($d,$row,\%extPage,$nameDisplay,\%usuallyAtEnd);
|
||||||
|
|
||||||
|
if($modules{$type}{FW_addDetailToSummary}) {
|
||||||
|
no strict "refs";
|
||||||
|
my $txt = &{$modules{$type}{FW_detailFn}}($FW_wname, $d, $FW_room);
|
||||||
|
use strict "refs";
|
||||||
|
if(defined($txt)) {
|
||||||
|
FW_pO "<tr class='".($row&1?"odd":"even")."'><td>$txt</td></tr>";
|
||||||
|
}
|
||||||
|
}
|
||||||
$row++;
|
$row++;
|
||||||
}
|
}
|
||||||
FW_pO "</table>";
|
FW_pO "</table>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user