add org code and modify output
Dieser Commit ist enthalten in:
Ursprung
a06a6050c4
Commit
5888026236
4 geänderte Dateien mit 700 neuen und 12 gelöschten Zeilen
|
|
@ -8,8 +8,6 @@
|
|||
* modified and adapted to Contenido 4.8 under PHP 5.x by Murat Purc (2013-08-24)
|
||||
*/
|
||||
|
||||
use PHPMailer\PHPMailer\PHPMailer;
|
||||
|
||||
$sFrontEndPath = cRegistry::getClientConfig(cRegistry::getClientId())['path']['frontend'] . 'securimage' . DIRECTORY_SEPARATOR;
|
||||
$captchaInstalled = false;
|
||||
if (is_readable($sFrontEndPath)) {
|
||||
|
|
@ -162,7 +160,7 @@ class w3form
|
|||
echo $item;
|
||||
}
|
||||
}
|
||||
|
||||
echo '<input type="submit" value="submit">';
|
||||
echo '</form></div>';
|
||||
}
|
||||
|
||||
|
|
@ -170,16 +168,16 @@ class w3form
|
|||
{
|
||||
$style = '';
|
||||
$value = '';
|
||||
$parameter = "name=\"{$attribute['name']}\"";
|
||||
$parameter = 'name="' . $attribute['name'] . '"';
|
||||
if ($sent && !$this->formFieldCorrect($attribute))
|
||||
$style = "style=\"background-color:{$this->form['colorError']};\"";
|
||||
$style = 'style="background-color: ' . $this->form['colorError'] . ';"';
|
||||
|
||||
switch ($attribute['type']) {
|
||||
case 'select':
|
||||
case 'password':
|
||||
case 'text':
|
||||
if (!empty($attribute['size']))
|
||||
$parameter .= " size=\"{$attribute['size']}\"";
|
||||
$parameter .= ' size="' . $attribute['size'] . '"';
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -187,7 +185,7 @@ class w3form
|
|||
case 'textarea':
|
||||
case 'text':
|
||||
if (!empty($attribute['size']))
|
||||
$parameter .= " size=\"{$attribute['size']}\"";
|
||||
$parameter .= ' size="' . $attribute['size'] . '"';
|
||||
if (!empty($attribute['value']))
|
||||
$value = $attribute['value'];
|
||||
if (!empty($_POST["{$attribute['name']}"]))
|
||||
|
|
@ -435,20 +433,21 @@ class w3form
|
|||
|
||||
}
|
||||
|
||||
if (isset($edit) && $edit) {
|
||||
if (cRegistry::isBackendEditMode()) {
|
||||
echo "<h1>" . mi18n("Formularkonfiguration") . "</h1>";
|
||||
echo "<p>" . mi18n("Hier ist das Formular sowie der Text einzugeben, der zusammen mit dem Formular ausgegeben werden soll:") . "</p>";
|
||||
echo "CMS_HTML[0]";
|
||||
echo "CMS_HTML[100]";
|
||||
echo "<p>" . mi18n("Hier ist die Ausgabe einzugeben, die erscheint, wenn das Formular erfolgreich prozessiert worden ist:") . "</p>";
|
||||
echo "CMS_HTML[1]";
|
||||
echo "CMS_HTML[101]";
|
||||
} else {
|
||||
$form = new w3form($captchaInstalled);
|
||||
$form->addEmailAdress("CMS_VALUE[0]");
|
||||
$form->setEmailSubject("CMS_VALUE[1]");
|
||||
$form->setEmailFrom("CMS_VALUE[2]", "CMS_VALUE[3]");
|
||||
$form->setBackgroundError("CMS_VALUE[4]");
|
||||
$form->setForm("CMS_HTML[0]");
|
||||
$form->setAnswer("CMS_HTML[1]");
|
||||
$form->setForm("CMS_HTML[100]");
|
||||
$form->setAnswer("CMS_HTML[101]");
|
||||
$form->process();
|
||||
}
|
||||
|
||||
?>
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren