<?php

	/**
	 * Template für die Einstellungen des Click&Buy Moduls
	 */

?>
<?php echo wpsg_drawForm_Input('wpsg_mod_cab_bezeichnung', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_cab_bezeichnung'), array('help' => 'wpsg_mod_cab_bezeichnung')); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_cab_auftragsbezeichnung', __('Auftragsbezeichnung', 'wpsg'), $this->get_option('wpsg_mod_cab_auftragsbezeichnung'), array('help' => 'wpsg_mod_cab_auftragsbezeichnung')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_cab_aktiv', __('Aktiv', 'wpsg'), $this->get_option('wpsg_mod_cab_aktiv'), array('help' => 'wpsg_mod_cab_aktiv')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_cab_sandbox', __('Sandbox', 'wpsg'), $this->get_option('wpsg_mod_cab_sandbox'), array('help' => 'wpsg_mod_cab_sandbox')); ?>
<?php echo wpsg_drawForm_Textarea('wpsg_mod_cab_hint', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_cab_hint'), array('help' => 'wpsg_mod_cab_hint')); ?>
<br />
<?php echo wpsg_drawForm_Input('wpsg_mod_cab_merchantID', __('MerchantID', 'wpsg'), $this->get_option('wpsg_mod_cab_merchantID'), array('help' => 'wpsg_mod_cab_merchantID')); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_cab_projectID', __('ProjektID', 'wpsg'), $this->get_option('wpsg_mod_cab_projectID'), array('help' => 'wpsg_mod_cab_projectID')); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_cab_kryptkey', __('Kryptographischer Schlüssel', 'wpsg'), $this->get_option('wpsg_mod_cab_kryptkey'), array('help' => 'wpsg_mod_cab_kryptkey')); ?>
<br />
<?php echo wpsg_drawForm_Input('', __('MMS Push URL', 'wpsg'), $this->view['wpsg_mod_cab_mmspushurl'], array('help' => 'wpsg_mod_cab_mmspushurl','readonly' => true, 'disabled' => false)); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_cab_mmskryptkey', __('Kryptographischer Schlüssel (MMS)', 'wpsg'), $this->get_option('wpsg_mod_cab_mmskryptkey'), array('help' => 'wpsg_mod_cab_mmskryptkey')); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_cab_mmsstatusmail', __('MMS Statusmail', 'wpsg'), $this->get_option('wpsg_mod_cab_mmsstatusmail'), array('help' => 'wpsg_mod_cab_mmsstatusmail')); ?>
<br />
<?php echo wpsg_drawForm_Select('wpsg_mod_cab_success', __('Erfolgslink', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_mod_cab_success'), array('help' => 'wpsg_mod_cab_success')); ?>
<?php echo wpsg_drawForm_Select('wpsg_mod_cab_error', __('Abbruchlink', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_mod_cab_error'), array('help' => 'wpsg_mod_cab_error')); ?>
<br />
<?php echo wpsg_drawForm_Input('wpsg_mod_cab_gebuehr', __('Gebühr/Rabatt', 'wpsg'), wpsg_ff($this->get_option('wpsg_mod_cab_gebuehr'), true), array('help' => 'wpsg_mod_cab_gebuehr','unit' => $this->get_option('wpsg_currency').' / %')); ?>
<?php echo wpsg_drawForm_Select('wpsg_mod_cab_mwst', __('Mehrwertsteuersatz', 'wpsg'), wpsg_tax_groups(), $this->get_option('wpsg_mod_cab_mwst'), array('help' => 'wpsg_mod_cab_mwst')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_cab_mwstland', __('Keine MwSt. wenn Land steuerfrei', 'wpsg'), $this->get_option('wpsg_mod_cab_mwstland'), array('help' => 'wpsg_mod_cab_mwstland')); ?>
<br />
<?php echo wpsg_drawForm_Select('wpsg_mod_cab_currency', __('Währung', 'wpsg'), array('EUR' => __('EUR', 'wpsg'), 'GBP' => __('GBP', 'wpsg'), 'USD' => __('USD', 'wpsg'), 'CHR' => __('CHR', 'wpsg')), $this->get_option('wpsg_mod_cab_currency'), array('help' => 'wpsg_mod_cab_currency')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_cab_autorun', __('Zahlung sofort starten', 'wpsg'), $this->get_option('wpsg_mod_cab_autorun'), array('help' => 'wpsg_mod_cab_autorun')); ?>

<script type="text/javascript">/* <![CDATA[ */

	var wpsg_pageURLs = new Object();

	<?php if (wpsg_isSizedArray($this->view['pageURLs'])) { ?>
	<?php foreach ($this->view['pageURLs'] as $page_id => $page_url) { ?>
	wpsg_pageURLs['<?php echo $page_id; ?>'] = '<?php echo $page_url; ?>';
	<?php } ?>	
	<?php } ?>
 
	jQuery(document).ready(function() {

		wpsg_switchPage(jQuery('#wpsg_mod_cab_success'));
		wpsg_switchPage(jQuery('#wpsg_mod_cab_error'));
		
	} );
	
/* ]]> */</script>