diff --git a/php/cl_contactform_input.php b/php/cl_contactform_input.php index 12808a6..d375213 100644 --- a/php/cl_contactform_input.php +++ b/php/cl_contactform_input.php @@ -10,32 +10,51 @@ */ cInclude('frontend', 'includes/class.input.helper.php'); -$oCfgTable = new UI_Config_Table(); +$uiConfigTable = new UI_Config_Table(); -$oField = new cHTMLTextbox("CMS_VAR[0]", "CMS_VALUE[0]"); -$oField->setWidth(30); -$oCfgTable->setCell(0, 0, mi18n("Zieladresse (alias@mydomain.com):")); -$oCfgTable->setCell(0, 1, $oField->render()); +$htmlField = new cHTMLSelectElement("CMS_VAR[10]", 200); +$htmlField->autoFill([ + 'null' => mi18n("Bitte wählen"), + 'mail' => mi18n("Mail (PHP)"), + 'sendmail' => mi18n("Sendmail"), + 'smtp' => mi18n("SMTP"), + 'smtp_auth' => mi18n("SMTP mit oAuth") +]); +$htmlField->setDefault("CMS_VALUE[10]"); +$uiConfigTable->setRowCell(0, mi18n("Versand mit:")); +$uiConfigTable->setRowCell(1, $htmlField->render()); +$uiConfigTable->nextRow(); -$oField = new cHTMLTextbox("CMS_VAR[1]", "CMS_VALUE[1]"); -$oField->setWidth(30); -$oCfgTable->setCell(1, 0, mi18n("Betreff:")); -$oCfgTable->setCell(1, 1, $oField->render()); +$htmlField = new cHTMLTextbox("CMS_VAR[0]", "CMS_VALUE[0]"); +$htmlField->setWidth(30); +$uiConfigTable->setRowCell(0, mi18n("Zieladresse (alias@mydomain.com):")); +$uiConfigTable->setRowCell(1, $htmlField->render()); +$uiConfigTable->nextRow(); -$oField = new cHTMLTextbox("CMS_VAR[2]", "CMS_VALUE[2]"); -$oField->setWidth(30); -$oCfgTable->setCell(2, 0, mi18n("Antwortadresse (alias@mydomain.com):")); -$oCfgTable->setCell(2, 1, $oField->render()); +$htmlField = new cHTMLTextbox("CMS_VAR[1]", "CMS_VALUE[1]"); +$htmlField->setWidth(30); +$uiConfigTable->setRowCell(0, mi18n("Betreff:")); +$uiConfigTable->setRowCell(1, $htmlField->render()); +$uiConfigTable->nextRow(); -$oField = new cHTMLTextbox("CMS_VAR[3]", "CMS_VALUE[3]"); -$oField->setWidth(30); -$oCfgTable->setCell(3, 0, mi18n("Emailname (z.B. Vorname Name):")); -$oCfgTable->setCell(3, 1, $oField->render()); +$htmlField = new cHTMLTextbox("CMS_VAR[2]", "CMS_VALUE[2]"); +$htmlField->setWidth(30); +$uiConfigTable->setRowCell(0, mi18n("Antwortadresse (alias@mydomain.com):")); +$uiConfigTable->setRowCell(1, $htmlField->render()); +$uiConfigTable->nextRow(); -$oField = new cHTMLTextbox("CMS_VAR[4]", "CMS_VALUE[4]"); -$oField->setWidth(8); -$oCfgTable->setCell(4, 0, mi18n("Hintergrundfarbe bei Fehlern (z.B. red):")); -$oCfgTable->setCell(4, 1, $oField->render()); -$oCfgTable->render(true); +$htmlField = new cHTMLTextbox("CMS_VAR[3]", "CMS_VALUE[3]"); +$htmlField->setWidth(30); +$uiConfigTable->setRowCell(0, mi18n("Emailname (z.B. Vorname Name):")); +$uiConfigTable->setRowCell(1, $htmlField->render()); +$uiConfigTable->nextRow(); + +$htmlField = new cHTMLTextbox("CMS_VAR[4]", "CMS_VALUE[4]"); +$htmlField->setWidth(8); +$uiConfigTable->setRowCell(0, mi18n("Hintergrundfarbe bei Fehlern (z.B. red):")); +$uiConfigTable->setRowCell(1, $htmlField->render()); +$uiConfigTable->nextRow(); + +$uiConfigTable->render(true); ?>