Subversion Repositories wpShopGermany4

Rev

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