* Fix export testreport.

This commit is contained in:
wangyidong
2023-10-20 11:05:22 +08:00
parent fe9bd2f8c5
commit 91ce85ac5e
@@ -62,7 +62,7 @@
<div class='chart-wrapper text-center'>
<h5><?php echo $lang->testreport->$infoKey?></h5>
<div class='chart-canvas'>
<?php if(isset($_POST["chart-{$infoKey}"])):?>
<?php if(isset($_POST["chart-{$infoKey}"]) and strpos($_POST["chart-{$infoKey}"], 'data:image/png;base64,') === 0):?>
<img src='<?php echo strip_tags($_POST["chart-{$infoKey}"])?>' />
<?php else:?>
<canvas id='chart-<?php echo $infoKey?>' width='90' height='20' data-responsive='true'></canvas>
@@ -99,7 +99,7 @@
<div class='chart-wrapper text-center'>
<h5><?php echo $lang->testreport->$infoKey?></h5>
<div class='chart-canvas'>
<?php if(isset($_POST["chart-{$infoKey}"])):?>
<?php if(isset($_POST["chart-{$infoKey}"]) and strpos($_POST["chart-{$infoKey}"], 'data:image/png;base64,') === 0):?>
<img src='<?php echo strip_tags($_POST["chart-{$infoKey}"])?>' />
<?php else:?>
<canvas id='chart-<?php echo $infoKey?>' width='90' height='20' data-responsive='true'></canvas>
@@ -142,7 +142,7 @@
<div class='chart-wrapper text-center'>
<h5><?php echo $lang->testreport->$infoKey?></h5>
<div class='chart-canvas'>
<?php if(isset($_POST["chart-{$infoKey}"])):?>
<?php if(isset($_POST["chart-{$infoKey}"]) and strpos($_POST["chart-{$infoKey}"], 'data:image/png;base64,') === 0):?>
<img src='<?php echo strip_tags($_POST["chart-{$infoKey}"])?>' />
<?php else:?>
<canvas id='chart-<?php echo $infoKey?>' width='500' height='140' data-responsive='true'></canvas>