mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 23:06:37 +00:00
98_DSBMobile.pm: Fixed encoding
git-svn-id: https://svn.fhem.de/fhem/trunk@21608 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1179429baa
commit
41c04bc298
@ -1,4 +1,4 @@
|
||||
# $Id$
|
||||
# $Id$
|
||||
##############################################################################
|
||||
#
|
||||
# 98_DSBMobile.pm
|
||||
@ -255,12 +255,18 @@ sub DSBMobile_getDataCallback($) {
|
||||
my $d = $topic->{Root}{Childs};
|
||||
|
||||
for my $tile (@$d) {
|
||||
my %au = (
|
||||
title => $tile->{Title},
|
||||
url => $tile->{Childs}[0]->{Detail},
|
||||
date => $tile->{Childs}[0]->{Date}
|
||||
);
|
||||
push( @aus, \%au );
|
||||
my $subtile = $tile->{Childs};
|
||||
my $i = 1;
|
||||
for my $stile (@$subtile) {
|
||||
my %au = (
|
||||
title => $tile->{Title}.$i,
|
||||
url => $stile->{Detail},
|
||||
date => $stile->{Date}
|
||||
);
|
||||
$i++;
|
||||
push( @aus, \%au );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -323,7 +329,7 @@ sub DSBMobile_processTTPages($) {
|
||||
my $name = $hash->{NAME};
|
||||
|
||||
my $ttpage = shift @{ $hash->{helper}{tturl} };
|
||||
|
||||
|
||||
if ($ttpage) {
|
||||
Log3 $name, 5, "[$name] processing page " . $ttpage;
|
||||
my $nparam = {
|
||||
@ -625,7 +631,7 @@ sub DSBMobile_simpleHTML($;$) {
|
||||
@days = sort { $a cmp $b } @days;
|
||||
|
||||
my $date = "";
|
||||
my $class;
|
||||
|
||||
my $out = AttrVal( $name, "dsb_outputFormat", undef );
|
||||
|
||||
foreach my $day (@days) {
|
||||
@ -635,15 +641,15 @@ sub DSBMobile_simpleHTML($;$) {
|
||||
$row++;
|
||||
if ($infoDay) {
|
||||
foreach my $iline (@idata) {
|
||||
if ( $row % 2 == 0 ) {
|
||||
$class = "even";
|
||||
}
|
||||
else {
|
||||
$class = "odd";
|
||||
}
|
||||
$row++;
|
||||
|
||||
if ( $iline->{sdate} eq $day ) {
|
||||
if ( $row % 2 == 0 ) {
|
||||
$class = "even";
|
||||
}
|
||||
else {
|
||||
$class = "odd";
|
||||
}
|
||||
$row++;
|
||||
|
||||
$ret .= "<tr class='$class'><td>" . $iline->{topic} . ": " . $iline->{text} . "</td></tr>";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user