/** * Show table for values * @param array $Values */ protected function showTableForValues(&$Values) { echo '<table class="fullwidth nomargin">'; foreach ($Values as $Value) { if ($Value['show']) { $Label = '<strong>' . $Value['title'] . '</strong> <small>' . $Value['small'] . '</small>'; $Text = $Value['tooltip'] != '' ? Ajax::tooltip($Label, $Value['tooltip']) : $Label; $ProgressBar = new ProgressBar(); $ProgressBar->setInline(); $ProgressBar->setTooltip($Value['bar-tooltip']); foreach ($Value['bars'] as &$Bar) { $ProgressBar->addBar($Bar); } if (isset($Value['bar-goal'])) { $ProgressBar->setGoalLine($Value['bar-goal']); } $Progress = $ProgressBar->getCode(); echo '<tr><td>' . $Text . '</td><td style="width:99%;vertical-align:middle;">' . $Progress . '</td><td class="r">' . $Value['value'] . '</td></tr>'; } } echo '</table>'; }