mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 16:05:19 +00:00
93_DbLog: contrib 5.10.0
git-svn-id: https://svn.fhem.de/fhem/trunk@28648 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ee716776ab
commit
f1bbc5b08a
@ -8596,9 +8596,28 @@ sub DbLog_fhemwebFn {
|
||||
}
|
||||
|
||||
my $name = "SVG_${d}_$newIdx";
|
||||
$ret .= FW_pH("cmd=define $name SVG $d:templateDB:HISTORY;".
|
||||
"set $name copyGplotFile&detail=$name",
|
||||
"<div class=\"dval\">Create SVG plot from DbLog</div>", 0, "dval", 1);
|
||||
|
||||
my $img = FW_makeImage('time_graph@grey');
|
||||
my $title = "Create SVG plot from DbLog";
|
||||
|
||||
if (AttrVal ('global', 'language', 'EN') eq 'DE') {
|
||||
$title = "SVG-Diagramm aus DbLog erstellen";
|
||||
}
|
||||
my $dstyle = qq{style='padding-left: 10px; padding-right: 10px; padding-top: 3px; padding-bottom: 3px; white-space:nowrap;'}; # TD-Style
|
||||
|
||||
my $class = qq{<table width='100%'>};
|
||||
$class .= qq{<tr>};
|
||||
$class .= qq{<td align="left" title="$title" $dstyle> $img </td>};
|
||||
$class .= qq{</tr>};
|
||||
$class .= qq{</table>};
|
||||
|
||||
# $link , $txt , $td , $class , $doRet , $nonl
|
||||
$ret .= FW_pH ("cmd=define $name SVG $d:templateDB:HISTORY;set $name copyGplotFile&detail=$name",
|
||||
"<div class=\"dval\">$class</div>",
|
||||
0,
|
||||
"dval",
|
||||
1);
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user