You are here

public function FrxControls::htmldocument in Forena Reports 6

Same name and namespace in other branches
  1. 6.2 plugins/FrxControls.inc \FrxControls::htmlDocument()
  2. 7 plugins/FrxControls.inc \FrxControls::htmldocument()
  3. 7.2 plugins/FrxControls.inc \FrxControls::htmlDocument()

File

plugins/FrxControls.inc, line 125
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>';
  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;
}