public function FrxControls::vertical_list in Forena Reports 7
Same name and namespace in other branches
- 6 plugins/FrxControls.inc \FrxControls::vertical_list()
File
- plugins/
FrxControls.inc, line 269 - 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 vertical_list($columns, $data_block, $clause) {
if ($clause) {
$clause = 'frx:clause ="' . $clause . '"';
}
$xml .= '<div frx:block="' . $data_block . '" ' . $clause . '>';
$xml .= '<table frx:foreach="*">';
$xml .= '<tbody>';
foreach ($columns as $column) {
$xml .= '<tr >';
$xml .= '<th>' . $column . '</th><td>{' . $column . '}</td>';
$xml .= '</tr>';
}
$xml .= '</tbody>';
$xml .= '</table>';
$xml .= '</div>';
return $xml;
}