Liste

list as $index => $item) { if ($index % 2 == 0) { $color_theme = "bg-primary"; $button_theme = "btn-primary"; } else { $color_theme = "bg-secondary"; $button_theme = "btn-secondary"; } if ($item->Erledigt) { $div_item_row_color_classes = "bg-success"; $button_dropdown_color_classes = "btn-success"; $checked = "checked"; } else { $div_item_row_color_classes = $color_theme; $button_dropdown_color_classes = $button_theme; $checked = ""; } print_r("
"); print_r("
"); print_r("
$item->Anzahl $item->Einheit
"); print_r("
$item->Name
"); print_r(""); print_r("
"); } ?>