public function FrxControls::htmlDocument in Forena Reports 6.2
Same name and namespace in other branches
- 6 plugins/FrxControls.inc \FrxControls::htmldocument()
- 7 plugins/FrxControls.inc \FrxControls::htmldocument()
- 7.2 plugins/FrxControls.inc \FrxControls::htmlDocument()
File
- plugins/
FrxControls.inc, line 127 - contains various methods for extending report formating, layout, transformation and design.
Class
- FrxControls
- @file contains various methods for extending report formating, layout, transformation and design.
Code
public function htmlDocument($body, $options) {
$output = '<html><head>';
$output .= '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>';
if ($options['css']) {
$output .= '<style type="text/css">';
$output .= $options['css'];
$output .= '</style>';
}
$output .= '<title>' . $options['title'] . '</title></head><body class="forena-report">' . $body . '</body></html>';
return $output;
}