<?php

	/**
	 * Template für die Einstellungen des Sparkassen Internet Moduls
	 */

?>
<br />
<?php echo wpsg_drawForm_Input('wpsg_mod_shs_bezeichnung_creditcard', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_shs_bezeichnung_creditcard'), array('help' => 'wpsg_mod_shs_bezeichnung_creditcard')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_shs_aktiv_creditcard', __('Aktiv', 'wpsg'), $this->get_option('wpsg_mod_shs_aktiv_creditcard'), array('help' => 'wpsg_mod_shs_aktiv_creditcard')); ?>
<?php echo wpsg_drawForm_Textarea('wpsg_mod_shs_hint_creditcard', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_shs_hint_creditcard'), array('help' => 'wpsg_mod_shs_hint_creditcard')); ?>
<br />
<?php echo wpsg_drawForm_Input('wpsg_mod_shs_bezeichnung_maestro', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_shs_bezeichnung_maestro'), array('help' => 'wpsg_mod_shs_bezeichnung_maestro')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_shs_aktiv_maestro', __('Aktiv', 'wpsg'), $this->get_option('wpsg_mod_shs_aktiv_maestro'), array('help' => 'wpsg_mod_shs_aktiv_maestro')); ?>
<?php echo wpsg_drawForm_Textarea('wpsg_mod_shs_hint_maestro', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_shs_hint_maestro'), array('help' => 'wpsg_mod_shs_hint_maestro')); ?>
<br />
<?php echo wpsg_drawForm_Input('wpsg_mod_shs_bezeichnung_directdebit', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_shs_bezeichnung_directdebit'), array('help' => 'wpsg_mod_shs_bezeichnung_directdebit')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_shs_aktiv_directdebit', __('Aktiv', 'wpsg'), $this->get_option('wpsg_mod_shs_aktiv_directdebit'), array('help' => 'wpsg_mod_shs_aktiv_directdebit')); ?>
<?php echo wpsg_drawForm_Textarea('wpsg_mod_shs_hint_directdebit', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_shs_hint_directdebit'), array('help' => 'wpsg_mod_shs_hint_directdebit')); ?>
<br />
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_shs_sandbox', __('Sandbox Modus', 'wpsg'), $this->get_option('wpsg_mod_shs_sandbox'), array('help' => 'wpsg_mod_shs_sandbox')); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_shs_sslmerchant', __('SSL Händlerkennung (S-Internetkasse-SSL-User)', 'wpsg'), $this->get_option('wpsg_mod_shs_sslmerchant'), array('help' => 'wpsg_mod_shs_sslmerchant')); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_shs_sslpw', __('MAC-Schlüssel', 'wpsg'), $this->get_option('wpsg_mod_shs_sslpw'), array(
	'help'=>'wpsg_mod_shs_sslpw',
	'pwd' => true,
	/*'hint' => __('Muss mit dem Passwort im S-Interface unter Konfiguration -> Formularservice übereinstimmen.', 'wpsg')	*/	
)); ?>
<?php echo wpsg_drawForm_Input('', __('URL für Shopbenachrichtigung', 'wpsg'), $this->view['wpsg_mod_notify_url'], array(
	'help' => 'wpsg_mod_notify_url',
	/*'hint' => __('Muss im S-Interface unter Konfiguration -> Formularservice hinterlegt werden.', 'wpsg')		*/	
)); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_shs_apiurl', __('URL für Anfragen', 'wpsg'), $this->get_option('wpsg_mod_shs_apiurl'), array('help' => 'wpsg_mod_shs_apiurl')); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_shs_apiversion', __('API Version', 'wpsg'), $this->view['api_version'], array('help' => 'wpsg_mod_shs_apiversion','readonly' => true, 'text' => true)); ?>
<br />
<?php echo wpsg_drawForm_Input('wpsg_mod_shs_gebuehr', __('Gebühr/Rabatt', 'wpsg'), wpsg_ff($this->get_option('wpsg_mod_shs_gebuehr'), true), array('help' => 'wpsg_mod_shs_gebuehr','unit' => $this->get_option('wpsg_currency').' / %')); ?>
<?php echo wpsg_drawForm_Select('wpsg_mod_shs_mwst', __('Mehrwertsteuersatz', 'wpsg'), wpsg_tax_groups(), $this->get_option('wpsg_mod_shs_mwst'), array('help' => 'wpsg_mod_shs_mwst')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_shs_mwstland', __('Keine MwSt. wenn Land steuerfrei', 'wpsg'), $this->get_option('wpsg_mod_shs_mwstland'), array('help' => 'wpsg_mod_shs_mwstland')); ?>
<br />
<div class="wpsg_form_field">
	<div class="wpsg_form_left">
		<label><?php echo __('Formularoptionen', 'wpsg'); ?>:</label>
	</div>
	<div class="wpsg_form_right">
		<label> 
			<input <?php echo (($this->get_option('wpsg_mod_shs_mobileversion') == '1')?'checked="checked"':''); ?> style="margin-right:5px; margin-top:0px; float:none;" type="checkbox" class="checkbox" value="1" id="wpsg_mod_shs_mobileversion" name="wpsg_mod_shs_mobileversion" /><?php echo __('Mobile Version nutzen', 'wpsg'); ?>			
		</label><br />
		<label>
			<input <?php echo (($this->get_option('wpsg_mod_shs_creditcard_cardholder') == '1')?'checked="checked"':''); ?> style="margin-right:5px; margin-top:0px; float:none;" type="checkbox" class="checkbox" value="1" id="wpsg_mod_shs_creditcard_cardholder" name="wpsg_mod_shs_creditcard_cardholder" /><?php echo __('Kartenhinhaber ist Pflichtfeld (Nur Kreditkarte)', 'wpsg'); ?>			
		</label><br />
		<label>
			<input <?php echo (($this->get_option('wpsg_mod_shs_creditcard_optionalcardholder') == '1')?'checked="checked"':''); ?> style="margin-right:5px; margin-top:0px; float:none;" type="checkbox" class="checkbox" value="1" id="wpsg_mod_shs_creditcard_optionalcardholder" name="wpsg_mod_shs_creditcard_optionalcardholder" /><?php echo __('Kartenhinhaber ist Optional (Nur Kreditkarte)', 'wpsg'); ?>			
		</label><br />
		<label>
			<input <?php echo (($this->get_option('wpsg_mod_shs_creditcard_sslifvisaenrolledu') == '1')?'checked="checked"':''); ?> style="margin-right:5px; margin-top:0px; float:none;" type="checkbox" class="checkbox" value="1" id="wpsg_mod_shs_creditcard_sslifvisaenrolledu" name="wpsg_mod_shs_creditcard_sslifvisaenrolledu" /><?php echo __('Bei VISA ohne Autorisierung zahlung erlauben (Nur Kreditkarte / VISA)', 'wpsg'); ?>			
		</label><br />
		<label>
			<input <?php echo (($this->get_option('wpsg_mod_shs_directdebit_accountholder') == '1')?'checked="checked"':''); ?> style="margin-right:5px; margin-top:0px; float:none;" type="checkbox" class="checkbox" value="1" id="wpsg_mod_shs_directdebit_accountholder" name="wpsg_mod_shs_directdebit_accountholder" /><?php echo __('Kontoinhaber ist Pflichtfeld (Nur Lastschrift)', 'wpsg'); ?>			
		</label><br />
		<label>
			<input <?php echo (($this->get_option('wpsg_mod_shs_directdebit_optionalaccountholder') == '1')?'checked="checked"':''); ?> style="margin-right:5px; margin-top:0px; float:none;" type="checkbox" class="checkbox" value="1" id="wpsg_mod_shs_directdebit_optionalaccountholder" name="wpsg_mod_shs_directdebit_optionalaccountholder" /><?php echo __('Kontoinhaber ist Optional (Nur Lastschrift)', 'wpsg'); ?>			
		</label><br />
		<label>
			<input <?php echo (($this->get_option('wpsg_mod_shs_directdebit_checklist') == '1')?'checked="checked"':''); ?> style="margin-right:5px; margin-top:0px; float:none;" type="checkbox" class="checkbox" value="1" id="wpsg_mod_shs_directdebit_checklist" name="wpsg_mod_shs_directdebit_checklist" /><?php echo __('Sperrlistenabfrage (Nur Lastschrift, muss freigeschaltet sein)', 'wpsg'); ?>			
		</label>
	</div>
	<div class="wpsg_clear"></div>
</div>
<br />
<?php echo wpsg_drawForm_Select('wpsg_mod_shs_transactiontype', __('Autorisierung', 'wpsg'), array('preauthorization', 'authorization'), $this->get_option('wpsg_mod_shs_transactiontype'), array('help' => 'wpsg_mod_shs_transactiontype')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_shs_autostart', __('Zahlung sofort starten', 'wpsg'), $this->get_option('wpsg_mod_shs_autostart'), array('help' => 'wpsg_mod_shs_autostart')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_shs_autoend', __('Nach Abschluß direkt auf Fehler- bzw. Erfolgsseite leiten', 'wpsg'), $this->get_option('wpsg_mod_shs_autoend'), array('help' => 'wpsg_mod_shs_autoend')); ?>
<?php echo wpsg_drawForm_Select('wpsg_page_mod_shs_success', __('Erfolgsseite', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_shs_success'), array('help' => 'wpsg_mod_shs_success')); ?>
<?php echo wpsg_drawForm_Select('wpsg_page_mod_shs_error', __('Fehlerseite', 'wpsg'), $this->view['pages'], $this->get_option('wpsg_page_mod_shs_error'), array('help' => 'wpsg_mod_shs_error')); ?>

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

	jQuery('#wpsg_mod_shs_creditcard_cardholder').bind('click', function() { if (jQuery(this).attr('checked')) jQuery('#wpsg_mod_shs_creditcard_optionalcardholder').attr('checked', false); } );
	jQuery('#wpsg_mod_shs_creditcard_optionalcardholder').bind('click', function() { if (jQuery(this).attr('checked')) jQuery('#wpsg_mod_shs_creditcard_cardholder').attr('checked', false); } );
	jQuery('#wpsg_mod_shs_directdebit_accountholder').bind('click', function() { if (jQuery(this).attr('checked')) jQuery('#wpsg_mod_shs_directdebit_optionalaccountholder').attr('checked', false); } );
	jQuery('#wpsg_mod_shs_directdebit_optionalaccountholder').bind('click', function() { if (jQuery(this).attr('checked')) jQuery('#wpsg_mod_shs_directdebit_accountholder').attr('checked', false); } );

/* ]]> */</script>
