7267 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Einstellungen für das Kundenkontaktmodul
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
namespace wpsg;
|
|
|
8 |
|
|
|
9 |
?>
|
|
|
10 |
|
|
|
11 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_kundenkontakt[smsflatrate][active]', __('SMS Flatrate Dienst nutzen', 'wpsg'), $this->get_option('wpsg_mod_kundenkontakt_smsflatrate_active'), ['help' => 'wpsg_mod_kundenkontakt_smsflatrate_active']); ?>
|
|
|
12 |
|
|
|
13 |
<div id="smsflatrate_layer" style="display:<?php echo (($this->get_option('wpsg_mod_kundenkontakt_smsflatrate_active') === '1')?'block':'none'); ?>;">
|
7379 |
thomas |
14 |
|
|
|
15 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
|
|
16 |
<p style="font-weight:bold; "><?php echo __('Vorgehensweise:', 'wpsg'); ?></p>
|
|
|
17 |
<ol>
|
|
|
18 |
<li><?php echo __('Kundenaccount <a href="http://smsflatrate.de/">hier</a> anlegen', 'wpsg'); ?></li>
|
|
|
19 |
<li><?php echo __('In Kundenaccount <a href="https://my.smsflatrate.net/">hier</a> einloggen', 'wpsg'); ?></li>
|
|
|
20 |
<li><?php echo __('App-Key anlegen', 'wpsg'); ?></li>
|
|
|
21 |
<li><?php echo __('AppKey und andere Daten in Modul hinterlegen', 'wpsg'); ?></li>
|
|
|
22 |
</ol>
|
|
|
23 |
|
|
|
24 |
<br/>
|
7267 |
daniel |
25 |
|
7379 |
thomas |
26 |
<p style="font-weight:bold; "><?php echo __('Hinweis:', 'wpsg'); ?></p>
|
|
|
27 |
<p><?php echo __('Bitte beachten Sie während der Nutzung der SMS-Funktion innerhalb des wpShopGermany Ihr Guthaben, welches bei dem SMS-Anbieter aufgeladen werden muss.', 'wpsg'); ?></p>
|
|
|
28 |
|
|
|
29 |
<?php /* TODO: Guthaben anzeigen */ ?>
|
|
|
30 |
|
|
|
31 |
<?php echo wpsg_drawForm_TextEnd(); ?>
|
|
|
32 |
|
|
|
33 |
<hr>
|
|
|
34 |
|
7267 |
daniel |
35 |
<?php echo wpsg_drawForm_Input('wpsg_mod_kundenkontakt[smsflatrate][key]',__('Schlüssel', 'wpsg'), $this->get_option('wpsg_mod_kundenkontakt_smsflatrate_key'), ['help' => 'wpsg_mod_kundenkontakt_smsflatrate_key']); ?>
|
|
|
36 |
<?php echo wpsg_drawForm_Input('wpsg_mod_kundenkontakt[smsflatrate][from]',__('Absender', 'wpsg'), $this->get_option('wpsg_mod_kundenkontakt_smsflatrate_from'), ['help' => 'wpsg_mod_kundenkontakt_smsflatrate_from']); ?>
|
|
|
37 |
<?php echo wpsg_drawForm_Input('wpsg_mod_kundenkontakt[smsflatrate][type]',__('Feld d / "type"', 'wpsg'), $this->get_option('wpsg_mod_kundenkontakt_smsflatrate_type'), ['help' => 'wpsg_mod_kundenkontakt_smsflatrate_type']); ?>
|
|
|
38 |
<?php echo wpsg_drawForm_Input('wpsg_mod_kundenkontakt[smsflatrate][status]',__('Feld e / "status"', 'wpsg'), $this->get_option('wpsg_mod_kundenkontakt_smsflatrate_status'), ['help' => 'wpsg_mod_kundenkontakt_smsflatrate_status']); ?>
|
|
|
39 |
<?php echo wpsg_drawForm_Input('wpsg_mod_kundenkontakt[smsflatrate][reply]',__('Feld f / "reply"', 'wpsg'), $this->get_option('wpsg_mod_kundenkontakt_smsflatrate_reply'), ['help' => 'wpsg_mod_kundenkontakt_smsflatrate_reply']); ?>
|
|
|
40 |
<?php echo wpsg_drawForm_Input('wpsg_mod_kundenkontakt[smsflatrate][replytomail]',__('Feld g / "replytomail"', 'wpsg'), $this->get_option('wpsg_mod_kundenkontakt_smsflatrate_replytomail'), ['help' => 'wpsg_mod_kundenkontakt_smsflatrate_replytomail']); ?>
|
|
|
41 |
|
|
|
42 |
</div>
|
|
|
43 |
|
|
|
44 |
<script>
|
|
|
45 |
|
|
|
46 |
jQuery('#wpsg_mod_kundenkontaktsmsflatrateactive').on('click', function() {
|
|
|
47 |
|
|
|
48 |
if (jQuery(this).prop('checked')) {
|
|
|
49 |
|
|
|
50 |
jQuery('#smsflatrate_layer').show();
|
|
|
51 |
|
|
|
52 |
} else {
|
|
|
53 |
|
|
|
54 |
jQuery('#smsflatrate_layer').hide();
|
|
|
55 |
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
} );
|
|
|
59 |
|
|
|
60 |
</script>
|