3569 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
4005 |
thomas |
4 |
* Template für die Einstellungen des Moduls "wirecard"
|
3569 |
daniel |
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
3571 |
daniel |
8 |
<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_name', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_wirecard_name'), array('help' => 'wpsg_shippay_name')); ?>
|
6005 |
hartmut |
9 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_wirecard_activ', __('Aktiv', 'wpsg'), $this->get_option('wpsg_mod_wirecard_activ'), array('rAlign' => true, 'help' => 'wpsg_shippay_activ')); ?>
|
3571 |
daniel |
10 |
<?php echo wpsg_drawForm_Textarea('wpsg_mod_wirecard_hint', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_wirecard_hint'), array('help' => 'wpsg_shippay_hint')); ?>
|
3575 |
daniel |
11 |
<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_logo', __('Logo URL', 'wpsg'), $this->get_option('wpsg_mod_wirecard_logo'), array('help' => 'wpsg_mod_wirecard_logo', 'hint' => __('Auflösung: 95x65 Pixel (GIF/JPG/PNG)', 'wpsg'))); ?>
|
3571 |
daniel |
12 |
<br />
|
3580 |
daniel |
13 |
<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_customerid', __('Kunden ID', 'wpsg'), $this->get_option('wpsg_mod_wirecard_customerid'), array('help' => 'wpsg_mod_wirecard_customerid')); ?>
|
3645 |
daniel |
14 |
<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_shopid', __('Shop ID', 'wpsg'), $this->get_option('wpsg_mod_wirecard_shopid'), array('help' => 'wpsg_mod_wirecard_shopid')); ?>
|
3569 |
daniel |
15 |
<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_secret', __('Geheimer Schlüssel', 'wpsg'), $this->get_option('wpsg_mod_wirecard_secret'), array('help' => 'wpsg_mod_wirecard_secret')); ?>
|
3571 |
daniel |
16 |
<br />
|
|
|
17 |
<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_gebuehr', __('Gebühr/Rabatt', 'wpsg'), wpsg_ff($this->get_option('wpsg_mod_wirecard_gebuehr'), true), array('unit' => $this->get_option('wpsg_currency').' / %', 'help' => 'wpsg_shippay_gebuehr')); ?>
|
5997 |
hartmut |
18 |
<?php echo wpsg_drawForm_Select('wpsg_mod_wirecard_mwst', __('Mehrwertsteuersatz', 'wpsg'), wpsg_tax_groups(), $this->get_option('wpsg_mod_wirecard_mwst'), array('help' => 'wpsg_mod_wirecard_mwst')); ?>
|
|
|
19 |
|
3571 |
daniel |
20 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_wirecard_mwstland', __('Keine MwSt. wenn Land steuerfrei', 'wpsg'), $this->get_option('wpsg_mod_wirecard_mwstland'), array('help' => 'wpsg_shippay_mwstland')); ?>
|
|
|
21 |
<?php echo wpsg_drawForm_Select('wpsg_mod_wirecard_currency', __('Währung', 'wpsg'), array(
|
|
|
22 |
'EUR' => __('Euro', 'wpsg'),
|
|
|
23 |
'CHF' => __('Schweizer Franken', 'wpsg'),
|
|
|
24 |
'GBP' => __('Pfund Sterling', 'wpsg'),
|
|
|
25 |
'USD' => __('US Dollar', 'wpsg')
|
3652 |
daniel |
26 |
), $this->get_option('wpsg_mod_wirecard_currency'), array('help' => 'wpsg_mod_wirecard_currency')); ?>
|
3645 |
daniel |
27 |
<br />
|
|
|
28 |
|
|
|
29 |
<div class="wpsg_form_field">
|
|
|
30 |
<div class="wpsg_form_left">
|
6005 |
hartmut |
31 |
|
3645 |
daniel |
32 |
</div>
|
6005 |
hartmut |
33 |
<div class="wpsg_form_right1">
|
|
|
34 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
|
|
35 |
<?php echo wpsg_drawForm_TextEnd(__('Verfügbare Zahlungsarten', 'wpsg'), array('noP' => true)); ?>
|
3645 |
daniel |
36 |
<ul class="wpsg_mod_wirecard_paymenttypeselect">
|
|
|
37 |
<?php foreach ($this->view['paymentTypes'] as $pt_key => $pt) { ?>
|
|
|
38 |
<li>
|
6005 |
hartmut |
39 |
<input type="hidden" name="wpsg_mod_wirecard_paymentorder[]" value="<?php echo wpsg_hspc($pt_key); ?>" />
|
|
|
40 |
<?php
|
|
|
41 |
$arr1 = $this->get_option('wpsg_mod_wirecard_paymenttype');
|
|
|
42 |
$arr2 = (array)explode(',', $this->get_option('wpsg_mod_wirecard_paymenttype'));
|
|
|
43 |
$chk = ((in_array($pt_key, (array)explode(',', $this->get_option('wpsg_mod_wirecard_paymenttype'))))?'checked="checked"':'');
|
|
|
44 |
$chk = ((in_array($pt_key, (array)explode(',', $this->get_option('wpsg_mod_wirecard_paymenttype'))))?1:0);
|
|
|
45 |
// function wpsg_drawForm_Checkbox($field_name, $field_label, $field_checked, $conf = array())
|
|
|
46 |
echo wpsg_drawForm_Checkbox('wpsg_mod_wirecard_paymenttype[]', __($pt, 'wpsg'),
|
|
|
47 |
$chk, array('help1' => 'wpsg_shippay_mwstland',
|
|
|
48 |
'value' => wpsg_hspc($pt_key),
|
|
|
49 |
'noHidden' => true,
|
|
|
50 |
'fullWidth1' => true
|
|
|
51 |
));
|
|
|
52 |
?>
|
|
|
53 |
|
3645 |
daniel |
54 |
</li>
|
|
|
55 |
<?php } ?>
|
|
|
56 |
</ul>
|
6005 |
hartmut |
57 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
3645 |
daniel |
58 |
<p class="wpsg_hinweis"><?php echo __('Reihenfolge kann mittels Drag&Drop verändert werden.', 'wpsg'); ?></p>
|
6005 |
hartmut |
59 |
<?php echo wpsg_drawForm_TextEnd(__('', 'wpsg'), array('noP' => true)); ?>
|
|
|
60 |
<br />
|
|
|
61 |
|
3645 |
daniel |
62 |
</div>
|
|
|
63 |
<div class="wpsg_clear"></div>
|
|
|
64 |
</div>
|
|
|
65 |
|
|
|
66 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_wirecard_submitadress', __('Adressdaten an wirecard übermitteln?', 'wpsg'), $this->get_option('wpsg_mod_wirecard_submitadress'), array('help' => 'wpsg_mod_wirecard_submitadress')); ?>
|
3696 |
daniel |
67 |
<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_minValue', __('Minimaler Betrag bei Rechnungskauf', 'wpsg'), $this->get_option('wpsg_mod_wirecard_minValue'), array('help' => 'wpsg_mod_wirecard_minValue')); ?>
|
|
|
68 |
<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_maxValue', __('Maximaler Betrag bei Rechnungskauf', 'wpsg'), $this->get_option('wpsg_mod_wirecard_maxValue'), array('help' => 'wpsg_mod_wirecard_maxValue')); ?>
|
3645 |
daniel |
69 |
|
3571 |
daniel |
70 |
<?php echo wpsg_drawForm_Select('wpsg_mod_wirecard_language', __('Sprache innerhalb wirecard', 'wpsg'), array(
|
3581 |
daniel |
71 |
'auto' => __('Automatisch', 'wpsg'),
|
3571 |
daniel |
72 |
'de' => __('Deutsch', 'wpsg'),
|
|
|
73 |
'en' => __('Englisch', 'wpsg'),
|
|
|
74 |
'fr' => __('Französisch', 'wpsg')
|
5382 |
daniel |
75 |
), $this->get_option('wpsg_mod_wirecard_language'), array('help' => 'wpsg_mod_wirecard_language')); ?>
|
3628 |
daniel |
76 |
|
3571 |
daniel |
77 |
<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_subject', __('Bestellbeschreibung', 'wpsg'), $this->get_option('wpsg_mod_wirecard_subject'), array('help' => 'wpsg_mod_wirecard_subject')); ?>
|
3628 |
daniel |
78 |
|
5382 |
daniel |
79 |
<?php echo wpsg_drawForm_Select('wpsg_page_mod_wirecard_success', __('Erfolgsseite', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_wirecard_success'), array('help' => 'wpsg_mod_wirecard_success')); ?>
|
|
|
80 |
<?php echo wpsg_drawForm_Select('wpsg_page_mod_wirecard_cancel', __('Seite bei Abbruch', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_wirecard_cancel'), array('help' => 'wpsg_mod_wirecard_cancel')); ?>
|
|
|
81 |
<?php echo wpsg_drawForm_Select('wpsg_page_mod_wirecard_error', __('Fehlerseite', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_wirecard_error'), array('help' => 'wpsg_mod_wirecard_error')); ?>
|
|
|
82 |
<?php echo wpsg_drawForm_Select('wpsg_page_mod_wirecard_pending', __('Seite bei keinem Ergebnis', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_wirecard_pending'), array('help' => 'wpsg_mod_wirecard_pending')); ?>
|
|
|
83 |
<?php echo wpsg_drawForm_Select('wpsg_mod_wirecard_mode', __('Integrationsmodus', 'wpsg'), array('0' => __('IFrame', 'wpsg'), '1' => __('Popup', 'wpsg'), '2' => __('Weiterleitung', 'wpsg')), $this->get_option('wpsg_mod_wirecard_mode'), array('help' => 'wpsg_mod_wirecard_mode', 'help' => 'wpsg_mod_wirecard_mode')); ?>
|
3628 |
daniel |
84 |
<div id="wpsg_mod_wirecard_mode_2" style="display:none;">
|
5382 |
daniel |
85 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_wirecard_autostart', __('Zahlung sofort starten', 'wpsg'), $this->get_option('wpsg_mod_wirecard_autostart'), array('help' => 'wpsg_shippay_paystart', 'help' => 'wpsg_shippay_paystart')); ?>
|
3628 |
daniel |
86 |
</div>
|
|
|
87 |
<br />
|
3580 |
daniel |
88 |
|
5382 |
daniel |
89 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
90 |
|
3580 |
daniel |
91 |
jQuery(document).ready(function() {
|
|
|
92 |
|
3645 |
daniel |
93 |
jQuery(".wpsg_mod_wirecard_paymenttypeselect").sortable().disableSelection();
|
|
|
94 |
|
3580 |
daniel |
95 |
jQuery('#wpsg_mod_wirecard_paymenttype').bind('change', function() {
|
|
|
96 |
|
|
|
97 |
if (jQuery(this).val() == "1")
|
|
|
98 |
{
|
|
|
99 |
|
|
|
100 |
jQuery('.wpsg_mod_wirecard_paymentselect_0').show();
|
|
|
101 |
|
|
|
102 |
}
|
|
|
103 |
else
|
|
|
104 |
{
|
|
|
105 |
|
|
|
106 |
jQuery('.wpsg_mod_wirecard_paymentselect_0').hide();
|
|
|
107 |
|
|
|
108 |
}
|
|
|
109 |
|
|
|
110 |
} ).change();
|
3628 |
daniel |
111 |
|
|
|
112 |
jQuery('#wpsg_mod_wirecard_mode').bind('change', function() {
|
|
|
113 |
|
|
|
114 |
if (jQuery(this).val() == "2")
|
|
|
115 |
{
|
|
|
116 |
|
|
|
117 |
jQuery('#wpsg_mod_wirecard_mode_2').show();
|
|
|
118 |
|
|
|
119 |
}
|
|
|
120 |
else
|
|
|
121 |
{
|
|
|
122 |
|
|
|
123 |
jQuery('#wpsg_mod_wirecard_mode_2').hide();
|
|
|
124 |
|
|
|
125 |
}
|
|
|
126 |
|
|
|
127 |
} ).change();
|
3580 |
daniel |
128 |
|
5382 |
daniel |
129 |
} );
|
|
|
130 |
|
3580 |
daniel |
131 |
/* ]]> */</script>
|