fixed to put the output of the 'addendum_script' in the right place, and avoiding being repeated on each graph in the 'emailreports' graph

This commit is contained in:
Jordi Sanfeliu 2015-06-29 18:16:59 +02:00
parent 4256b31375
commit 01baaf86e9
1 changed files with 14 additions and 14 deletions

View File

@ -143,10 +143,15 @@ EOF
$html .= join("\n", @tmp);
$html .= "<br>";
# addendum data included in report
if($emailreports->{$report}->{addendum_script}) {
$html .= <<"EOF";
<table cellspacing='5' cellpadding='0' width='1' bgcolor='CCCCCC' border='1'>
$data =~ s/<!-- graph table begins -->.*?<!-- graph table ends -->//;
$e++;
}
}
# addendum data included in report
if($emailreports->{$report}->{addendum_script}) {
$html .= <<"EOF";
<table cellspacing='5' cellpadding='0' width='100%' bgcolor='CCCCCC' border='1'>
<tr>
<td bgcolor='777777'>
<font face='Verdana, sans-serif' color='CCCC00'>
@ -157,16 +162,11 @@ EOF
<tr>
<td bgcolor='FFFFFF'>
EOF
$html .= `$emailreports->{$report}->{addendum_script}`;
$html .= "\n";
$html .= " </td>\n";
$html .= " </tr>\n";
$html .= "</table>\n";
}
$data =~ s/<!-- graph table begins -->.*?<!-- graph table ends -->//;
$e++;
}
$html .= `$emailreports->{$report}->{addendum_script}`;
$html .= "\n";
$html .= " </td>\n";
$html .= " </tr>\n";
$html .= "</table>\n";
}
$html .= $html_footer;