mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-24 02:59:22 +00:00
changed detail view heading, user cursor pointer
git-svn-id: https://svn.fhem.de/fhem/trunk@4744 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0aa3aff6c6
commit
a1b2187abf
@ -97,6 +97,19 @@ LightScene_2html($)
|
||||
$ret .= "<tr><td><div class=\"devType\"><a href=\"$FW_ME?detail=$name\">".AttrVal($name, "alias", $name)."</a></div></td></tr>" if( $show_heading );
|
||||
$ret .= "<tr><td><table class=\"block wide\">";
|
||||
|
||||
if( defined($FW_webArgs{detail}) ) {
|
||||
$room = "&detail=$FW_webArgs{detail}";
|
||||
|
||||
$ret .= sprintf("<tr class=\"%s\">", ($row&1)?"odd":"even");
|
||||
#$row++;
|
||||
$ret .= "<td><div></div></td>";
|
||||
foreach my $d (sort keys %{ $hash->{CONTENT} }) {
|
||||
my %extPage = ();
|
||||
my ($allSets, $cmdlist, $txt) = FW_devState($d, $room, \%extPage);
|
||||
$ret .= "<td style=\"cursor:pointer\" informId=\"$name-$d.state\">$txt</td>";
|
||||
}
|
||||
}
|
||||
|
||||
$ret .= sprintf("<tr class=\"%s\">", ($row&1)?"odd":"even");
|
||||
$row++;
|
||||
$ret .= "<td><div></div></td>";
|
||||
@ -104,19 +117,6 @@ LightScene_2html($)
|
||||
$ret .= "<td><div class=\"col2\"><a href=\"$FW_ME?detail=$d\">". AttrVal($d, "alias", $d) ."</a></div></td>";
|
||||
}
|
||||
|
||||
if( defined($FW_webArgs{detail}) ) {
|
||||
$room = "&detail=$FW_webArgs{detail}";
|
||||
|
||||
$ret .= sprintf("<tr class=\"%s\">", ($row&1)?"odd":"even");
|
||||
$row++;
|
||||
$ret .= "<td><div></div></td>";
|
||||
foreach my $d (sort keys %{ $hash->{CONTENT} }) {
|
||||
my %extPage = ();
|
||||
my ($allSets, $cmdlist, $txt) = FW_devState($d, $room, \%extPage);
|
||||
$ret .= "<td informId=\"$name-$d.state\">$txt</td>";
|
||||
}
|
||||
}
|
||||
|
||||
foreach my $scene (sort keys %{ $hash->{SCENES} }) {
|
||||
$ret .= sprintf("<tr class=\"%s\">", ($row&1)?"odd":"even");
|
||||
$row++;
|
||||
@ -130,7 +130,7 @@ LightScene_2html($)
|
||||
$txt = ($isHtml ? $icon : FW_makeImage($icon, $scene)) if( $icon );
|
||||
}
|
||||
if( AttrVal($FW_wname, "longpoll", 1)) {
|
||||
$txt = "<a onClick=\"FW_cmd('$FW_ME$FW_subdir?XHR=1&$link')\">$txt</a>";
|
||||
$txt = "<a style=\"cursor:pointer\" onClick=\"FW_cmd('$FW_ME$FW_subdir?XHR=1&$link')\">$txt</a>";
|
||||
} else {
|
||||
$txt = "<a href=\"$FW_ME$FW_subdir?$link$srf\">$txt</a>";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user