Rev 6005 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
/**
* Template für die Einstellungen des Moduls "wirecard"
*/
?>
<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_name', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_wirecard_name'), array('help' => 'wpsg_shippay_name')); ?>
<?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')); ?>
<?php echo wpsg_drawForm_Textarea('wpsg_mod_wirecard_hint', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_wirecard_hint'), array('help' => 'wpsg_shippay_hint')); ?>
<?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'))); ?>
<br />
<?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')); ?>
<?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')); ?>
<?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')); ?>
<br />
<?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')); ?>
<?php echo wpsg_drawForm_Select('wpsg_mod_wirecard_mwst', __('Mehrwertsteuersatz', 'wpsg'), wpsg_tax_groups(), $this->get_option('wpsg_mod_wirecard_mwst'), array('help' => 'wpsg_shippay_mwst')); ?>
<?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')); ?>
<?php echo wpsg_drawForm_Select('wpsg_mod_wirecard_currency', __('Währung', 'wpsg'), array(
'EUR' => __('Euro', 'wpsg'),
'CHF' => __('Schweizer Franken', 'wpsg'),
'GBP' => __('Pfund Sterling', 'wpsg'),
'USD' => __('US Dollar', 'wpsg')
), $this->get_option('wpsg_mod_wirecard_currency'), array('help' => 'wpsg_mod_wirecard_currency')); ?>
<br />
<div class="wpsg_form_field">
<div class="wpsg_form_left">
</div>
<div class="wpsg_form_right1">
<?php echo wpsg_drawForm_TextStart(); ?>
<?php echo wpsg_drawForm_TextEnd(__('Verfügbare Zahlungsarten', 'wpsg'), array('noP' => true)); ?>
<ul class="wpsg_mod_wirecard_paymenttypeselect">
<?php foreach ($this->view['paymentTypes'] as $pt_key => $pt) { ?>
<li>
<input type="hidden" name="wpsg_mod_wirecard_paymentorder[]" value="<?php echo wpsg_hspc($pt_key); ?>" />
<?php
$arr1 = $this->get_option('wpsg_mod_wirecard_paymenttype');
$arr2 = (array)explode(',', $this->get_option('wpsg_mod_wirecard_paymenttype'));
$chk = ((in_array($pt_key, (array)explode(',', $this->get_option('wpsg_mod_wirecard_paymenttype'))))?'checked="checked"':'');
$chk = ((in_array($pt_key, (array)explode(',', $this->get_option('wpsg_mod_wirecard_paymenttype'))))?1:0);
// function wpsg_drawForm_Checkbox($field_name, $field_label, $field_checked, $conf = array())
echo wpsg_drawForm_Checkbox('wpsg_mod_wirecard_paymenttype[]', __($pt, 'wpsg'),
$chk, array('help1' => 'wpsg_shippay_mwstland',
'value' => wpsg_hspc($pt_key),
'noHidden' => true,
'fullWidth1' => true
));
?>
</li>
<?php } ?>
</ul>
<?php echo wpsg_drawForm_TextStart(); ?>
<p class="wpsg_hinweis"><?php echo __('Reihenfolge kann mittels Drag&Drop verändert werden.', 'wpsg'); ?></p>
<?php echo wpsg_drawForm_TextEnd(__('', 'wpsg'), array('noP' => true)); ?>
<br />
</div>
<div class="wpsg_clear"></div>
</div>
<?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')); ?>
<?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')); ?>
<?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')); ?>
<?php echo wpsg_drawForm_Select('wpsg_mod_wirecard_language', __('Sprache innerhalb wirecard', 'wpsg'), array(
'auto' => __('Automatisch', 'wpsg'),
'de' => __('Deutsch', 'wpsg'),
'en' => __('Englisch', 'wpsg'),
'fr' => __('Französisch', 'wpsg')
), $this->get_option('wpsg_mod_wirecard_language'), array('help' => 'wpsg_mod_wirecard_language')); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_wirecard_subject', __('Bestellbeschreibung', 'wpsg'), $this->get_option('wpsg_mod_wirecard_subject'), array('help' => 'wpsg_mod_wirecard_subject')); ?>
<?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')); ?>
<?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')); ?>
<?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')); ?>
<?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')); ?>
<?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')); ?>
<div id="wpsg_mod_wirecard_mode_2" style="display:none;">
<?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')); ?>
</div>
<br />
<script type="text/javascript">/* <![CDATA[ */
jQuery(document).ready(function() {
jQuery(".wpsg_mod_wirecard_paymenttypeselect").sortable().disableSelection();
jQuery('#wpsg_mod_wirecard_paymenttype').bind('change', function() {
if (jQuery(this).val() == "1")
{
jQuery('.wpsg_mod_wirecard_paymentselect_0').show();
}
else
{
jQuery('.wpsg_mod_wirecard_paymentselect_0').hide();
}
} ).change();
jQuery('#wpsg_mod_wirecard_mode').bind('change', function() {
if (jQuery(this).val() == "2")
{
jQuery('#wpsg_mod_wirecard_mode_2').show();
}
else
{
jQuery('#wpsg_mod_wirecard_mode_2').hide();
}
} ).change();
} );
/* ]]> */</script>