$ts3widget = new JUI\Widget('plg_ts3viewer', 'settings');
    $jUI->add($ts3widget);
    $jUI->newline();
    $jUI->newline();
}
if ($pluginManager->isInstalled('plg_mcviewer')) {
    $mcwidget = new JUI\Widget('plg_mcviewer', 'settings');
    $jUI->add($mcwidget);
    $jUI->newline();
    $jUI->newline();
}
/* CSGO-Server */
$csgoHeading = new JUI\Heading("CS:GO");
$csgoHeading->setSmall(TRUE);
$jUI->add($csgoHeading);
$table = new JUI\Table();
$row = new JUI\Table\Row();
$row->addColumn("Status:");
ob_start();
passthru('sudo /var/www/sh/csgostatus.sh');
$status = ob_get_clean();
if (strpos($status, "csgo") === false) {
    $csgoStatus = new JUI\Text("Server offline");
    $csgoStatus->setColor("FF0000");
} else {
    $csgoStatus = new JUI\Text("Server offline");
    $csgoStatus->setColor("FF0000");
}
$csgoStatus->setAlign(JUI\Text::RIGHT);
$row->addColumn($csgoStatus);
$table->addRow($row);
    $text->setColor("#FF0000");
} else {
    $text->setColor("#00FF00");
}
$table2 = new JUI\Table();
$table2->setWidth("100%");
$row = new JUI\Table\Row();
$row->addColumn($name);
$row->addColumn($text);
$table2->addRow($row);
$jUI->add($table2);
// END ALL
$jUI->hline();
$jUI->add($table);
$jUI->nline();
$table3 = new JUI\Table();
$table3->setWidth('100%');
$buttonRow = new JUI\Table\Row();
if ($month > 1) {
    $buttonNext = new JUI\Button(date('m Y', $selectedEnd + 3600));
    $buttonNext->setClick(new JUI\Click(JUI\Click::openPlugin, $pluginManager, 'overview', $month - 1));
    $buttonNext->setWidth('100%');
    $buttonRow->addColumn($buttonNext);
} else {
    if ($month == 1) {
        $buttonNext = new JUI\Button("Zeige alles");
        $buttonNext->setClick(new JUI\Click(JUI\Click::openPlugin, $pluginManager, 'overview'));
        $buttonNext->setWidth('100%');
        $buttonRow->addColumn($buttonNext);
    }
}
<?php

$command = $pluginManager->getCommand(0);
if (!empty($command) && is_numeric($command)) {
    require_once $pluginManager->getController('tools');
    $contact = $pluginManager->databaseManager->getValues(array('id' => array('value' => $command)), 1);
    if (!empty($contact) && is_array($contact)) {
        $name = $contact['lastname'] . ',  ' . $contact['firstname'];
        $jUI->add(new JUI\Heading($name));
        $table = new JUI\Table();
        if (!empty($contact['telephone'])) {
            $table->addRow(nameValueRow('Telefon: ', $contact['telephone']));
        }
        if (!empty($contact['mobile'])) {
            $table->addRow(nameValueRow('Mobil: ', $contact['mobile']));
        }
        if (!empty($contact['email'])) {
            $table->addRow(nameValueRow('E-Mail: ', $contact['email']));
        }
        if (!empty($contact['address'])) {
            $addressArray = json_decode($contact['address']);
            $addressString = '';
            if (!empty($addressArray)) {
                if (!empty($addressArray->address)) {
                    $addressString .= $addressArray->address . PHP_EOL;
                }
                if (!empty($addressArray->zipcode)) {
                    $addressString .= $addressArray->zipcode . ' ';
                }
                if (!empty($addressArray->city)) {
                    $addressString .= $addressArray->city . PHP_EOL;
<?php

$values = $pluginManager->databaseManager->getValues(array("value" => array("operator" => ">", "value" => "0", "type" => "i")));
$jUI->add(new JUI\Heading("Einnahmen"));
$table = new JUI\Table();
$table->setWidth("100%");
if (!empty($values) && is_array($values)) {
    foreach ($values as $value) {
        $valuePrice = number_format($value['value'] / 100, 2, ',', '.');
        $name = new JUI\Text($value['name']);
        $text = new JUI\Text($valuePrice . ' €');
        $text->setAlignment(JUI\Text::RIGHT);
        $row = new JUI\Table\Row();
        $row->addColumn($name);
        $row->addColumn($text);
        $row->setClick(new JUI\Click(JUI\Click::openPlugin, $pluginManager, 'entry', $value['id']));
        $table->addRow($row);
    }
}
$jUI->add($table);
function showServerLog($jUI, $id)
{
    global $logManager;
    global $pluginManager;
    $jUI->add(new JUI\Heading("Eintrag:  " . $id));
    $log = $logManager->getLog($id);
    $table = new JUI\Table();
    $row4 = new JUI\Table\Row();
    $row4->addColumn("Plugin");
    if (empty($log['user'])) {
        $statusText = new JUI\Text("Warnung");
        $statusText->setColor('FF0000');
    } else {
        if ($log['plugin'] == "plg_serversettings") {
            $statusText = new JUI\Text("Info");
            $statusText->setColor('00008B');
        } else {
            $statusText = new JUI\Text("Normal");
        }
    }
    $row4->addColumn($statusText);
    $table->addRow($row4);
    $row1 = new JUI\Table\Row();
    $row1->addColumn("Zeit");
    $row1->addColumn(date("Y-m-d H:i:s", $log['timestamp']));
    $table->addRow($row1);
    $row3 = new JUI\Table\Row();
    $row3->addColumn("Plugin");
    $pluginText = new JUI\Text($log['plugin']);
    $pluginText->setAppearance(JUI\Text::BOLD);
    $row3->addColumn($pluginText);
    $table->addRow($row3);
    $row2 = new JUI\Table\Row();
    $row2->addColumn("Nachricht");
    $row2->addColumn($log['text']);
    $table->addRow($row2);
    $jUI->add($table);
    $delete = new JUI\Button('Eintrag löschen');
    $delete->setClick(new JUI\Click(JUI\Click::openPlugin, $pluginManager, 'logs', 'server/' . $id . '/delete'));
    $jUI->add($delete);
}