diff options
| author | Roger Rehnelt <noreply@maennchen1.de> | 2026-09-27 16:57:43 +0200 |
|---|---|---|
| committer | Roger Rehnelt <noreply@maennchen1.de> | 2026-09-27 16:57:43 +0200 |
| commit | 9d1cc94d9c9b0e566f65f7c59621ce241c383280 (patch) | |
| tree | 9092de146396a8a23272ce7b87207c7ff154b41a /views/mods/mod_request/requestpage.phtml | |
| parent | 6a8746ceefdbd8410805603a3025107d4dc7b70f (diff) | |
Anfrageseite: ausgeblendete Felder (P28), Pflichtstern (B26)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'views/mods/mod_request/requestpage.phtml')
| -rw-r--r-- | views/mods/mod_request/requestpage.phtml | 58 |
1 files changed, 41 insertions, 17 deletions
diff --git a/views/mods/mod_request/requestpage.phtml b/views/mods/mod_request/requestpage.phtml index bc6cd8d..9221cd4 100644 --- a/views/mods/mod_request/requestpage.phtml +++ b/views/mods/mod_request/requestpage.phtml @@ -278,14 +278,17 @@ <h2><?php echo __('Kontaktdaten', 'wpsg'); ?></h2>
+ <?php if ($this->view['pflicht']['firma'] != '2') { ?>
<div class="wpsg_checkoutblock" id="wpsg_firma">
- <label for="wpsg_firma" class="wpsg_checkout"><?php echo __("Firma", "wpsg"); ?><?php if ($this->view['pflicht']['firma'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="wpsg_firma" class="wpsg_checkout"><?php echo __("Firma", "wpsg"); ?>:<?php if ($this->view['pflicht']['firma'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
</label>
<input class="<?php echo (($this->view['pflicht']['firma'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("firma", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="wpsg_firma" name="wpsg[request][customer][firma]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['firma'])); ?>" />
</div>
+ <?php } ?>
+ <?php if ($this->view['pflicht']['anrede'] != '2') { ?>
<div class="wpsg_checkoutblock" id="wpsg_anrede">
- <label for="wpsg_title" class="wpsg_checkout"><?php echo __('Anrede', 'wpsg'); ?><?php if ($this->view['pflicht']['anrede'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:</label>
+ <label for="wpsg_title" class="wpsg_checkout"><?php echo __('Anrede', 'wpsg'); ?>:<?php if ($this->view['pflicht']['anrede'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?></label>
<select class="<?php echo (($this->view['pflicht']['anrede'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("title", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_title" name="wpsg[request][customer][title]">
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
@@ -293,61 +296,73 @@ <?php } ?>
</select>
</div>
+ <?php } ?>
+ <?php if ($this->view['pflicht']['vname'] != '2') { ?>
<div class="wpsg_checkoutblock" id="wpsg_vorname">
- <label for="vname" class="wpsg_checkout"><?php echo __("Vorname", "wpsg"); ?><?php if ($this->view['pflicht']['vname'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="vname" class="wpsg_checkout"><?php echo __("Vorname", "wpsg"); ?>:<?php if ($this->view['pflicht']['vname'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
</label>
<input class="<?php echo (($this->view['pflicht']['vname'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("vname", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="vname" name="wpsg[request][customer][vname]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['vname'])); ?>" />
</div>
+ <?php } ?>
+ <?php if ($this->view['pflicht']['name'] != '2') { ?>
<div class="wpsg_checkoutblock" id="wpsg_name">
- <label for="name" class="wpsg_checkout"><?php echo __("Name", "wpsg"); ?><?php if ($this->view['pflicht']['name'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="name" class="wpsg_checkout"><?php echo __("Name", "wpsg"); ?>:<?php if ($this->view['pflicht']['name'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
</label>
<input class="<?php echo (($this->view['pflicht']['name'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("name", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="name" name="wpsg[request][customer][name]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['name'])); ?>" />
</div>
+ <?php } ?>
<div class="wpsg_checkoutblock" id="wpsg_email">
- <label for="email" class="wpsg_checkout"><?php echo __("E-Mail Adresse", "wpsg"); ?><?php if ($this->view['pflicht']['email'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="email" class="wpsg_checkout"><?php echo __("E-Mail Adresse", "wpsg"); ?>:<?php if ($this->view['pflicht']['email'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
</label>
<input class="<?php echo (($this->view['pflicht']['email'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("email", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="email" name="wpsg[request][customer][email]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['email'])); ?>" />
</div>
<?php if (wpsg_isSizedInt($this->view['pflicht']['emailconfirm'])) { ?>
<div class="wpsg_checkoutblock" id="wpsg_email2">
- <label for="email" class="wpsg_checkout"><?php echo __("E-Mail (Wiederholung)", "wpsg"); ?><?php if ($this->view['pflicht']['email'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="email" class="wpsg_checkout"><?php echo __("E-Mail (Wiederholung)", "wpsg"); ?>:<?php if ($this->view['pflicht']['email'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
</label>
<input class="<?php echo (($this->view['pflicht']['email'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("email", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="email2" name="wpsg[request][customer][email2]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['email2'])); ?>" />
</div>
<?php } ?>
+ <?php if ($this->view['pflicht']['geb'] != '2') { ?>
<div class="wpsg_checkoutblock" id="wpsg_geburtsdatum">
- <label for="geb" class="wpsg_checkout"><?php echo __('Geburtsdatum (Format: TT.MM.JJJJ)',"wpsg"); ?><?php if ($this->view['pflicht']['geb'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="geb" class="wpsg_checkout"><?php echo __('Geburtsdatum (Format: TT.MM.JJJJ)',"wpsg"); ?>:<?php if ($this->view['pflicht']['geb'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
</label>
<input class="<?php echo (($this->view['pflicht']['geb'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("geb", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="geb" name="wpsg[request][customer][geb]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['geb'])); ?>" />
</div>
+ <?php } ?>
+ <?php if ($this->view['pflicht']['fax'] != '2') { ?>
<div class="wpsg_checkoutblock" id="wpsg_fax">
- <label for="fax" class="wpsg_checkout"><?php echo __("Fax.", "wpsg"); ?><?php if ($this->view['pflicht']['fax'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="fax" class="wpsg_checkout"><?php echo __("Fax.", "wpsg"); ?>:<?php if ($this->view['pflicht']['fax'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
</label>
<input class="<?php echo (($this->view['pflicht']['fax'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("fax", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="fax" name="wpsg[request][customer][fax]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['fax'])); ?>" />
</div>
+ <?php } ?>
+ <?php if ($this->view['pflicht']['tel'] != '2') { ?>
<div class="wpsg_checkoutblock" id="wpsg_telefon">
- <label for="tel" class="wpsg_checkout"><?php echo __("Tel.", "wpsg"); ?><?php if ($this->view['pflicht']['tel'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="tel" class="wpsg_checkout"><?php echo __("Tel.", "wpsg"); ?>:<?php if ($this->view['pflicht']['tel'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
</label>
<input class="<?php echo (($this->view['pflicht']['tel'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("tel", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="tel" name="wpsg[request][customer][tel]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['tel'])); ?>" />
</div>
+ <?php } ?>
+ <?php if ($this->view['pflicht']['strasse'] != '2') { ?>
<div class="wpsg_checkoutblock" id="wpsg_strasse">
<?php if ($this->view['pflicht']['wpsg_showNr'] === '1') { ?>
<div class="wpsg_checkoutblock" id="wpsg_streetnr">
- <label for="strasse" class="street wpsg_checkout"><?php echo __("Straße", "wpsg"); ?><?php if ($this->view['pflicht']['strasse'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="strasse" class="street wpsg_checkout"><?php echo __("Straße", "wpsg"); ?>:<?php if ($this->view['pflicht']['strasse'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
<input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("strasse", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="strasse" name="wpsg[request][customer][strasse]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['strasse'])); ?>" />
</label>
- <label for="nr" class="nr wpsg_checkout"><?php echo __('Nr', 'wpsg'); ?><?php if ($this->view['pflicht']['strasse'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="nr" class="nr wpsg_checkout"><?php echo __('Nr', 'wpsg'); ?>:<?php if ($this->view['pflicht']['strasse'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
<input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("nr", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="nr" name="wpsg[request][customer][nr]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['requestlist']['customer']['nr'])); ?>" />
</label>
@@ -355,28 +370,34 @@ <?php } else { ?>
- <label for="strasse" class="wpsg_checkout"><?php echo __("Straße Nr.", "wpsg"); ?><?php if ($this->view['pflicht']['strasse'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="strasse" class="wpsg_checkout"><?php echo __("Straße Nr.", "wpsg"); ?>:<?php if ($this->view['pflicht']['strasse'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
</label>
<input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("strasse", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="strasse" name="wpsg[request][customer][strasse]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['strasse'])); ?>" />
<?php } ?>
</div>
+ <?php } ?>
+ <?php if ($this->view['pflicht']['plz'] != '2') { ?>
<div class="wpsg_checkoutblock" id="wpsg_postleitzahl">
- <label for="plz" class="wpsg_checkout"><?php echo __("Postleitzahl", "wpsg"); ?><?php if ($this->view['pflicht']['plz'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="plz" class="wpsg_checkout"><?php echo __("Postleitzahl", "wpsg"); ?>:<?php if ($this->view['pflicht']['plz'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
</label>
<input class="<?php echo (($this->view['pflicht']['plz'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("plz", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="plz" name="wpsg[request][customer][plz]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['plz'])); ?>" />
</div>
+ <?php } ?>
+ <?php if ($this->view['pflicht']['ort'] != '2') { ?>
<div class="wpsg_checkoutblock" id="wpsg_ort">
- <label for="ort" class="wpsg_checkout"><?php echo __("Ort", "wpsg"); ?><?php if ($this->view['pflicht']['ort'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="ort" class="wpsg_checkout"><?php echo __("Ort", "wpsg"); ?>:<?php if ($this->view['pflicht']['ort'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
</label>
<input class="<?php echo (($this->view['pflicht']['ort'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("ort", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="ort" name="wpsg[request][customer][ort]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['ort'])); ?>" />
</div>
+ <?php } ?>
+ <?php if ($this->view['pflicht']['land'] != '2') { ?>
<div class="wpsg_checkoutblock" id="wpsg_land">
- <label for="wpsg_land" class="wpsg_checkout"><?php echo __("Land", "wpsg"); ?><?php if ($this->view['pflicht']['land'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="wpsg_land" class="wpsg_checkout"><?php echo __("Land", "wpsg"); ?>:<?php if ($this->view['pflicht']['land'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
</label>
<select name="wpsg[request][customer][land]" class="<?php echo (($this->view['pflicht']['land'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("land", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_land">
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
@@ -385,19 +406,22 @@ <?php } ?>
</select>
</div>
+ <?php } ?>
+ <?php if ($this->view['pflicht']['ustidnr'] != '2') { ?>
<div class="wpsg_checkoutblock" id="wpsg_ustidnr">
- <label for="wpsg_ustidnr" class="wpsg_checkout"><?php echo __("UStIdNr.", "wpsg"); ?><?php if ($this->view['pflicht']['ustidnr'] != '1') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <label for="wpsg_ustidnr" class="wpsg_checkout"><?php echo __("UStIdNr.", "wpsg"); ?>:<?php if ($this->view['pflicht']['ustidnr'] != '1') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
</label>
<input class="<?php echo (($this->view['pflicht']['ustidnr'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("ustidnr", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="wpsg_ustidnr" name="wpsg[request][customer][ustidnr]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['ustidnr'])); ?>" />
</div>
+ <?php } ?>
<?php /* Automatische Einbindung der benutzerdefinierten Felder */ ?>
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_customerdata'))) { ?>
<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
<div class="wpsg_checkoutblock">
<label class="wpsg_cv wpsg_checkout" for="wpsg_cv_<?php echo $c_id; ?>">
- <?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
+ <?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?>:<?php if ($c['show'] == '0') { ?> <span class=\"wpsg_required\">*</span><?php } ?>
</label>
<?php if ($c['typ'] == '0') { // Textfeld ?>
<input id="wpsg_cv_<?php echo $c_id; ?>" class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> <?php echo ((in_array("custom_".$c_id, (array)$this->view['error']))?'wpsg_error':''); ?>" name="wpsg[request][customer][custom][<?php echo $c_id; ?>]" type="text" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['custom'][$c_id])); ?>" />
|
