Rev 4943 | Rev 5382 | 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('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')); ?>
<div class="wpsg_form_field">
<div class="wpsg_form_left">
<label for="wpsg_mod_wirecard_mwst"><?php echo __('Steuersatz', 'wpsg'); ?>:</label>
</div>
<div class="wpsg_form_right">
<select id="wpsg_mod_wirecard_mwst" name="wpsg_mod_wirecard_mwst">
<option value="0"><?php echo __('anteilig', 'wpsg'); ?></option>
<?php foreach ($this->view['mwst'] as $mwst) { ?>
<option value="<?php echo $mwst['id']; ?>" <?php echo (($mwst['id'] == $this->get_option('wpsg_mod_wirecard_mwst'))?'selected="selected"':''); ?>><?php echo wpsg_ff($mwst['value']).'%'; ?></option>
<?php } ?>
</select>
<a href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_mwst" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_shippay_mwst" class="wpsg_form_help"></a>
</div>
<div class="wpsg_clear"></div>
</div>
<?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">
<label for="wpsg_mod_wirecard_paymenttype"><?php echo __('Verfügbare Zahlungsarten', 'wpsg'); ?>:</label>
</div>
<div class="wpsg_form_right">
<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); ?>" />
<input type="checkbox" value="<?php echo wpsg_hspc($pt_key); ?>" <?php echo ((in_array($pt_key, (array)explode(',', $this->get_option('wpsg_mod_wirecard_paymenttype'))))?'checked="checked"':''); ?> name="wpsg_mod_wirecard_paymenttype[]" /> <?php echo wpsg_hspc($pt); ?>
</li>
<?php } ?>
</ul>
<p class="wpsg_hinweis"><?php echo __('Reihenfolge kann mittels Drag&Drop verändert werden.', 'wpsg'); ?></p>
</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')); ?>
<?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')); ?>
<?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')); ?>
<?php echo wpsg_drawForm_Select('wpsg_page_mod_wirecard_error', __('Fehlerseite', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_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')); ?>
<?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')); ?>
<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')); ?>
</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>