group_id = $group_id; $this->name = $name; $this->new = $new; } function getHtml() { $html = ""; $html .= "
\n"; $html .= "
group_id."\" action=\"configuration.php\" method=\"POST\">\n"; $html .= "\n"; $html .= "\n"; $html .= "\n"; $html .= "\n"; $html .= "\n"; $html .= "\n"; $html .= "\n"; if($this->new) { $html .= "\n"; $html .= "\n"; } else { $html .= "\n"; $html .= "\n"; $html .= "\n"; } $html .= "\n"; $html .= "
\n"; $label = new NTKLabel("group_id_label", "Nummer"); $html .= $label->getHtml(); $html .= "\n"; $entry = new NTKEntry("group_id", $this->group_id); $html .= $entry->getHtml(); $html .= "\n"; $label = new NTKLabel("group_name_label", "Bezeichnung"); $html .= $label->getHtml(); $html .= "\n"; $entry = new NTKEntry("group_name", $this->name); $html .= $entry->getHtml(); $html .= "\n"; $button = new NTKButton("button_delete", "hinzufügen", "document.forms['group_form_".$this->group_id."'].submit();"); $html .= $button->getHtml(); $html .= "\n"; $button = new NTKButton("button_edit", "ok", "document.forms['group_form_".$this->group_id."'].submit();"); $html .= $button->getHtml(); $html .= "\n"; $button = new NTKButton("button_delete", "löschen", "location.href = 'configuration.php?page=group&action=delete&group_id=".$this->group_id."';"); $html .= $button->getHtml(); $html .= "
\n"; $html .= "
\n"; $html .= "
\n"; return $html; } } ?>