Skip to content

Commit

Permalink
Dev: Testing multicell on pdf stats export.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9269 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
David Olivier committed Oct 18, 2010
1 parent 5c6b2c4 commit 2488a9c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions admin/classes/tcpdf/mypdf.php
Expand Up @@ -187,13 +187,21 @@ function headTable($head, $table, $modulo=1 )
{
$oldStyle = $this->FontStyle;
$this->SetFont($this->FontFamily, 'B', $this->FontSizePt);
$this->Cell($maxwidth[$b],4,$this->delete_html($array[$a][$b]),0,0,'L',0);

if ($maxwidth[$b] > 130) $maxwidth[$b]=130;
if ($maxwidth[$b] < 30) $maxwidth[$b]=30;
$this->MultiCell($maxwidth[$b],6,$this->delete_html($array[$a][$b]),1,'L',0,0);

$this->SetFont($this->FontFamily, $oldStyle, $this->FontSizePt);
}
else
{
//echo $maxwidth[$b]." max $b.Spalte<br/>";
$this->Cell($maxwidth[$b],4,$this->delete_html($array[$a][$b]),0,0,'L',$fill);

if ($maxwidth[$b] > 130) $maxwidth[$b]=130;
if ($maxwidth[$b] < 30) $maxwidth[$b]=30;
$this->MultiCell($maxwidth[$b],6,$this->delete_html($array[$a][$b]),1,'L',0,0);

}
}
$this->ln();
Expand Down Expand Up @@ -309,5 +317,6 @@ function delete_html($text)
$text = html_entity_decode($text);
return strip_tags($text);
}

}
?>

0 comments on commit 2488a9c

Please sign in to comment.