protected function formatSimpleTable($data, $css)
{
$th = '';
if ($css->displayTitles === true) {
$th .= '<tr>';
foreach ($css->titles as $title) {
$th .= <<<HTML
<th>{$title}</th>
HTML;
}
$th .= '</tr>';
}
$text = <<<HTML
\t\t\t\t<table class="table">
\t\t\t\t\t<thead>
\t\t\t\t\t\t<tr>
{$th}
\t\t\t\t\t\t</tr>
\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
HTML;
$readOrder = $css->readOrder;
if (empty($readOrder)) {
$readOrder = range(0, count($css->titles) - 1);
}
foreach ($data as $v) {
$row = '<tr>';
foreach ($readOrder as $V) {
$row .= "<td>" . $this->makeHtml($v[$V]) . "</td>\n";
}
$row .= '</tr>';
$text .= $row;
}
$text .= <<<HTML
\t\t\t\t\t</tbody>
\t\t\t\t</table>
HTML;
return $text;
}