From: Jan Michel Date: Wed, 19 May 2021 13:07:27 +0000 (+0200) Subject: xml-pages: change color of rate fields that are 0 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=774f3324e3d9fcaf7a9c7c73476b3808cd9bb9ce;p=daqtools.git xml-pages: change color of rate fields that are 0 --- diff --git a/web/htdocs/layout/blue.css b/web/htdocs/layout/blue.css index 8428bc6..f865676 100644 --- a/web/htdocs/layout/blue.css +++ b/web/htdocs/layout/blue.css @@ -311,6 +311,9 @@ table.queryresult td.bad { background-color:#faa; } +table.queryresult td.nullvalue { + color:#a88; +} table.conversion { visibility:collapse; diff --git a/xml-db/get.pl b/xml-db/get.pl index 79c40d4..13122ca 100755 --- a/xml-db/get.pl +++ b/xml-db/get.pl @@ -14,7 +14,7 @@ use if (!defined $ENV{'QUERY_STRING'}), Getopt::Long; no warnings 'experimental::smartmatch'; # use Data::TreeDumper; -use Data::Dumper; +# use Data::Dumper; my ($db,$data,$once,$slice); my $help = 0; my $verbose = 0; @@ -221,6 +221,8 @@ sub FormatPretty { $cl = "class=\"".($value?"good":"bad")."\"" if ( $obj->{errorflag} && $obj->{invertflag} && $isflag && $readable); $cl = "class=\"".($value?"high":"low")."\"" if (!$obj->{errorflag} && !$obj->{invertflag} && $isflag && $readable); $cl = "class=\"".($value?"low":"high")."\"" if (!$obj->{errorflag} && $obj->{invertflag} && $isflag && $readable); + $cl = "class=\"nullvalue\"" if ($cl eq '' && $obj->{rate} && $value == 0); + $cl .= sprintf(" cstr=\"$cstr\"%s raw=\"0x%x\">
",$single,$rawvalue); my $t = "";