1902 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Produktübersichtsseite (Gitteransicht)
|
6341 |
hartmut |
5 |
*/
|
1902 |
daniel |
6 |
|
3348 |
daniel |
7 |
/* Modus für das Vorschaubild */
|
1902 |
daniel |
8 |
$bPicMode = 'c';
|
|
|
9 |
|
|
|
10 |
/* Höhe und Breite für das Vorschaubild (CSS Layout muss entsprechend angepasst werden) */
|
|
|
11 |
$nPicWidth = 140;
|
|
|
12 |
$nPicHeight = 140;
|
6341 |
hartmut |
13 |
|
1902 |
daniel |
14 |
/* Wenn es auf false gesetzt wird, wird das erste Bild als Vorschaubild verwendet */
|
|
|
15 |
$nPicRand = true;
|
6341 |
hartmut |
16 |
|
1902 |
daniel |
17 |
$col = 4;
|
6341 |
hartmut |
18 |
|
1902 |
daniel |
19 |
?>
|
|
|
20 |
|
2703 |
daniel |
21 |
<?php
|
|
|
22 |
|
|
|
23 |
remove_filter('the_content', array($GLOBALS['wpsg_sc'], 'content_filter'));
|
|
|
24 |
the_content();
|
6341 |
hartmut |
25 |
add_filter('the_content', array($GLOBALS['wpsg_sc'], 'content_filter'));
|
|
|
26 |
|
2703 |
daniel |
27 |
?>
|
|
|
28 |
|
1906 |
daniel |
29 |
<div class="wpsg_mod_productindex wpsg_mod_productindex_grid">
|
6341 |
hartmut |
30 |
|
3340 |
daniel |
31 |
<form method="get" id="wpsg_mod_productindex_form" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
|
6341 |
hartmut |
32 |
|
3540 |
daniel |
33 |
<?php parse_str($_SERVER['QUERY_STRING'], $arGET); if (wpsg_isSizedArray($arGET)) { foreach ($arGET as $key => $value) { if (!wpsg_isSizedArray($value)) { ?>
|
6812 |
daniel |
34 |
<input type="hidden" name="<?php echo $key; ?>" value="<?php echo htmlspecialchars($value); ?>" />
|
3540 |
daniel |
35 |
<?php } } } ?>
|
6341 |
hartmut |
36 |
|
1902 |
daniel |
37 |
<input type="hidden" id="wpsg_mod_productindex_filter_page" name="wpsg_mod_productindex[filter][page]" value="<?php echo $this->view['wpsg_mod_productindex']['filter']['page']; ?>" />
|
6341 |
hartmut |
38 |
<input type="hidden" id="wpsg_mod_productindex_filter_order" name="wpsg_mod_productindex[filter][order]" value="<?php echo $this->view['wpsg_mod_productindex']['filter']['order']; ?>" />
|
1903 |
daniel |
39 |
<input type="hidden" id="wpsg_mod_productindex_template" name="wpsg_mod_productindex[template]" value="<?php echo $this->view['wpsg_mod_productindex']['template']; ?>" />
|
6341 |
hartmut |
40 |
|
1902 |
daniel |
41 |
</form>
|
6341 |
hartmut |
42 |
|
1902 |
daniel |
43 |
<div class="wpsg_mod_productindex_toolbar wpsg_mod_productindex_toolbar_top">
|
6341 |
hartmut |
44 |
|
1902 |
daniel |
45 |
<?php if ($this->view['hideOrder'] != '1') { ?>
|
6341 |
hartmut |
46 |
<div class="wpsg_mod_productindex_order">
|
1902 |
daniel |
47 |
<span><?php echo __('Sortierung:', 'wpsg'); ?></span>
|
|
|
48 |
<select name="wpsg_mod_productindex[filter][order]" class="wpsg_mod_productindex_filter_order">
|
|
|
49 |
<option value="price_asc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'price_asc')?'selected="selected"':''); ?>><?php echo __('Preis (Kleinster zuerst)', 'wpsg'); ?></option>
|
|
|
50 |
<option value="price_desc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'price_desc')?'selected="selected"':''); ?>><?php echo __('Preis (Größter zuerst)', 'wpsg'); ?></option>
|
|
|
51 |
<option value="name_asc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'name_asc')?'selected="selected"':''); ?>><?php echo __('Name Aufsteigend', 'wpsg'); ?></option>
|
|
|
52 |
<option value="name_desc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'name_desc')?'selected="selected"':''); ?>><?php echo __('Name Absteigend', 'wpsg'); ?></option>
|
6342 |
hartmut |
53 |
<option value="pos_asc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'pos_asc')?'selected="selected"':''); ?>><?php echo __('Position Aufsteigend', 'wpsg'); ?></option>
|
|
|
54 |
<option value="pos_desc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'pos_desc')?'selected="selected"':''); ?>><?php echo __('Position Absteigend', 'wpsg'); ?></option> <option value="cdate_asc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'cdate_asc')?'selected="selected"':''); ?>><?php echo __('Erstellungsdatum (Älteste zuerst)', 'wpsg'); ?></option>
|
4376 |
daniel |
55 |
<option value="cdate_asc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'cdate_asc')?'selected="selected"':''); ?>><?php echo __('Erstellungsdatum (Älteste zuerst)', 'wpsg'); ?></option>
|
|
|
56 |
<option value="cdate_desc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'cdate_desc')?'selected="selected"':''); ?>><?php echo __('Erstellungsdatum (Neueste zuerst)', 'wpsg'); ?></option>
|
3648 |
daniel |
57 |
<option value="anr_asc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'anr_asc')?'selected="selected"':''); ?>><?php echo __('Artikelnummer Aufsteigend', 'wpsg'); ?></option>
|
|
|
58 |
<option value="anr_desc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'anr_desc')?'selected="selected"':''); ?>><?php echo __('Artikelnummer Absteigend', 'wpsg'); ?></option>
|
1902 |
daniel |
59 |
</select>
|
|
|
60 |
</div>
|
|
|
61 |
<?php } ?>
|
6341 |
hartmut |
62 |
|
1902 |
daniel |
63 |
<?php if ($this->view['wpsg_mod_productindex']['filter']['pages'] > 1) { ?>
|
|
|
64 |
<div class="wpsg_mod_productindex_pager">
|
|
|
65 |
<span><?php echo __('Seite:', 'wpsg'); ?></span>
|
|
|
66 |
<ul>
|
|
|
67 |
<?php for ($i = 1; $i <= $this->view['wpsg_mod_productindex']['filter']['pages']; $i ++) { ?>
|
|
|
68 |
<li>
|
6341 |
hartmut |
69 |
<?php if ($i == $this->view['wpsg_mod_productindex']['filter']['page']) { ?>
|
4891 |
daniel |
70 |
<span><?php echo $i; ?></span>
|
6341 |
hartmut |
71 |
<?php } else { ?>
|
1902 |
daniel |
72 |
<a title="<?php echo wpsg_translate(__('Zu Seite #1# wechseln', 'wpsg'), $i); ?>" href="#" onclick="return wpsg_mod_productindex_goPage(<?php echo $i; ?>);"><?php echo $i; ?></a>
|
|
|
73 |
<?php } ?>
|
|
|
74 |
</li>
|
|
|
75 |
<?php } ?>
|
|
|
76 |
</ul>
|
|
|
77 |
</div>
|
|
|
78 |
<?php } ?>
|
6341 |
hartmut |
79 |
|
1903 |
daniel |
80 |
<?php if ($this->view['hideViewSelect'] != '1') { ?>
|
|
|
81 |
<div class="wpsg_mod_productindex_viewselect">
|
|
|
82 |
<a href="#" onclick="return wpsg_mod_productindex_viewselect('list.phtml');" title="<?php echo __('Zur Listansicht wechseln.', 'wpsg'); ?>">
|
|
|
83 |
<img src="<?php echo $this->getRessourceURL('mods/mod_productindex/gfx/icon_list.png'); ?>" alt="<?php echo __('Zur Listansicht wechseln.', 'wpsg'); ?>" />
|
|
|
84 |
</a>
|
|
|
85 |
</div>
|
|
|
86 |
<?php } ?>
|
6341 |
hartmut |
87 |
|
1902 |
daniel |
88 |
<div class="wpsg_clear"></div>
|
6341 |
hartmut |
89 |
|
1902 |
daniel |
90 |
</div>
|
|
|
91 |
|
|
|
92 |
<?php if (wpsg_isSizedArray($this->view['arProducts'])) { ?>
|
6341 |
hartmut |
93 |
|
1902 |
daniel |
94 |
<?php $i = 0; foreach ($this->view['arProducts'] as $p) { $i ++; ?>
|
6341 |
hartmut |
95 |
|
2735 |
daniel |
96 |
<?php if (($i - 1) % $col == 0) { ?><div class="wpsg_mod_productindex_productrow"><?php } ?>
|
6341 |
hartmut |
97 |
|
|
|
98 |
<div class="wpsg_mod_productindex_product <?php echo (($i == sizeof($this->view['arProducts']))?'wpsg_mod_productindex_product_last':''); ?> <?php echo (($i == 1)?'wpsg_mod_productindex_product_first':''); ?>" style="width:<?php echo round((100 / $col), 2) ?>%;">
|
2735 |
daniel |
99 |
<div class="wpsg_mod_productindex_product_inner">
|
6451 |
thomas |
100 |
|
6840 |
thomas |
101 |
<a title="<?php echo __('Zur Detailseite des Produkts', 'wpsg'); ?>" href="<?php echo wpsg_url($p['url']); ?>">
|
|
|
102 |
<?php $attachment_id = $this->imagehandler->getAttachmentID($p['product_key']); ?>
|
|
|
103 |
<?php echo wp_get_attachment_image($attachment_id, array(800, 600)); ?>
|
|
|
104 |
</a>
|
6451 |
thomas |
105 |
|
|
|
106 |
|
2735 |
daniel |
107 |
<div class="wpsg_mod_productindex_content">
|
4091 |
daniel |
108 |
<div class="wpsg_mod_productindex_title">
|
4907 |
thomas |
109 |
<a title="<?php echo __('Zur Detailseite des Produkts', 'wpsg'); ?>" href="<?php echo wpsg_url($p['url']); ?>"><?php echo $this->getProductName($this->getProduktID($p['id']), true); ?></a>
|
6341 |
hartmut |
110 |
</div>
|
|
|
111 |
<div class="wpsg_mod_productindex_infos">
|
2735 |
daniel |
112 |
<div class="wpsg_mod_productindex_weight">
|
|
|
113 |
<?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProductindex') == '1') { ?>
|
|
|
114 |
<?php if ($p['min_weight'] == $p['max_weight']) { ?>
|
6341 |
hartmut |
115 |
<?php echo wpsg_translate(__('Gewicht: #1#', 'wpsg'), wpsg_ff($p['weight'], $this->get_option('wpsg_mod_weight_unit'))); ?>
|
2735 |
daniel |
116 |
<?php } else { ?>
|
|
|
117 |
<?php echo wpsg_translate(__('Gewicht: ab #1#', 'wpsg'), wpsg_ff($p['min_weight'], $this->get_option('wpsg_mod_weight_unit'))); ?>
|
|
|
118 |
<?php } ?>
|
|
|
119 |
<?php } ?>
|
|
|
120 |
</div>
|
6341 |
hartmut |
121 |
|
2735 |
daniel |
122 |
<div class="wpsg_mod_productindex_fmenge">
|
|
|
123 |
<?php if ($this->hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showProductindex_fmenge') == '1') { ?>
|
|
|
124 |
<?php echo wpsg_translate(__('Füllmenge: #1#', 'wpsg'), wpsg_ff($p['fmenge'], $p['feinheit'])); ?>
|
|
|
125 |
<?php } ?>
|
6341 |
hartmut |
126 |
</div>
|
|
|
127 |
|
2735 |
daniel |
128 |
<div class="wpsg_mod_productindex_gpreis">
|
|
|
129 |
<?php if ($this->hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showProductindex_grundpreis') == '1') { ?>
|
6341 |
hartmut |
130 |
<?php echo wpsg_translate(__('Grundpreis: #1# / #2#', 'wpsg'),
|
2735 |
daniel |
131 |
wpsg_ff($p['fmenge_preis'], $this->get_option('wpsg_currency')),
|
|
|
132 |
wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $p['feinheit'])
|
|
|
133 |
); ?>
|
6104 |
hartmut |
134 |
<?php } ?>
|
6341 |
hartmut |
135 |
</div>
|
|
|
136 |
</div>
|
|
|
137 |
|
4910 |
thomas |
138 |
<?php if ($this->hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProductindex') == '1') { ?>
|
|
|
139 |
<div class="wpsg_mod_produktindex_stock">
|
6341 |
hartmut |
140 |
<?php echo wpsg_translate(__('Lagerbestand: #1#','wpsg'), $p['stock']); ?>
|
4910 |
thomas |
141 |
</div>
|
|
|
142 |
<?php } ?>
|
6341 |
hartmut |
143 |
|
5548 |
thomas |
144 |
<?php /*Abfrage Preisanzeige nur für eingeloggte Benutzer START*/?>
|
6341 |
hartmut |
145 |
<?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
|
5548 |
thomas |
146 |
<div class="wpsg_mod_productindex_price">
|
|
|
147 |
<?php if ($p['min_preis'] == $p['max_preis']) { ?>
|
|
|
148 |
<?php echo wpsg_ff($p['preis'], $this->get_option('wpsg_currency')); ?>
|
|
|
149 |
<?php } else { ?>
|
|
|
150 |
<?php echo wpsg_translate(__('ab #1#', 'wpsg'), wpsg_ff($p['min_preis'], $this->get_option('wpsg_currency'))); ?>
|
|
|
151 |
<?php } ?>
|
|
|
152 |
</div>
|
6341 |
hartmut |
153 |
<?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
|
5548 |
thomas |
154 |
<div class="wpsg_produkt_preishinweis">
|
|
|
155 |
<?php echo wpsg_translate(__('#2# zzgl. #1#', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>', '<a href="#kkhint" title="'.wpsg_hspc($this->get_option('wpsg_kleinunternehmer_text')).'">Endpreis</a>'); ?>
|
|
|
156 |
</div>
|
6341 |
hartmut |
157 |
<?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
|
|
|
158 |
<div class="wpsg_produkt_preishinweis">
|
5548 |
thomas |
159 |
<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
|
|
|
160 |
<?php echo wpsg_translate(__('(zzgl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($p['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
|
|
|
161 |
<?php } else { /* Frontend = BRUTTO Preise */ ?>
|
|
|
162 |
<?php echo wpsg_translate(__('(inkl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($p['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
|
|
|
163 |
<?php } ?>
|
6341 |
hartmut |
164 |
</div>
|
1902 |
daniel |
165 |
<?php } ?>
|
5548 |
thomas |
166 |
<?php }else{?>
|
|
|
167 |
<?php echo wpsg_translate(__('Preise nur für eingeloggte Benutzer', 'wpsg')); ?>
|
6341 |
hartmut |
168 |
<?php } /* Abfrage Preisanzeige nur für eingeloggte Benutzer ENDE */?>
|
|
|
169 |
|
2735 |
daniel |
170 |
<div class="wpsg_mod_productindex_button">
|
6341 |
hartmut |
171 |
|
6286 |
hartmut |
172 |
<?php //if ($this->hasMod('wpsg_mod_stock') && $this->callMod('wpsg_mod_stock', 'checkBestand', array($this->getProduktID($p['id']), 1)) === false) { ?>
|
|
|
173 |
<?php if (false) { ?>
|
2735 |
daniel |
174 |
<span class="wpsg_produkt_soldout"><?php echo __('Produkt ausverkauft', 'wpsg'); ?></span>
|
6341 |
hartmut |
175 |
<?php } else { ?>
|
2735 |
daniel |
176 |
<a class="wpsg_button" title="<?php echo __('Zur Detailseite des Produkts', 'wpsg'); ?>" href="<?php echo wpsg_url($p['url']); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?></a>
|
1902 |
daniel |
177 |
<?php } ?>
|
6341 |
hartmut |
178 |
|
2735 |
daniel |
179 |
</div>
|
6341 |
hartmut |
180 |
|
1902 |
daniel |
181 |
</div>
|
2735 |
daniel |
182 |
<div class="wpsg_clear"></div>
|
6341 |
hartmut |
183 |
</div>
|
|
|
184 |
</div>
|
|
|
185 |
|
2735 |
daniel |
186 |
<?php if (($i - 1) % $col == ($col - 1)) { ?><div class="wpsg_clear"></div></div><?php } ?>
|
6341 |
hartmut |
187 |
|
1902 |
daniel |
188 |
<?php } ?>
|
6341 |
hartmut |
189 |
|
1902 |
daniel |
190 |
<?php if (($i - 1) % $col != ($col - 1)) { ?><div class="wpsg_clear"></div></div><?php } ?>
|
6341 |
hartmut |
191 |
|
1902 |
daniel |
192 |
<?php } else { ?>
|
|
|
193 |
<div class="wpsg_mod_productindex_empty"><?php echo __('Keine passenden Produkte gefunden.', 'wpsg'); ?></div>
|
|
|
194 |
<?php } ?>
|
6341 |
hartmut |
195 |
|
1902 |
daniel |
196 |
<div class="wpsg_mod_productindex_toolbar wpsg_mod_productindex_toolbar_bottom">
|
6341 |
hartmut |
197 |
|
1902 |
daniel |
198 |
<?php if ($this->view['hideOrder'] != '1') { ?>
|
|
|
199 |
<div class="wpsg_mod_productindex_order">
|
|
|
200 |
<span><?php echo __('Sortierung:', 'wpsg'); ?></span>
|
|
|
201 |
<select name="wpsg_mod_productindex[filter][order]" class="wpsg_mod_productindex_filter_order">
|
|
|
202 |
<option value="price_asc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'price_asc')?'selected="selected"':''); ?>><?php echo __('Preis (Kleinster zuerst)', 'wpsg'); ?></option>
|
|
|
203 |
<option value="price_desc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'price_desc')?'selected="selected"':''); ?>><?php echo __('Preis (Größter zuerst)', 'wpsg'); ?></option>
|
|
|
204 |
<option value="name_asc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'name_asc')?'selected="selected"':''); ?>><?php echo __('Name Aufsteigend', 'wpsg'); ?></option>
|
|
|
205 |
<option value="name_desc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'name_desc')?'selected="selected"':''); ?>><?php echo __('Name Absteigend', 'wpsg'); ?></option>
|
6342 |
hartmut |
206 |
<option value="pos_asc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'pos_asc')?'selected="selected"':''); ?>><?php echo __('Position Aufsteigend', 'wpsg'); ?></option>
|
|
|
207 |
<option value="pos_desc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'pos_desc')?'selected="selected"':''); ?>><?php echo __('Position Absteigend', 'wpsg'); ?></option> <option value="cdate_asc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'cdate_asc')?'selected="selected"':''); ?>><?php echo __('Erstellungsdatum (Älteste zuerst)', 'wpsg'); ?></option>
|
4376 |
daniel |
208 |
<option value="cdate_asc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'cdate_asc')?'selected="selected"':''); ?>><?php echo __('Erstellungsdatum (Älteste zuerst)', 'wpsg'); ?></option>
|
|
|
209 |
<option value="cdate_desc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'cdate_desc')?'selected="selected"':''); ?>><?php echo __('Erstellungsdatum (Neueste zuerst)', 'wpsg'); ?></option>
|
3648 |
daniel |
210 |
<option value="anr_asc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'anr_asc')?'selected="selected"':''); ?>><?php echo __('Artikelnummer Aufsteigend', 'wpsg'); ?></option>
|
|
|
211 |
<option value="anr_desc" <?php echo (($this->view['wpsg_mod_productindex']['filter']['order'] == 'anr_desc')?'selected="selected"':''); ?>><?php echo __('Artikelnummer Absteigend', 'wpsg'); ?></option>
|
1902 |
daniel |
212 |
</select>
|
|
|
213 |
</div>
|
|
|
214 |
<?php } ?>
|
6341 |
hartmut |
215 |
|
1902 |
daniel |
216 |
<?php if ($this->view['wpsg_mod_productindex']['filter']['pages'] > 1) { ?>
|
|
|
217 |
<div class="wpsg_mod_productindex_pager">
|
|
|
218 |
<span><?php echo __('Seite:', 'wpsg'); ?></span>
|
|
|
219 |
<ul>
|
|
|
220 |
<?php for ($i = 1; $i <= $this->view['wpsg_mod_productindex']['filter']['pages']; $i ++) { ?>
|
|
|
221 |
<li>
|
6341 |
hartmut |
222 |
<?php if ($i == $this->view['wpsg_mod_productindex']['filter']['page']) { ?>
|
4891 |
daniel |
223 |
<span><?php echo $i; ?></span>
|
6341 |
hartmut |
224 |
<?php } else { ?>
|
1902 |
daniel |
225 |
<a title="<?php echo wpsg_translate(__('Zu Seite #1# wechseln', 'wpsg'), $i); ?>" href="#" onclick="return wpsg_mod_productindex_goPage(<?php echo $i; ?>);"><?php echo $i; ?></a>
|
|
|
226 |
<?php } ?>
|
|
|
227 |
</li>
|
|
|
228 |
<?php } ?>
|
|
|
229 |
</ul>
|
|
|
230 |
</div>
|
|
|
231 |
<?php } ?>
|
6341 |
hartmut |
232 |
|
1903 |
daniel |
233 |
<?php if ($this->view['hideViewSelect'] != '1') { ?>
|
|
|
234 |
<div class="wpsg_mod_productindex_viewselect">
|
|
|
235 |
<a href="#" onclick="return wpsg_mod_productindex_viewselect('list.phtml');" title="<?php echo __('Zur Listansicht wechseln.', 'wpsg'); ?>">
|
|
|
236 |
<img src="<?php echo $this->getRessourceURL('mods/mod_productindex/gfx/icon_list.png'); ?>" alt="<?php echo __('Zur Listansicht wechseln.', 'wpsg'); ?>" />
|
|
|
237 |
</a>
|
|
|
238 |
</div>
|
|
|
239 |
<?php } ?>
|
6341 |
hartmut |
240 |
|
1902 |
daniel |
241 |
<div class="wpsg_clear"></div>
|
6341 |
hartmut |
242 |
|
1902 |
daniel |
243 |
</div>
|
|
|
244 |
|
|
|
245 |
<?php if ($this->get_option('wpsg_kleinunternehmer')) { ?>
|
|
|
246 |
<a name="kkhint"></a>
|
2699 |
david |
247 |
<div class="wpsg_mod_productindex_kuhint"><?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?></div>
|
1902 |
daniel |
248 |
<?php } ?>
|
|
|
249 |
|
|
|
250 |
</div>
|
|
|
251 |
|
|
|
252 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
253 |
|
|
|
254 |
function wpsg_mod_productindex_goPage(page)
|
|
|
255 |
{
|
|
|
256 |
|
|
|
257 |
jQuery('#wpsg_mod_productindex_filter_page').val(page);
|
|
|
258 |
jQuery('#wpsg_mod_productindex_form').submit();
|
|
|
259 |
|
|
|
260 |
return false;
|
6341 |
hartmut |
261 |
|
1902 |
daniel |
262 |
} // function wpsg_mod_productindex_goPage(page)
|
|
|
263 |
|
1903 |
daniel |
264 |
function wpsg_mod_productindex_viewselect(template)
|
|
|
265 |
{
|
|
|
266 |
|
|
|
267 |
jQuery('#wpsg_mod_productindex_template').val(template);
|
|
|
268 |
jQuery('#wpsg_mod_productindex_form').submit();
|
|
|
269 |
|
|
|
270 |
return false;
|
6341 |
hartmut |
271 |
|
1903 |
daniel |
272 |
} // function wpsg_mod_productindex_viewselect(template)
|
6341 |
hartmut |
273 |
|
1902 |
daniel |
274 |
jQuery(document).ready(function() {
|
|
|
275 |
|
|
|
276 |
jQuery('.wpsg_mod_productindex_filter_order').bind('change', function() {
|
6341 |
hartmut |
277 |
|
1902 |
daniel |
278 |
jQuery('#wpsg_mod_productindex_filter_order').val(jQuery(this).find('option:selected').attr('value'));
|
|
|
279 |
jQuery('#wpsg_mod_productindex_filter_page').val('1');
|
6341 |
hartmut |
280 |
jQuery('#wpsg_mod_productindex_form').submit();
|
|
|
281 |
|
1902 |
daniel |
282 |
} );
|
6341 |
hartmut |
283 |
|
6451 |
thomas |
284 |
} );
|
|
|
285 |
|
1902 |
daniel |
286 |
/* ]]> */</script>
|