Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
1854 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Einstellungen innerhalb des Posts
5
	 */
1899 daniel 6
 
1854 daniel 7
?>
8
 
9
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productindex_active', __('Seite als Produktseite verwenden', 'wpsg'), get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_active', true)); ?>
10
 
11
<div id="wpsg_mod_productindex_layer" style="display:none;">
1899 daniel 12
 
13
	<?php echo wpsg_drawForm_Select('wpsg_mod_productindex_show', __('Produkte', 'wpsg'), $this->view['wpsg_mod_productindex']['arShow'], get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_show', true)); ?>
1900 daniel 14
	<div class="wpsg_mod_productindex_layershow wpsg_mod_productindex_layer_1" style="display:none;">
15
	<?php echo wpsg_drawForm_Input('wpsg_mod_productindex_productids', __('Produktauswahl (Kommagetrennte IDs)', 'wpsg'), get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_productids', true)); ?>
16
	</div>
17
	<div class="wpsg_mod_productindex_layershow wpsg_mod_productindex_layer_2" style="display:none;">
1901 daniel 18
	<?php if (sizeof($this->view['wpsg_mod_productindex']['arProductGroups']) <= 0) { ?>
19
		<?php echo wpsg_drawForm_Input('', __('Produktgruppen', 'wpsg'), __('Keine Produktgruppen angelegt.', 'wpsg'), array('text' => true)); ?>
20
	<?php } else { ?>
2970 daniel 21
		<?php echo wpsg_drawForm_Select('wpsg_mod_productindex_groups', __('Produktgruppen', 'wpsg'), $this->view['wpsg_mod_productindex']['arProductGroups'], get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_groups', true), array('multiple' => ((sizeof($this->view['wpsg_mod_productindex']['arProductGroups']) < 5)?sizeof($this->view['wpsg_mod_productindex']['arProductGroups']):5))); ?>
1901 daniel 22
	<?php } ?>
1900 daniel 23
	</div>
1901 daniel 24
	<div class="wpsg_mod_productindex_layershow wpsg_mod_productindex_layer_3" style="display:none;">
2945 daniel 25
	<?php if (sizeof($this->view['wpsg_mod_productindex']['arCategories']) <= 0) { ?>
1901 daniel 26
		<?php echo wpsg_drawForm_Input('', __('Kategorien', 'wpsg'), __('Keine Kategorien angelegt.', 'wpsg'), array('text' => true)); ?>
27
	<?php } else { ?>
2970 daniel 28
		<?php echo wpsg_drawForm_Select('wpsg_mod_productindex_categories', __('Kategorien', 'wpsg'), $this->view['wpsg_mod_productindex']['arCategories'], get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_categories', true), array('multiple' => ((sizeof($this->view['wpsg_mod_productindex']['arCategories']) < 5)?sizeof($this->view['wpsg_mod_productindex']['arCategories']):5))); ?>
1901 daniel 29
	<?php } ?>
30
	</div>
1900 daniel 31
	<?php echo wpsg_drawForm_Select('wpsg_mod_productindex_template', __('Template', 'wpsg'), $this->view['wpsg_mod_productindex']['arTemplates'], get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_template', true), array('noIndex' => true)); ?>
32
	<?php echo wpsg_drawForm_Input('wpsg_mod_productindex_perPage', __('Pro Seite', 'wpsg'), get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_perPage', true)); ?>
1902 daniel 33
	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productindex_hideOrder', __('Sortierungsauswahl ausblenden', 'wpsg'), get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_hideOrder', true)); ?>
1906 daniel 34
	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productindex_hideViewSelect', __('Ansichtenwechsel ausblenden', 'wpsg'), get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_hideViewSelect', true)); ?>
2735 daniel 35
 
36
	<?php if ($this->hasMod('wpsg_mod_stock')) { ?>
37
	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productindex_showAusverkauft', __('Ausverkaufte anzeigen', 'wpsg'), get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_showAusverkauft', true)); ?>
38
	<?php } ?>
39
 
2982 daniel 40
	<?php echo wpsg_drawForm_Select('wpsg_mod_productindex_order', __('Standardsortierung', 'wpsg'), $this->view['wpsg_mod_productindex']['arOrder'], get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_order', true)); ?>
1899 daniel 41
 
1854 daniel 42
</div>
43
 
6238 daniel 44
<script type="text/javascript">/* <![CDATA[ */
1854 daniel 45
 
46
	/**
47
	 * Zeigt / Versteckt die Optionen für die Produktübersichtsseite
48
	 */
1899 daniel 49
	function wpsg_mod_productindex_activate()
1854 daniel 50
	{
1899 daniel 51
 
1854 daniel 52
		if (jQuery('#wpsg_mod_productindex_active').attr('checked'))
53
		{
54
			jQuery('#wpsg_mod_productindex_layer').show();
55
		}
56
		else
57
		{
58
			jQuery('#wpsg_mod_productindex_layer').hide();
59
		}
60
 
1905 daniel 61
	} // wpsg_mod_productindex_activate()
1854 daniel 62
 
1900 daniel 63
	function wpsg_mod_productindex_switchShow()
64
	{
65
 
66
		var show = jQuery('#wpsg_mod_productindex_show').val();
67
 
68
		jQuery('.wpsg_mod_productindex_layershow').hide();
69
		jQuery('.wpsg_mod_productindex_layer_' + show).show();
70
 
71
	} // function wpsg_mod_productindex_switchShow()
72
 
1854 daniel 73
	jQuery(document).ready(function() {
74
 
1899 daniel 75
		jQuery('#wpsg_mod_productindex_active').bind('change', function() { wpsg_mod_productindex_activate(); } );
1900 daniel 76
		jQuery('#wpsg_mod_productindex_show').bind('change', function() { wpsg_mod_productindex_switchShow(); } );
1854 daniel 77
 
78
		wpsg_mod_productindex_activate();
1900 daniel 79
		wpsg_mod_productindex_switchShow();
1854 daniel 80
 
81
	} );
82
 
83
/* ]]> */</script>