/**
  * 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>&nbsp;<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>';
 }
예제 #2
0
if (!$this instanceof RunalyzePluginTool_DatenbankCleanup) {
    throw new RuntimeException('Template called in wrong context.');
}
?>

<div id="cleanup-job-result" class="padding-5">
	<p class="text-headline">
		<?php 
_e('Cleanup is running ...');
?>
	</p>

	<div class="padding-5">
		<?php 
$ProgressBar = new ProgressBar(1, ProgressBarSingle::$COLOR_GREEN);
$ProgressBar->setInline();
$ProgressBar->setAnimated();
$ProgressBar->display();
?>
	</div>

	<div class="c">
		100 &#37;
	</div>

	<p class="text"></p>

	<?php 
$Job = $this->Job();
foreach ($this->Job()->messages() as $message) {
    echo HTML::okay($message);