Subversion Repositories wpShopGermany4

Rev

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