Line 67... |
Line 67... |
67 |
|
67 |
|
68 |
</script>
|
68 |
</script>
|
69 |
|
69 |
|
70 |
<br />
|
70 |
<br />
|
71 |
|
71 |
|
72 |
<div class="wpsg_mod_expiremode wpsg_mod_expiremode_<?php echo wpsg_mod_abo::EXPIRE_AUTO; ?>" style="display:<?php echo (($this->get_option('wpsg_mod_abo_expiremode') == wpsg_mod_abo::EXPIRE_AUTO)?'block':'none'); ?>;">
|
72 |
<div id="wpsg_mod_abo_expiremode_auto_layer" style="display:none;">
|
73 |
|
73 |
|
74 |
<?php /* TODO: Mehrfachauswahl von Zahlungsarten */ ?>
|
74 |
<?php /* TODO: Mehrfachauswahl von Zahlungsarten */ ?>
|
75 |
<?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_payment', __('Zahlungsart für automatische Verlängerung', 'wpsg'), $arPaymentSelect, $this->get_option('wpsg_mod_abo_autoexpire_payment'), array('help' => 'wpsg_mod_abo_autoexpire_payment')); ?>
|
75 |
<?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_payment', __('Zahlungsart für automatische Verlängerung', 'wpsg'), $arPaymentSelect, $this->get_option('wpsg_mod_abo_autoexpire_payment'), array('help' => 'wpsg_mod_abo_autoexpire_payment')); ?>
|
76 |
|
76 |
|
77 |
<?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_customermail', __('Mail an Kunden', 'wpsg'), [
|
77 |
<?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_customermail', __('Mail an Kunden', 'wpsg'), [
|
Line 84... |
Line 84... |
84 |
'1' => __('Ja', 'wpsg')
|
84 |
'1' => __('Ja', 'wpsg')
|
85 |
], $this->get_option('wpsg_mod_abo_autoexpire_adminmail'), ['help' => 'wpsg_mod_abo_autoexpire_adminmail']); ?>
|
85 |
], $this->get_option('wpsg_mod_abo_autoexpire_adminmail'), ['help' => 'wpsg_mod_abo_autoexpire_adminmail']); ?>
|
86 |
|
86 |
|
87 |
<br />
|
87 |
<br />
|
88 |
|
88 |
|
89 |
<?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_customer', __('Kunde kann im Frontend', 'wpsg'), Array(
|
- |
|
90 |
wpsg_mod_abo::CUSTOMER_AUTO_NOTHING => __('Nichts', 'wpsg'),
|
- |
|
91 |
wpsg_mod_abo::CUSTOMER_AUTO_DIRECT => __('Verlängerung direkt stoppen', 'wpsg'),
|
- |
|
92 |
wpsg_mod_abo::CUSTOMER_AUTO_MAIL => __('Verlängerung über Mail an Administrator stoppen', 'wpsg')
|
- |
|
93 |
), $this->get_option('wpsg_mod_abo_autoexpire_customer'), array('help' => 'wpsg_mod_abo_autoexpire_customer')); ?>
|
- |
|
94 |
|
- |
|
95 |
</div>
|
89 |
</div>
|
96 |
|
90 |
|
- |
|
91 |
<script>
|
- |
|
92 |
|
- |
|
93 |
let wpsg_mod_abo_expiremode_auto_layer = document.getElementById('wpsg_mod_abo_expiremode_auto_layer');
|
- |
|
94 |
let wpsg_mod_abo_expiremode = document.getElementById('wpsg_mod_abo_expiremode');
|
- |
|
95 |
let wpsg_mod_abo_premode = document.getElementById('wpsg_mod_abo_premode');
|
- |
|
96 |
|
- |
|
97 |
function displayAutoRenewOptions() {
|
- |
|
98 |
|
- |
|
99 |
if (wpsg_mod_abo_expiremode.value === '<?php echo wpsg_mod_abo::EXPIRE_AUTO; ?>' || wpsg_mod_abo_premode.value === '<?php echo wpsg_mod_abo::EXPIRE_AUTO; ?>') {
|
- |
|
100 |
|
- |
|
101 |
wpsg_mod_abo_expiremode_auto_layer.style.display = 'block';
|
- |
|
102 |
|
- |
|
103 |
} else {
|
- |
|
104 |
|
- |
|
105 |
wpsg_mod_abo_expiremode_auto_layer.style.display = 'none';
|
- |
|
106 |
|
- |
|
107 |
}
|
- |
|
108 |
|
- |
|
109 |
}
|
- |
|
110 |
|
- |
|
111 |
wpsg_mod_abo_expiremode.addEventListener('change', displayAutoRenewOptions);
|
- |
|
112 |
wpsg_mod_abo_premode.addEventListener('change', displayAutoRenewOptions);
|
- |
|
113 |
|
- |
|
114 |
displayAutoRenewOptions();
|
- |
|
115 |
|
- |
|
116 |
</script>
|
- |
|
117 |
|
- |
|
118 |
<?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_customer', __('Kunde kann im Frontend', 'wpsg'), Array(
|
- |
|
119 |
wpsg_mod_abo::CUSTOMER_AUTO_NOTHING => __('Nichts', 'wpsg'),
|
- |
|
120 |
wpsg_mod_abo::CUSTOMER_AUTO_DIRECT => __('Verlängerung direkt stoppen', 'wpsg'),
|
- |
|
121 |
wpsg_mod_abo::CUSTOMER_AUTO_MAIL => __('Verlängerung über Mail an Administrator stoppen', 'wpsg')
|
- |
|
122 |
), $this->get_option('wpsg_mod_abo_autoexpire_customer'), array('help' => 'wpsg_mod_abo_autoexpire_customer')); ?>
|
- |
|
123 |
|
97 |
<?php echo wpsg_drawForm_Input(false, __('CRON URL', 'wpsg'), site_url().'/?wpsg_cron=1', ['readonly' => true]); ?>
|
124 |
<?php echo wpsg_drawForm_Input(false, __('CRON URL', 'wpsg'), site_url().'/?wpsg_cron=1', ['readonly' => true]); ?>
|
98 |
<?php echo wpsg_drawForm_Text(__('Letzter Cron Aufruf', 'wpsg'), wpsg_formatTimestamp($this->get_option('wpsg_mod_abo_cron_lastrun'))); ?>
|
125 |
<?php echo wpsg_drawForm_Text(__('Letzter Cron Aufruf', 'wpsg'), wpsg_formatTimestamp($this->get_option('wpsg_mod_abo_cron_lastrun'))); ?>
|
99 |
|
126 |
|
100 |
<br />
|
127 |
<br />
|
101 |
|
128 |
|
102 |
<script type="text/javascript">/* <![CDATA[ */
|
129 |
<script>
|
103 |
|
130 |
|
104 |
jQuery(document).ready(function() {
|
131 |
jQuery(document).ready(function() {
|
105 |
|
132 |
|
106 |
jQuery('#wpsg_mod_abo_expiremode').on('change', function() {
|
133 |
jQuery('#wpsg_mod_abo_expiremode').on('change', function() {
|
107 |
|
134 |
|
Line 110... |
Line 137... |
110 |
|
137 |
|
111 |
} );
|
138 |
} );
|
112 |
|
139 |
|
113 |
} );
|
140 |
} );
|
114 |
|
141 |
|
115 |
/* ]]> */</script>
|
142 |
</script>
|