mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_DSBMobile.pm: Fixed encoding
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@21608 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1809ebbfd0
commit
635d2f7860
@ -1,4 +1,4 @@
|
|||||||
# $Id$
|
# $Id$
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# 98_DSBMobile.pm
|
# 98_DSBMobile.pm
|
||||||
@ -255,13 +255,19 @@ sub DSBMobile_getDataCallback($) {
|
|||||||
my $d = $topic->{Root}{Childs};
|
my $d = $topic->{Root}{Childs};
|
||||||
|
|
||||||
for my $tile (@$d) {
|
for my $tile (@$d) {
|
||||||
|
my $subtile = $tile->{Childs};
|
||||||
|
my $i = 1;
|
||||||
|
for my $stile (@$subtile) {
|
||||||
my %au = (
|
my %au = (
|
||||||
title => $tile->{Title},
|
title => $tile->{Title}.$i,
|
||||||
url => $tile->{Childs}[0]->{Detail},
|
url => $stile->{Detail},
|
||||||
date => $tile->{Childs}[0]->{Date}
|
date => $stile->{Date}
|
||||||
);
|
);
|
||||||
|
$i++;
|
||||||
push( @aus, \%au );
|
push( @aus, \%au );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -625,7 +631,7 @@ sub DSBMobile_simpleHTML($;$) {
|
|||||||
@days = sort { $a cmp $b } @days;
|
@days = sort { $a cmp $b } @days;
|
||||||
|
|
||||||
my $date = "";
|
my $date = "";
|
||||||
my $class;
|
|
||||||
my $out = AttrVal( $name, "dsb_outputFormat", undef );
|
my $out = AttrVal( $name, "dsb_outputFormat", undef );
|
||||||
|
|
||||||
foreach my $day (@days) {
|
foreach my $day (@days) {
|
||||||
@ -635,6 +641,7 @@ sub DSBMobile_simpleHTML($;$) {
|
|||||||
$row++;
|
$row++;
|
||||||
if ($infoDay) {
|
if ($infoDay) {
|
||||||
foreach my $iline (@idata) {
|
foreach my $iline (@idata) {
|
||||||
|
if ( $iline->{sdate} eq $day ) {
|
||||||
if ( $row % 2 == 0 ) {
|
if ( $row % 2 == 0 ) {
|
||||||
$class = "even";
|
$class = "even";
|
||||||
}
|
}
|
||||||
@ -643,7 +650,6 @@ sub DSBMobile_simpleHTML($;$) {
|
|||||||
}
|
}
|
||||||
$row++;
|
$row++;
|
||||||
|
|
||||||
if ( $iline->{sdate} eq $day ) {
|
|
||||||
$ret .= "<tr class='$class'><td>" . $iline->{topic} . ": " . $iline->{text} . "</td></tr>";
|
$ret .= "<tr class='$class'><td>" . $iline->{topic} . ": " . $iline->{text} . "</td></tr>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user