Subversion Repositories wpShopGermany4

Rev

Rev 6842 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3525 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Einstellungen des Lieferzeit Moduls
5
	 */
6
 
7
?>
8
<?php echo wpsg_drawForm_Select('wpsg_mod_deliverytime_mode', __('Eingabetyp', 'wpsg'), array(
9
	wpsg_mod_deliverytime::MODE_DAYS => __('Angabe von Tagen', 'wpsg'),
10
	wpsg_mod_deliverytime::MODE_SELECT => __('Auswahl', 'wpsg')
11
), $this->get_option('wpsg_mod_deliverytime_mode'), array('help' => 'wpsg_mod_deliverytime_mode')); ?>
12
<div id="wpsg_mod_deliverytime_mode_<?php echo wpsg_mod_deliverytime::MODE_SELECT; ?>" class="wpsg_mod_deliverytime_mode">
13
	<?php echo wpsg_drawForm_Textarea('wpsg_mod_deliverytime_mode_select_values', __('Verfügbare Lieferzeiten', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_mode_select_values'), array('help' => 'wpsg_mod_deliverytime_mode_select_values', 'hint' => __('Kommagetrennt', 'wpsg'))); ?>
14
	<?php echo wpsg_drawForm_Select('wpsg_mod_deliverytime_mode_select_default', __('Standard Lieferzeit', 'wpsg'), $this->view['wpsg_mod_deliverytime']['arSelection'], $this->get_option('wpsg_mod_deliverytime_mode_select_default'), array('help' => 'wpsg_mod_deliverytime_mode_select_default')); ?>
15
</div>
16
<div id="wpsg_mod_deliverytime_mode_<?php echo wpsg_mod_deliverytime::MODE_DAYS; ?>" class="wpsg_mod_deliverytime_mode">
17
	<?php echo wpsg_drawForm_Input('wpsg_mod_deliverytime_mode_days_default', __('Standard Lieferzeit', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_mode_days_default'), array('help' => 'wpsg_mod_deliverytime_mode_days_default')); ?>
18
</div>
19
 
6581 thomas 20
<br /><br />
5598 thomas 21
 
6581 thomas 22
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime_store', __('Offline-Produkte anzeigen (nicht im Onlineshop bestellbar)', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_store'), array('help' => 'wpsg_mod_deliverytime_store')); ?>
5632 thomas 23
 
6568 hartmut 24
<div class="wpsg_mod_deliverytime_store wpsg_mod_deliverytime_store_1">
25
    <?php echo wpsg_drawForm_Input('wpsg_mod_deliverytime_storetext', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_storetext'), array('help' => 'wpsg_mod_deliverytime_storetext')); ?>
26
    <?php ?>
27
    <?php $arPageWithoutCreate = $this->view['pages']; unset($arPageWithoutCreate['-1']); ?>
28
    <?php echo wpsg_drawForm_Select('wpsg_page_mod_deliverytime_storelink', __('Seite mit Adressdaten', 'wpsg'), wpsg_array_merge(array(
29
        '0' => __('Keine Verlinkung auf eine Seite anzeigen', 'wpsg')
30
    ), $arPageWithoutCreate), $this->get_option('wpsg_page_mod_deliverytime_storelink'), array('help' => 'wpsg_page_mod_deliverytime_storelink')); ?>
31
</div>
32
 
6581 thomas 33
<br /><br />
5632 thomas 34
 
5804 daniel 35
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime_delay', __('Hinweistext bei Verzögerungen anzeigen', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_delay'), array('help' => 'wpsg_mod_deliverytime_delay')); ?>
5598 thomas 36
<div class="wpsg_mod_deliverytime_delay_activ" style="display:none;">
5804 daniel 37
<?php echo wpsg_drawForm_Input('wpsg_mod_deliverytime_delayText', __('Grund für verzögerte Lieferung', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_delayText'), array('help' => 'wpsg_mod_deliverytime_delayText')); ?>
38
<?php echo wpsg_drawForm_Input('wpsg_mod_deliverytime_delayTime', __('Zeitangabe der Verzögerung', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_delayTime'), array('help' => 'wpsg_mod_deliverytime_delayTime')); ?>
5598 thomas 39
</div>
40
 
6581 thomas 41
<br /><br />
3525 daniel 42
 
6954 thomas 43
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime_holiday', __('Urlaubzeit', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_holiday'), array('help' => 'wpsg_mod_deliverytime_holiday')); ?>
44
<div class="wpsg_mod_deliverytime_holiday_activ" style="display:none;">
45
<?php echo wpsg_drawForm_Input('wpsg_mod_deliverytime_holidayStart', __('Urlaubsbeginn', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_holidayStart'), array('datepicker' => true, 'help' => 'wpsg_mod_deliverytime_holidayStart')); ?>
46
<?php echo wpsg_drawForm_Input('wpsg_mod_deliverytime_holidayEnd', __('Urlaubsende', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_holidayEnd'), array('datepicker' => true, 'help' => 'wpsg_mod_deliverytime_holidayEnd')); ?>
47
<?php echo wpsg_drawForm_Input('wpsg_mod_deliverytime_holidaytext', __('Urlaubsgruß', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_holidaytext'), array('help' => 'wpsg_mod_deliverytime_holidaytext')); ?>
48
</div>
49
 
50
<br /><br />
51
 
3525 daniel 52
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime_show_product', __('Im Produkt anzeigen', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_show_product'), array('help' => 'wpsg_mod_deliverytime_show_product')); ?>
53
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime_show_basket', __('Im Warenkorb anzeigen', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_show_basket'), array('help' => 'wpsg_mod_deliverytime_show_basket')); ?>
54
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime_show_overview', __('In Bestellzusammenfassung anzeigen', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_show_overview'), array('help' => 'wpsg_mod_deliverytime_show_overview')); ?>
4372 daniel 55
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime_show_mail', __('In den Mails anzeigen', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_show_mail'), array('help' => 'wpsg_mod_deliverytime_show_mail')); ?>
3525 daniel 56
 
5804 daniel 57
<script type="text/javascript">/* <![CDATA[ */
58
 
3525 daniel 59
	jQuery(document).ready(function() {
60
 
6842 hartmut 61
		jQuery('#wpsg_mod_deliverytime_mode_select_values').bind('input', function() {
62
 
63
			val = jQuery('#wpsg_mod_deliverytime_mode_select_values').val();
64
			arVal = val.split(',');
65
			jQuery('#wpsg_mod_deliverytime_mode_select_default').empty();
66
			for (i = 0; i < 3; i++) {
67
				jQuery('#wpsg_mod_deliverytime_mode_select_default').append('<option value=' + i + '>' + arVal[i] + '</option>');
68
			}
69
 
70
		} );
71
 
3525 daniel 72
		jQuery('#wpsg_mod_deliverytime_mode').bind('change', function() {
73
 
74
			jQuery('.wpsg_mod_deliverytime_mode').hide();
75
			jQuery('#wpsg_mod_deliverytime_mode_' + jQuery(this).val()).show();
76
 
77
		} ).change();
6568 hartmut 78
 
79
        jQuery('#wpsg_mod_deliverytime_store').bind('change', function() {
80
 
81
            jQuery('.wpsg_mod_deliverytime_store').hide();
82
            if (jQuery(this).prop('checked')) jQuery('.wpsg_mod_deliverytime_store_1').show();
83
 
84
        } ).change();
85
 
86
		jQuery('#wpsg_mod_deliverytime_delay').bind('change', function() {
87
 
88
			if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_deliverytime_delay_activ').show();
89
			else jQuery('.wpsg_mod_deliverytime_delay_activ').hide();
90
 
91
		} ).change();
6954 thomas 92
 
93
		jQuery('#wpsg_mod_deliverytime_holiday').bind('change', function() {
94
 
95
			if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_deliverytime_holiday_activ').show();
96
			else jQuery('.wpsg_mod_deliverytime_holiday_activ').hide();
97
 
98
		} ).change();
3525 daniel 99
 
5804 daniel 100
	} );
101
 
3525 daniel 102
/* ]]> */</script>