forked from itchy/Dialyse-Webseite
Website Update Gemini - 1st run.
This commit is contained in:
1 parent
eb28b95cd4
commit
911b8864ca
31 files changed
+3076
-809
No files matched your search
+67
-40
@@ -1,59 +1,86 @@
|
||||
<?php
|
||||
$form = $session->get('form');
|
||||
/* @var Session $session */
|
||||
$form = $session->get('form');
|
||||
?>
|
||||
<style type="text/css">
|
||||
#outer-content {
|
||||
background-image: url('/img/bg_leistungen.jpg');
|
||||
}
|
||||
</style>
|
||||
<div id="kontaktform">
|
||||
|
||||
<div class="form-card">
|
||||
<?php if($session->has('alert')): ?>
|
||||
<div class="alert <?=$session->get('alert-class')?>">
|
||||
<?=$session->get('alert')?>
|
||||
<?php if($session->get('alert-class') === 'alert-success'): ?>
|
||||
<svg style="width: 22px; height: 22px; fill: currentColor; flex-shrink: 0;" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>
|
||||
<?php else: ?>
|
||||
<svg style="width: 22px; height: 22px; fill: currentColor; flex-shrink: 0;" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>
|
||||
<?php endif; ?>
|
||||
<div><?=$session->get('alert')?></div>
|
||||
</div>
|
||||
<?php $session->remove('alert'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<h1>Ihre Kontaktanfrage</h1>
|
||||
|
||||
<form action="/contact.php" method="post">
|
||||
<input type="hidden" name="timestamp" value="<?=time()?>" />
|
||||
<input type="hidden" name="check" value="<?=(isset($form) && $form['check'] ? 'send' : '0')?>" />
|
||||
<p style="color: var(--text-muted); margin-bottom: 2rem;">
|
||||
Hier können Sie, unter Angabe Ihrer Kontaktdaten, eine persönliche Anfrage stellen.
|
||||
Die mit einem (<span style="color: var(--danger); font-weight: bold;">*</span>) gekennzeichneten Felder sind Pflichtfelder.
|
||||
Bitte geben Sie entweder eine E-Mailadresse oder Ihre Telefonnummer an, damit wir Sie erreichen können.
|
||||
</p>
|
||||
|
||||
<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>
|
||||
<form action="/contact.php" method="post" id="contactForm">
|
||||
<input type="hidden" name="timestamp" value="<?=time()?>">
|
||||
<input type="hidden" name="check" id="formCheck" value="<?=(isset($form) && !empty($form['check']) ? 'send' : '0')?>">
|
||||
|
||||
<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 />
|
||||
<!-- Honeypot Bot Field (hidden from real users) -->
|
||||
<div style="display: none;" aria-hidden="true">
|
||||
<label for="company">Firma (Bitte freilassen)</label>
|
||||
<input type="text" name="company" id="company" tabindex="-1" autocomplete="off" value="">
|
||||
</div>
|
||||
|
||||
<?php if(false): ?>
|
||||
<div class="ktColumn"><label for="captchaImg"> </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 class="form-row">
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="surname">Vorname</label>
|
||||
<input type="text" class="form-control" name="surname" id="surname" placeholder="Ihr Vorname" value="<?=isset($form) ? htmlspecialchars($form['surname']) : ''?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="name">Nachname <span class="required">*</span></label>
|
||||
<input type="text" class="form-control" name="name" id="name" required placeholder="Ihr Nachname" value="<?=isset($form) ? htmlspecialchars($form['name']) : ''?>">
|
||||
</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 class="form-row">
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="email">E-Mail-Adresse <span class="required">*</span></label>
|
||||
<input type="email" class="form-control" name="email" id="email" required placeholder="ihre.adresse@example.de" value="<?=isset($form) ? htmlspecialchars($form['email']) : ''?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="phone">Telefonnummer <span class="required">*</span></label>
|
||||
<input type="tel" class="form-control" name="phone" id="phone" required placeholder="030 12345678" value="<?=isset($form) ? htmlspecialchars($form['phone']) : ''?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="kontaktbuttons">
|
||||
<input type="button" name="abort" value="Abbrechen" onclick="history.back(-1);" />
|
||||
<input type="submit" name="send" value="Absenden" />
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="message">Ihre Mitteilung <span class="required">*</span></label>
|
||||
<textarea class="form-control" name="message" id="message" required rows="6" placeholder="Wie können wir Ihnen weiterhelfen?"><?=isset($form) ? htmlspecialchars($form['message']) : ''?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-note">
|
||||
<svg style="width: 16px; height: 16px; fill: currentColor; vertical-align: middle; margin-right: 4px;" viewBox="0 0 24 24"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/></svg>
|
||||
Ihre persönlichen Daten werden von uns nicht gespeichert und ausschließlich zur Kontaktaufnahme verwendet. Wir werden Ihre Angaben niemals an Dritte weitergeben.
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="button" class="btn btn-outline-primary" onclick="history.back();">Abbrechen</button>
|
||||
<button type="submit" class="btn btn-primary" name="send">
|
||||
<svg style="width: 18px; height: 18px; fill: currentColor;" viewBox="0 0 24 24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>
|
||||
Anfrage absenden
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
function reloadCaptcha(objID) {
|
||||
var now = new Date().getTime();
|
||||
var obj = $(objID);
|
||||
var imageURL = obj.src.split("?")[0];
|
||||
obj.src = imageURL + "?" + now;
|
||||
}
|
||||
//-->
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
// Human interaction verification for bot protection
|
||||
$('#contactForm input, #contactForm textarea').one('focus', function() {
|
||||
$('#formCheck').val('send');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in new issue
Block a user