Subversion Repositories wpShopGermany4

Rev

Rev 6329 | Rev 6753 | 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
 
6496 thomas 9
<br />
10
 
1854 daniel 11
<?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)); ?>
12
 
6496 thomas 13
<br />
14
 
1854 daniel 15
<div id="wpsg_mod_productindex_layer" style="display:none;">
1899 daniel 16
 
6496 thomas 17
	<div style="width:50%; float:none;">
18
 
19
		<?php /* alle Produkte */ ?>
20
		<?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)); ?>
21
		<br />
22
 
23
		<?php /* Produktanzahl */ ?>
24
		<?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)); ?>
25
		<br />
26
 
27
		<?php /* kommagetrennte Produktauswahl */ ?>
28
		<div class="wpsg_mod_productindex_layershow wpsg_mod_productindex_layer_1" style="display:none;">
29
			<?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)); ?>
30
			<br />
31
		</div>
32
 
33
		<?php /* Produktgruppenauswahl*/ ?>
34
		<div class="wpsg_mod_productindex_layershow wpsg_mod_productindex_layer_2" style="display:none;">
35
			<?php if (sizeof($this->view['wpsg_mod_productindex']['arProductGroups']) <= 0) { ?>
36
				<?php echo wpsg_drawForm_Input('', __('Produktgruppen', 'wpsg'), __('Keine Produktgruppen angelegt.', 'wpsg'), array('text' => true)); ?>
37
			<?php } else { ?>
38
				<?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))); ?>
39
			<?php } ?>
40
			<br />
41
		</div>
42
 
43
		<?php /* Produktkategorieauswahl */ ?>
44
		<div class="wpsg_mod_productindex_layershow wpsg_mod_productindex_layer_3" style="display:none;">
45
			<?php if (sizeof($this->view['wpsg_mod_productindex']['arCategories']) <= 0) { ?>
46
				<?php echo wpsg_drawForm_Input('', __('Kategorien', 'wpsg'), __('Keine Kategorien angelegt.', 'wpsg'), array('text' => true)); ?>
47
			<?php } else { ?>
48
				<?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))); ?>
49
			<?php } ?>
50
			<br />
51
		</div>
52
 
1900 daniel 53
	</div>
6496 thomas 54
 
55
	<div style="width:50%; float:none;">
56
 
57
		<?php /* Produkttemplateauswahl list/grid */ ?>
58
		<?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)); ?>
59
 
60
		<br />
61
 
62
		<?php /* Standardsortierauswahl */ ?>
63
		<?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)); ?>
64
 
65
		<br />
66
 
67
		<?php /* Sortierauswahl ausblenden */ ?>
68
		<?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)); ?>
69
 
70
		<br />
71
 
72
		<?php /* Ansichtswechsel ausblenden */ ?>
73
		<?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)); ?>
74
 
1901 daniel 75
	</div>
6496 thomas 76
 
1854 daniel 77
</div>
78
 
6238 daniel 79
<script type="text/javascript">/* <![CDATA[ */
1854 daniel 80
 
81
	/**
82
	 * Zeigt / Versteckt die Optionen für die Produktübersichtsseite
83
	 */
1899 daniel 84
	function wpsg_mod_productindex_activate()
1854 daniel 85
	{
1899 daniel 86
 
1854 daniel 87
		if (jQuery('#wpsg_mod_productindex_active').attr('checked'))
88
		{
89
			jQuery('#wpsg_mod_productindex_layer').show();
90
		}
91
		else
92
		{
93
			jQuery('#wpsg_mod_productindex_layer').hide();
94
		}
95
 
1905 daniel 96
	} // wpsg_mod_productindex_activate()
1854 daniel 97
 
1900 daniel 98
	function wpsg_mod_productindex_switchShow()
99
	{
100
 
101
		var show = jQuery('#wpsg_mod_productindex_show').val();
102
 
103
		jQuery('.wpsg_mod_productindex_layershow').hide();
104
		jQuery('.wpsg_mod_productindex_layer_' + show).show();
105
 
106
	} // function wpsg_mod_productindex_switchShow()
107
 
1854 daniel 108
	jQuery(document).ready(function() {
109
 
1899 daniel 110
		jQuery('#wpsg_mod_productindex_active').bind('change', function() { wpsg_mod_productindex_activate(); } );
1900 daniel 111
		jQuery('#wpsg_mod_productindex_show').bind('change', function() { wpsg_mod_productindex_switchShow(); } );
1854 daniel 112
 
113
		wpsg_mod_productindex_activate();
1900 daniel 114
		wpsg_mod_productindex_switchShow();
1854 daniel 115
 
116
	} );
117
 
118
/* ]]> */</script>