'Beschriftung', …] */
function ui_tab_bar(array $tabs): void
{
echo '
';
foreach ($tabs as $key => $label) {
echo '';
}
echo '
';
}
/** Status-Auswahl (Aktiv/Deaktiviert) als Radio-Buttons; Feldname "status" mit den Werten active|inactive. */
function ui_status_radios(bool $active, string $inactiveLabel = 'Deaktiviert'): void
{
echo '';
echo '';
echo '';
echo '
';
}
/** Datum für Listenspalten ("–" bei leer). */
function ui_date(?string $dt): string
{
return $dt ? date('d.m.Y H:i', strtotime($dt)) : '–';
}