AI redesign, version 1

This commit is contained in:
chriz
2026-08-12 15:09:39 +02:00
parent eb28b95cd4
commit e9d9ba421e
15 changed files with 1777 additions and 381 deletions
+43 -26
View File
@@ -1,48 +1,65 @@
<?php
$form = $session->get('form');
?>
<style type="text/css">
#outer-content {
background-image: url('/img/bg_leistungen.jpg');
}
</style>
<div id="kontaktform">
<?php if($session->has('alert')): ?>
<div class="alert <?=$session->get('alert-class')?>">
<div class="alert alert-<?=$session->get('alert-class')?>">
<?=$session->get('alert')?>
</div>
<?php $session->remove('alert'); ?>
<?php endif; ?>
<h1>Ihre Kontaktanfrage</h1>
<form action="/contact.php" method="post">
<p><strong>Wir freuen uns auf Ihre Nachricht!</strong></p>
<p>Füllen Sie bitte das unten stehende Formular aus. Mit einem (*) gekennzeichnete Felder sind Pflichtfelder.</p>
<p><em>Wichtig:</em> Geben Sie bitte entweder eine E-Mailadresse oder eine Telefonnummer an, damit wir Sie erreichen können.</p>
<form action="/contact.php" method="post" style="margin-top: 2rem;">
<input type="hidden" name="timestamp" value="<?=time()?>" />
<input type="hidden" name="check" value="<?=(isset($form) && $form['check'] ? 'send' : '0')?>" />
<p>Hier können Sie, unter Angabe ihrer Kontaktdaten, eine persönliche Anfrage stellen. Die mit einem (*) gekennzeichneten Felder sind Pflichtfelder. Bitte geben Sie entweder eine E-Mailadresse oder ihre Telefonnummer an, damit wir Sie erreichen können.</p>
<!-- Hidden spam trap -->
<div style="display: none;"><label for="company">Firma</label> <input type="text" name="company" id="company" value="" /></div>
<div style="display: none;"><label for="Company">Firma</label> <input type="text" name="company" id="company" value="" /></div>
<div class="ktColumn"><label for="surname">Vorname</label> <input type="text" name="surname" id="surname" value="<?=isset($form) ? $form['surname'] : ''?>" /></div>
<div class="ktColumn"><label for="name">Nachname*</label> <input type="text" name="name" id="name" value="<?=isset($form) ? $form['name'] : ''?>" /></div>
<div class="clear"></div>
<div class="ktColumn"><label for="email">E-Mail*</label> <input type="text" name="email" id="email" value="<?=isset($form) ? $form['email'] : ''?>" /></div>
<div class="ktColumn"><label for="phone">Telefon*</label> <input type="text" name="phone" id="phone" value="<?=isset($form) ? $form['phone'] : ''?>" /></div>
<div class="clear"></div>
<label for="message">Mitteilung*</label> <textarea name="message" id="message"><?=isset($form) ? $form['message'] : ''?></textarea>
<br />
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem;">
<div>
<label for="surname">Vorname</label>
<input type="text" name="surname" id="surname" value="<?=isset($form) ? htmlspecialchars($form['surname']) : ''?>" />
</div>
<div>
<label for="name">Nachname <span style="color: #ff6b35;">*</span></label>
<input type="text" name="name" id="name" value="<?=isset($form) ? htmlspecialchars($form['name']) : ''?>" required />
</div>
</div>
<?php if(false): ?>
<div class="ktColumn"><label for="captchaImg">&nbsp;</label> <img id="captchaImg" src="/captcha.png?t=<?=time()?>" /> <a href="javascript:void(0);" onclick="reloadCaptcha('captchaImg');" title="Captcha neu laden"><img src="/img/icon_refresh.png" alt="" /></a></div>
<div class="clear"></div>
<div class="ktColumn"><label for="captcha">Captcha*</label> <input type="text" name="captcha" id="captcha" /></div>
<div class="clear"></div>
<?php endif; ?>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem;">
<div>
<label for="email">E-Mail <span style="color: #ff6b35;">*</span></label>
<input type="email" name="email" id="email" value="<?=isset($form) ? htmlspecialchars($form['email']) : ''?>" />
</div>
<div>
<label for="phone">Telefon <span style="color: #ff6b35;">*</span></label>
<input type="tel" name="phone" id="phone" value="<?=isset($form) ? htmlspecialchars($form['phone']) : ''?>" />
</div>
</div>
<p>Ihre persönlichen Daten werden von uns nicht gespeichert und lediglich zur Kontaktaufnahme verwendet. Wir werden ihre persönlichen Daten nicht an Dritte weitergeben.</p>
<div style="margin-bottom: 1.5rem;">
<label for="message">Nachricht <span style="color: #ff6b35;">*</span></label>
<textarea name="message" id="message" required><?=isset($form) ? htmlspecialchars($form['message']) : ''?></textarea>
</div>
<div style="background: var(--primary-light); padding: 1.5rem; border-radius: 6px; margin-bottom: 2rem; font-size: 0.95rem;">
<p style="margin: 0;">
<strong>Datenschutz:</strong> Ihre persönlichen Daten werden von uns nicht gespeichert und lediglich zur Kontaktaufnahme verwendet.
Wir werden Ihre persönlichen Daten nicht an Dritte weitergeben.
</p>
</div>
<div id="kontaktbuttons">
<input type="button" name="abort" value="Abbrechen" onclick="history.back(-1);" />
<input type="submit" name="send" value="Absenden" />
<button type="button" name="abort" class="btn" onclick="history.back(-1);" style="background: #666;">Abbrechen</button>
<button type="submit" name="send" class="btn" style="background: var(--primary-color);">Absenden</button>
</div>
</form>
</div>