Line 6... |
Line 6... |
6 |
|
6 |
|
7 |
?>
|
7 |
?>
|
8 |
|
8 |
|
9 |
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_bezeichnung', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_prepayment_bezeichnung'), array('help' => 'wpsg_mod_prepayment_bezeichnung')); ?>
|
9 |
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_bezeichnung', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_prepayment_bezeichnung'), array('help' => 'wpsg_mod_prepayment_bezeichnung')); ?>
|
10 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_prepayment_aktiv', __('Aktiv', 'wpsg'), $this->get_option('wpsg_mod_prepayment_aktiv'), array('help' => 'wpsg_mod_prepayment_aktiv')); ?>
|
10 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_prepayment_aktiv', __('Aktiv', 'wpsg'), $this->get_option('wpsg_mod_prepayment_aktiv'), array('help' => 'wpsg_mod_prepayment_aktiv')); ?>
|
11 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_prepayment_qrcode', __('QR-Code auf Bestellabschlussseite anzeigen', 'wpsg'), $this->get_option('wpsg_mod_prepayment_qrcode'), array('help' => 'wpsg_mod_prepayment_qrcode')); ?>
|
11 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_prepayment_qrcode', __('QR-Code anzeigen', 'wpsg'), $this->get_option('wpsg_mod_prepayment_qrcode'), array('help' => 'wpsg_mod_prepayment_qrcode')); ?>
|
- |
|
12 |
<div id="wpsg_mod_prepayment_qrcode_country_layer" style="display: none;">
|
- |
|
13 |
<?php echo wpsg_drawForm_Select('wpsg_mod_prepayment_qrcode_country', __('QR-Code für', 'wpsg'), Array(
|
- |
|
14 |
wpsg_mod_prepayment::QRCODE_BOTH => __('Beide', 'wpsg'),
|
- |
|
15 |
wpsg_mod_prepayment::QRCODE_EPC => __('EPC QR-Code', 'wpsg'),
|
- |
|
16 |
wpsg_mod_prepayment::QRCODE_SWISS => __('Swiss QR-Code', 'wpsg')
|
- |
|
17 |
), $this->get_option('wpsg_mod_prepayment_qrcode_country'), array('help' => 'wpsg_mod_prepayment_qrcode_country')); ?>
|
12 |
|
18 |
</div>
|
13 |
|
19 |
|
14 |
<?php echo wpsg_drawForm_Textarea('wpsg_mod_prepayment_hint', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_prepayment_hint'), array('help' => 'wpsg_mod_prepayment_hint')); ?>
|
20 |
<?php echo wpsg_drawForm_Textarea('wpsg_mod_prepayment_hint', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_prepayment_hint'), array('help' => 'wpsg_mod_prepayment_hint')); ?>
|
15 |
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_subject', __('Betreff für Überweisungen', 'wpsg'), $this->get_option('wpsg_mod_prepayment_subject'), array('help' => 'mod_prepayment_subject')); ?>
|
21 |
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_subject', __('Betreff für Überweisungen', 'wpsg'), $this->get_option('wpsg_mod_prepayment_subject'), array('help' => 'mod_prepayment_subject')); ?>
|
16 |
|
22 |
|
17 |
<br />
|
23 |
<br />
|
Line 21... |
Line 27... |
21 |
|
27 |
|
22 |
<br />
|
28 |
<br />
|
23 |
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_kinhaber', __('Kontoinhaber', 'wpsg'), $this->get_option('wpsg_mod_prepayment_kinhaber'), array('help' => 'wpsg_mod_prepayment_kinhaber')); ?>
|
29 |
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_kinhaber', __('Kontoinhaber', 'wpsg'), $this->get_option('wpsg_mod_prepayment_kinhaber'), array('help' => 'wpsg_mod_prepayment_kinhaber')); ?>
|
24 |
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_bank', __('Bank', 'wpsg'), $this->get_option('wpsg_mod_prepayment_bank'), array('help' => 'wpsg_mod_prepayment_bank')); ?>
|
30 |
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_bank', __('Bank', 'wpsg'), $this->get_option('wpsg_mod_prepayment_bank'), array('help' => 'wpsg_mod_prepayment_bank')); ?>
|
25 |
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_iban', __('IBAN', 'wpsg'), $this->get_option('wpsg_mod_prepayment_iban'), array('help' => 'wpsg_mod_prepayment_iban')); ?>
|
31 |
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_iban', __('IBAN', 'wpsg'), $this->get_option('wpsg_mod_prepayment_iban'), array('help' => 'wpsg_mod_prepayment_iban')); ?>
|
26 |
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_swift', __('BIC-/SWIFT Code', 'wpsg'), $this->get_option('wpsg_mod_prepayment_swift'), array('help' => 'wpsg_mod_prepayment_swift')); ?>
|
- |
|
27 |
|
32 |
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_qriban', __('QR-IBAN', 'wpsg'), $this->get_option('wpsg_mod_prepayment_qriban'), array('help' => 'wpsg_mod_prepayment_qriban')); ?>
|
- |
|
33 |
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_swift', __('BIC-/SWIFT Code', 'wpsg'), $this->get_option('wpsg_mod_prepayment_swift'), array('help' => 'wpsg_mod_prepayment_swift')); ?>
|
- |
|
34 |
<?php echo wpsg_drawForm_Input('wpsg_mod_prepayment_besr', __('BESR-ID', 'wpsg'), $this->get_option('wpsg_mod_prepayment_besr'), array('help' => 'wpsg_mod_prepayment_besr')); ?>
|
- |
|
35 |
|
- |
|
36 |
<script>
|
- |
|
37 |
|
- |
|
38 |
document.addEventListener("DOMContentLoaded", function() {
|
- |
|
39 |
|
- |
|
40 |
var qrcodeAktiveCheckbox = document.getElementById('wpsg_mod_prepayment_qrcode');
|
- |
|
41 |
var qrcodeSelectDiv = document.getElementById('wpsg_mod_prepayment_qrcode_country_layer');
|
- |
|
42 |
|
- |
|
43 |
|
- |
|
44 |
function toggleDivVisibility(checkbox, div)
|
- |
|
45 |
{
|
- |
|
46 |
|
- |
|
47 |
if (checkbox.checked) div.style.display = "block";
|
- |
|
48 |
else div.style.display = "none";
|
- |
|
49 |
|
- |
|
50 |
}
|
- |
|
51 |
|
- |
|
52 |
// Event Listener für die Checkboxen
|
- |
|
53 |
qrcodeAktiveCheckbox.addEventListener("change", function() {
|
- |
|
54 |
toggleDivVisibility(qrcodeAktiveCheckbox, qrcodeSelectDiv);
|
- |
|
55 |
});
|
- |
|
56 |
|
- |
|
57 |
// Überprüfen und Initialisieren des Anfangszustands der Checkboxen
|
- |
|
58 |
toggleDivVisibility(qrcodeAktiveCheckbox, qrcodeSelectDiv);
|
- |
|
59 |
|
- |
|
60 |
});
|
- |
|
61 |
|
- |
|
62 |
</script>
|
- |
|
63 |
|