6855 |
thomas |
1 |
<?php
|
|
|
2 |
|
7809 |
daniel |
3 |
/**
|
|
|
4 |
* Template für die Übersicht der Abonnements
|
|
|
5 |
*/
|
|
|
6 |
|
6855 |
thomas |
7 |
?>
|
|
|
8 |
|
|
|
9 |
<div class="wpsg_order" id="wpsg-bs">
|
|
|
10 |
|
|
|
11 |
<nav class="navbar navbar-default">
|
|
|
12 |
<div class="container-fluid">
|
|
|
13 |
<div class="navbar-header">
|
|
|
14 |
|
|
|
15 |
<a class="navbar-brand" href="#"><?php echo __('wpShopGermany', 'wpsg'); ?></a>
|
|
|
16 |
<a class="glyphicon glyphicon-menu-hamburger wpsg-bs-toggle-nav visible-xs-block" data-toggle="collapse" data-target="#wpsg-bs-headermenu" href="#"></a>
|
|
|
17 |
|
|
|
18 |
</div>
|
|
|
19 |
<div class="collapse navbar-collapse" id="wpsg-bs-headermenu">
|
|
|
20 |
<ul class="nav navbar-nav">
|
|
|
21 |
<li role="presentation" class="<?php echo ((!isset($_REQUEST['action']))?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order" onclick="return false;"><?php echo __("Aboübersicht", "wpsg"); ?></a></li>
|
|
|
22 |
<li role="presentation" class="wpsg_showhide_filter wpsg-order-tab-a <?php echo (($this->view['hasFilter'] === true)?'active':''); ?>" id="wpsg-order-tab-0"><a href="#" onclick="return false;"><span class="glyphicon glyphicon-search"></span><?php echo __("Suche", "wpsg"); ?></a></li>
|
|
|
23 |
</ul>
|
|
|
24 |
</div>
|
|
|
25 |
</div>
|
|
|
26 |
|
|
|
27 |
<div class="wpsg-filter wpsg-order-tab wpsg-order-tab-0 container-fluid form-horizontal" style="display:<?php echo (($this->view['hasFilter'] === true)?'block':'none'); ?>;">
|
|
|
28 |
<div class="row">
|
|
|
29 |
<div class="col-lg-4">
|
|
|
30 |
<form method="post" id="filter_form" >
|
7562 |
daniel |
31 |
|
|
|
32 |
<?php echo wpsg_formNounce('Abo', 'index', ['search' => '1']); ?>
|
|
|
33 |
|
6855 |
thomas |
34 |
<input id="wpsg_seite" type="hidden" name="seite" value="<?php echo @$this->view['arFilter']['page']; ?>" class="current-page" />
|
|
|
35 |
<input id="wpsg_order" type="hidden" name="filter[order]" value="<?php echo @$this->view['arFilter']['order']; ?>" />
|
|
|
36 |
<input id="wpsg_ascdesc" type="hidden" name="filter[ascdesc]" value="<?php echo @$this->view['arFilter']['ascdesc']; ?>" />
|
|
|
37 |
|
|
|
38 |
<?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld', 'wpsg'), wpsg_getStr($this->view['arFilter']['s'])); ?>
|
|
|
39 |
<?php echo wpsg_drawForm_Input('filter[k_id]', __('Kunde (ID)', 'wpsg'), wpsg_getStr($this->view['arFilter']['k_id'])); ?>
|
7807 |
daniel |
40 |
|
|
|
41 |
<?php
|
|
|
42 |
|
|
|
43 |
$arStateSelect = [];
|
|
|
44 |
foreach ($this->view['arState'] as $state_key => $state_data) $arStateSelect[$state_key] = $state_data['label'];
|
|
|
45 |
|
|
|
46 |
echo wpsg_drawForm_Select('filter[status]', __('Abostatus', 'wpsg'), wpsg_array_merge(array('-1' => __('Alle', 'wpsg')), $arStateSelect), @$this->view['arFilter']['state']); ?>
|
6855 |
thomas |
47 |
|
|
|
48 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
|
|
49 |
<div class="row">
|
|
|
50 |
<div class="col-lg-6">
|
|
|
51 |
<select name="filter[cdate_m]" class="form-control input-sm">
|
|
|
52 |
<option value="-1"><?php echo __("Alle", "wpsg"); ?></option>
|
|
|
53 |
<?php for ($i = 1; $i <= 12; $i ++) { ?>
|
|
|
54 |
<option <?php echo ((wpsg_getStr($this->view['arFilter']['cdate_m']) == $i)?'selected="selected"':''); ?> value="<?php echo str_pad($i, 2, '0', STR_PAD_LEFT); ?>"><?php echo strftime("%B", mktime(0, 0, 0, $i, 1, 2000)); ?></option>
|
|
|
55 |
<?php } ?>
|
|
|
56 |
</select>
|
|
|
57 |
</div>
|
|
|
58 |
<div class="col-lg-6">
|
|
|
59 |
<select name="filter[cdate_y]" class="form-control input-sm">
|
|
|
60 |
<option value="-1"><?php echo __("Alle", "wpsg"); ?></option>
|
|
|
61 |
<?php foreach ($this->view['cdate_years'] as $y) { ?>
|
|
|
62 |
<option <?php echo ((wpsg_getStr($this->view['arFilter']['cdate_y']) == $y)?'selected="selected"':''); ?> value="<?php echo $y; ?>"><?php echo $y; ?></option>
|
|
|
63 |
<?php } ?>
|
|
|
64 |
</select>
|
|
|
65 |
</div>
|
|
|
66 |
</div>
|
|
|
67 |
<?php echo wpsg_drawForm_TextEnd(__('Abo abgeschlossen am (Monat/Jahr)', 'wpsg'), array('noP' => true)); ?>
|
|
|
68 |
|
|
|
69 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
|
|
70 |
<div class="row">
|
|
|
71 |
<div class="col-lg-6">
|
6867 |
hartmut |
72 |
<select name="filter[enddate_m]" class="form-control input-sm">
|
6855 |
thomas |
73 |
<option value="-1"><?php echo __("Alle", "wpsg"); ?></option>
|
|
|
74 |
<?php for ($i = 1; $i <= 12; $i ++) { ?>
|
6867 |
hartmut |
75 |
<option <?php echo ((wpsg_getStr($this->view['arFilter']['enddate_m']) == $i)?'selected="selected"':''); ?> value="<?php echo str_pad($i, 2, '0', STR_PAD_LEFT); ?>"><?php echo strftime("%B", mktime(0, 0, 0, $i, 1, 2000)); ?></option>
|
6855 |
thomas |
76 |
<?php } ?>
|
|
|
77 |
</select>
|
|
|
78 |
</div>
|
|
|
79 |
<div class="col-lg-6">
|
6867 |
hartmut |
80 |
<select name="filter[enddate_y]" class="form-control input-sm">
|
6855 |
thomas |
81 |
<option value="-1"><?php echo __("Alle", "wpsg"); ?></option>
|
8264 |
karl |
82 |
<?php if(isset($this->view['enddate_years']) && !empty($this->view['enddate_years'])) {
|
|
|
83 |
foreach ($this->view['enddate_years'] as $y) { ?>
|
|
|
84 |
<option <?php echo ((wpsg_getStr($this->view['arFilter']['enddate_y']) == $y)?'selected="selected"':''); ?> value="<?php echo $y; ?>"><?php echo $y; ?></option>
|
|
|
85 |
<?php }
|
|
|
86 |
} ?>
|
6855 |
thomas |
87 |
</select>
|
|
|
88 |
</div>
|
|
|
89 |
</div>
|
|
|
90 |
<?php echo wpsg_drawForm_TextEnd(__('Abo gekündigt am (Monat/Jahr)', 'wpsg'), array('noP' => true)); ?>
|
|
|
91 |
|
|
|
92 |
<br />
|
|
|
93 |
|
|
|
94 |
<?php echo wpsg_drawForm_SubmitButton(__('Abonnement suchen')); ?>
|
|
|
95 |
|
|
|
96 |
</form>
|
|
|
97 |
</div>
|
|
|
98 |
</div>
|
|
|
99 |
</div>
|
|
|
100 |
|
|
|
101 |
</nav>
|
|
|
102 |
|
|
|
103 |
<div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"/></div>
|
|
|
104 |
|
|
|
105 |
<div class="pagination_wrap wpsg_status_link_wrap">
|
|
|
106 |
|
|
|
107 |
<ul class="pagination">
|
7807 |
daniel |
108 |
<?php foreach ($this->view['arState'] as $status_key => $status_info) { ?>
|
|
|
109 |
<li class="<?php echo ((wpsg_getStr($this->view['arFilter']['state']) == $status_key)?'active':''); ?>"><a href="#" onclick="return wpsg_setFilterStatus('<?php echo $status_key; ?>');"><?php echo wpsg_translate(__('#1# <span>(#2#)<span>', 'wpsg'), $status_info['label'], $status_info['count']); ?></a></li>
|
6855 |
thomas |
110 |
<?php } ?>
|
|
|
111 |
</ul>
|
|
|
112 |
|
|
|
113 |
</div>
|
|
|
114 |
|
|
|
115 |
<?php $this->render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?>
|
|
|
116 |
|
|
|
117 |
<div class="wpsg_clear"></div>
|
|
|
118 |
|
|
|
119 |
<div class="content">
|
|
|
120 |
<form method="post" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&noheader=1" enctype="multipart/form-data">
|
|
|
121 |
|
|
|
122 |
<?php if (is_array($this->view['arData']) && sizeof($this->view['arData']) > 0) { ?>
|
|
|
123 |
|
|
|
124 |
<table class="table table-bordered table-hover table-striped wpsg-table-order">
|
|
|
125 |
<thead>
|
|
|
126 |
<tr>
|
|
|
127 |
<th class="col_checkbox"><input type="checkbox" onclick="return wpsg_order_checkAll();" /></th>
|
|
|
128 |
<th class="col_nr wpsg_order" data-order="cdate"><?php echo __('Nr', 'wpsg'); ?></th>
|
|
|
129 |
<th class="col_customer wpsg_order" data-order="customer"><?php echo __('Kunde', 'wpsg'); ?></th>
|
|
|
130 |
<th class="col_payment wpsg_order" data-order="payment"><?php echo __('Bezahlmethode', 'wpsg'); ?></th>
|
|
|
131 |
<th class="col_shipping wpsg_order" data-order="shipping"><?php echo __('Versandart', 'wpsg'); ?></th>
|
8264 |
karl |
132 |
<th class="col_products wpsg_order" data-order="products"><?php echo __('Abonnement', 'wpsg'); ?></th>
|
6855 |
thomas |
133 |
<th class="col_sum wpsg_order" data-order="amount"><?php echo __('Bestellwert', 'wpsg'); ?></th>
|
7976 |
daniel |
134 |
<th class="col_time wpsg_order" data-order="expiration"><?php echo __('Laufzeit', 'wpsg'); ?></th>
|
|
|
135 |
<th class="col_state"><?php echo __('Status', 'wpsg'); ?></th>
|
6855 |
thomas |
136 |
</tr>
|
|
|
137 |
</thead>
|
|
|
138 |
<tbody>
|
7809 |
daniel |
139 |
<?php foreach ($this->view['arData'] as $oAbo) {
|
|
|
140 |
|
|
|
141 |
$oOrder = $oAbo->getOrder();
|
|
|
142 |
$oOrderProduct = $oAbo->getOrderProduct();
|
|
|
143 |
|
|
|
144 |
?>
|
6855 |
thomas |
145 |
<tr>
|
|
|
146 |
<td class="col_checkbox">
|
|
|
147 |
|
7807 |
daniel |
148 |
<input class="col_set_checkbox" name="wpsg_multido[<?php echo $oAbo->id; ?>]" type="checkbox" />
|
6855 |
thomas |
149 |
|
6867 |
hartmut |
150 |
</td>
|
6855 |
thomas |
151 |
<td class="col_nr">
|
|
|
152 |
|
7807 |
daniel |
153 |
<?php echo $oAbo->getNr(); ?> <span class="wpsg_grey"><?php echo wpsg_formatTimestamp(strtotime($oAbo->__get('cdate')), false); ?></span><br />
|
6855 |
thomas |
154 |
|
|
|
155 |
<div class="actions">
|
7807 |
daniel |
156 |
|
7627 |
daniel |
157 |
<span class="view"><a title="<?php echo __("Dieses Abonnement ansehen", "wpsg"); ?>" href="<?php
|
|
|
158 |
|
|
|
159 |
echo wpsg_admin_url('Order', 'view', ['edit_id' => $oOrder->id]);
|
|
|
160 |
|
|
|
161 |
?>"><?php echo __("Ansehen", "wpsg"); ?></a></span>
|
6855 |
thomas |
162 |
|
|
7627 |
daniel |
163 |
<span class="delete"><a onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie dieses Abonnement löschen möchten?', 'wpsg'); ?>');" title="<?php echo __('Dieses Abonnement löschen', 'wpsg'); ?>" href="<?php
|
|
|
164 |
|
7809 |
daniel |
165 |
echo wpsg_admin_url('Abo', 'delete', ['abo_id' => $oAbo->id], ['noheader' => '1']);
|
7627 |
daniel |
166 |
|
|
|
167 |
?>"><?php echo __('Löschen', 'wpsg'); ?></a></span>
|
7807 |
daniel |
168 |
|
6855 |
thomas |
169 |
</div>
|
6867 |
hartmut |
170 |
|
7807 |
daniel |
171 |
<?php if (trim($oAbo->getOrder()->admincomment) != "") { ?>
|
|
|
172 |
<a title="<?php echo __("Kommentar (Admin): ", "wpsg").htmlspecialchars($oAbo->getOrder()->admincomment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign admincomment" href="#"></a>
|
6855 |
thomas |
173 |
<?php } ?>
|
|
|
174 |
|
7807 |
daniel |
175 |
<?php if (trim($oAbo->getOrder()->comment) != "") { ?>
|
|
|
176 |
<a title="<?php echo __("Kommentar (Kunde): ", "wpsg").htmlspecialchars($oAbo->getOrder()->comment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign customercomment" href="#"></a>
|
|
|
177 |
<?php } ?>
|
6855 |
thomas |
178 |
|
6867 |
hartmut |
179 |
</td>
|
6855 |
thomas |
180 |
<td class="col_customer">
|
7807 |
daniel |
181 |
<?php $firma = $oAbo->getOrder()->getInvoiceCompany(); if (wpsg_isSizedString($firma)) { ?>
|
6855 |
thomas |
182 |
<?php echo $firma; ?><br />
|
|
|
183 |
<?php } ?>
|
7807 |
daniel |
184 |
<?php echo $oAbo->getOrder()->getInvoiceTitle(); ?> <?php echo $oOrder->getInvoiceFirstname(); ?> <?php echo $oAbo->getOrder()->getInvoiceName(); ?>
|
6855 |
thomas |
185 |
<br />
|
7807 |
daniel |
186 |
<span class="wpsg_grey"><?php echo $oAbo->getOrder()->getInvoiceStreet(); ?><br />
|
|
|
187 |
<?php echo ltrim($oAbo->getOrder()->getInvoiceZip().' '.$oAbo->getOrder()->getInvoiceCity()); ?> <?php echo $oAbo->getOrder()->getInvoiceCountryKuerzel(); ?>
|
6855 |
thomas |
188 |
</span>
|
6867 |
hartmut |
189 |
</td>
|
6855 |
thomas |
190 |
<td class="col_payment">
|
|
|
191 |
|
|
|
192 |
<?php /* Bei Crefopay wird die Darstellung der Zahlungsart über das Modul geregelt */ ?>
|
|
|
193 |
<?php if ($oOrder->getPaymentID() == 4000 && $this->hasMod('wpsg_mod_crefopay')) { ?>
|
|
|
194 |
<?php echo wpsg_hspc($this->callMod('wpsg_mod_crefopay', 'getOrderPaymentName', array($oOrder->id))); ?>
|
|
|
195 |
<?php } else { ?>
|
|
|
196 |
<?php echo $oOrder->getPaymentLabel(); ?>
|
|
|
197 |
<?php } ?>
|
|
|
198 |
|
|
|
199 |
<?php if ($oOrder->getPaymentAmount() > 0) { ?>
|
|
|
200 |
- <?php echo wpsg_ff($oOrder->getPaymentAmount(), $this->get_option('wpsg_currency')); ?>
|
|
|
201 |
<?php } ?>
|
|
|
202 |
|
6867 |
hartmut |
203 |
</td>
|
6855 |
thomas |
204 |
<td class="col_shipping">
|
|
|
205 |
|
|
|
206 |
<?php echo $oOrder->getShippingLabel(); ?>
|
|
|
207 |
|
|
|
208 |
<?php if ($oOrder->getShippingAmount() > 0) { ?>
|
|
|
209 |
- <?php echo wpsg_ff($oOrder->getShippingAmount(), $this->get_option('wpsg_currency')); ?>
|
|
|
210 |
<?php } ?>
|
|
|
211 |
|
|
|
212 |
<?php if ($oOrder->hasShippingAdress()) { ?>
|
|
|
213 |
<br />
|
|
|
214 |
<?php echo $oOrder->getShippingTitle(); ?> <?php echo $oOrder->getShippingFirstName(); ?> <?php echo $oOrder->getShippingName(); ?><br />
|
|
|
215 |
<span class="wpsg_grey">
|
|
|
216 |
<?php echo $oOrder->getShippingStreet(); ?>
|
|
|
217 |
<?php echo $oOrder->getShippingZip(); ?> <?php echo $oOrder->getShippingCity(); ?> <?php echo $oOrder->getShippingCountryKuerzel(); ?><br />
|
|
|
218 |
</span>
|
|
|
219 |
<?php } ?>
|
|
|
220 |
|
6867 |
hartmut |
221 |
</td>
|
6855 |
thomas |
222 |
<td class="col_products">
|
|
|
223 |
|
7809 |
daniel |
224 |
<?php if ($oOrderProduct === false) { ?>
|
|
|
225 |
|
|
|
226 |
<?php echo __('Produkt nicht gefunden.', 'wpsg'); ?>
|
|
|
227 |
|
|
|
228 |
<?php } else { ?>
|
|
|
229 |
|
|
|
230 |
<?php echo wpsg_translate(__('#1# x <a href="#2#">#3#</a> für je #4#', 'wpsg'),
|
|
|
231 |
$oOrderProduct->getCount(),
|
7627 |
daniel |
232 |
wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$oOrderProduct->getProductId(), 'wpsg-product-edit-'.$oOrderProduct->getProductId()),
|
7809 |
daniel |
233 |
$oOrderProduct->getProductName(),
|
|
|
234 |
wpsg_ff($oOrderProduct->getOneAmount(), $this->get_option('wpsg_currency'))
|
|
|
235 |
); ?>
|
|
|
236 |
|
|
|
237 |
<?php } ?>
|
6855 |
thomas |
238 |
|
|
|
239 |
</td>
|
|
|
240 |
<td class="col_sum">
|
|
|
241 |
<?php echo wpsg_ff($oOrder->getAmount(), $this->get_option('wpsg_currency')); ?>
|
|
|
242 |
</td>
|
|
|
243 |
|
6867 |
hartmut |
244 |
<?php /* Laufzeitspalte */ ?>
|
6855 |
thomas |
245 |
<td class="col_time">
|
|
|
246 |
|
7809 |
daniel |
247 |
<?php if ($oOrderProduct === false) { ?>
|
6855 |
thomas |
248 |
|
7809 |
daniel |
249 |
<?php echo __('Produkt nicht gefunden.', 'wpsg'); ?>
|
|
|
250 |
|
|
|
251 |
<?php } else { ?>
|
|
|
252 |
|
|
|
253 |
<?php if (in_array(strval($this->callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id))), array(1))) { ?>
|
|
|
254 |
|
7812 |
daniel |
255 |
<?php $abo_expiration = strtotime($this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id, $oOrderProduct->getId()))); ?>
|
7809 |
daniel |
256 |
|
|
|
257 |
<?php if ($abo_expiration > time()) { ?>
|
|
|
258 |
|
|
|
259 |
<span class="wpsg_mod_abo_future_expire"><?php echo wpsg_formatTimestamp($abo_expiration); ?></span>
|
|
|
260 |
|
|
|
261 |
<?php } else { ?>
|
|
|
262 |
|
|
|
263 |
<span class="wpsg_mod_abo_expired"><?php echo wpsg_formatTimestamp($abo_expiration); ?></span>
|
|
|
264 |
|
|
|
265 |
<?php } ?>
|
|
|
266 |
|
|
|
267 |
<br />
|
|
|
268 |
|
|
|
269 |
<?php } ?>
|
|
|
270 |
|
|
|
271 |
<?php } ?>
|
6855 |
thomas |
272 |
|
|
|
273 |
</td>
|
7807 |
daniel |
274 |
|
|
|
275 |
<td class="col_state">
|
|
|
276 |
|
|
|
277 |
<?php $state = $oAbo->getState(); ?>
|
|
|
278 |
|
|
|
279 |
<?php if ($state === wpsg_abo::STATE_INEXTENSION) { ?><span style="color:orange;"><?php echo $oAbo->getStateLabel(); ?></span>
|
|
|
280 |
<?php } else if ($state === wpsg_abo::STATE_RUNNING) { ?><span style="color:green;"><?php echo $oAbo->getStateLabel(); ?></span>
|
|
|
281 |
<?php } else if ($state === wpsg_abo::STATE_EXTEND) { ?><span style="color:red;"><?php echo $oAbo->getStateLabel(); ?></span><?php } ?>
|
|
|
282 |
|
|
|
283 |
</td>
|
6855 |
thomas |
284 |
|
|
|
285 |
</tr>
|
|
|
286 |
|
|
|
287 |
<?php } ?>
|
|
|
288 |
|
|
|
289 |
</tbody>
|
|
|
290 |
|
|
|
291 |
</table>
|
|
|
292 |
|
|
|
293 |
<div class="alignleft actions">
|
|
|
294 |
<select name="wpsg_action" id="wpsg_action">
|
|
|
295 |
<option value="-1"><?php echo __('Aktion wählen', 'wpsg'); ?></option>
|
|
|
296 |
<option value="multiDelete"><?php echo __('Abonnement(s) löschen', 'wpsg'); ?></option>
|
|
|
297 |
</select>
|
|
|
298 |
|
|
|
299 |
<input onclick="if (jQuery('#wpsg_action').val() == 'multiDelete') { if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false; }" type="submit" value="<?php echo __('Ausführen', 'wpsg'); ?>" class="button-secondary action" id="doaction" name="wpsg_order_doaction" />
|
|
|
300 |
|
|
|
301 |
</div>
|
|
|
302 |
|
|
|
303 |
<div style="margin-right:-15px;">
|
|
|
304 |
<?php $this->render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?>
|
|
|
305 |
</div>
|
|
|
306 |
|
|
|
307 |
<div class="wpsg_clear"></div>
|
|
|
308 |
|
|
|
309 |
<?php } else { ?>
|
|
|
310 |
|
|
|
311 |
<?php echo wpsg_drawForm_AdminboxStart(); ?>
|
|
|
312 |
<?php echo __('Keine Abonnements in der Datenbank.', 'wpsg'); ?>
|
|
|
313 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
|
|
314 |
|
|
|
315 |
<?php } ?>
|
|
|
316 |
<input id="noheader1" type="hidden" name="noheader1" value="1" />
|
|
|
317 |
</form>
|
|
|
318 |
</div>
|
|
|
319 |
|
|
|
320 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
321 |
|
|
|
322 |
<?php if (wpsg_isSizedString($this->view['arFilter']['order']) && wpsg_isSizedString($this->view['arFilter']['ascdesc'])) { ?>
|
|
|
323 |
jQuery('th[data-order="<?php echo @$this->view['arFilter']['order']; ?>"]').addClass('wpsg_order_<?php echo strtolower(@$this->view['arFilter']['ascdesc']); ?>');
|
|
|
324 |
<?php } ?>
|
|
|
325 |
|
|
|
326 |
function wpsg_order_checkAll()
|
|
|
327 |
{
|
|
|
328 |
|
|
|
329 |
jQuery('.col_set_checkbox').each(function() { jQuery(this).prop('checked', !jQuery(this).prop('checked')); } );
|
|
|
330 |
|
|
|
331 |
}
|
|
|
332 |
|
|
|
333 |
function wpsg_setFilterStatus(state)
|
|
|
334 |
{
|
|
|
335 |
|
|
|
336 |
jQuery('#filterstatus').val(state);
|
|
|
337 |
|
|
|
338 |
jQuery('#seite').val(1);
|
8040 |
karl |
339 |
jQuery('#filter_form').trigger('submit');
|
6855 |
thomas |
340 |
|
|
|
341 |
return false;
|
|
|
342 |
|
|
|
343 |
}
|
|
|
344 |
|
|
|
345 |
function goPage(page)
|
|
|
346 |
{
|
|
|
347 |
|
|
|
348 |
//if (page <= 0 || page == <?php echo $this->view['arFilter']['page']; ?> || page > <?php echo wpsg_getStr($this->view['pages'], '0'); ?>) return;
|
|
|
349 |
|
|
|
350 |
jQuery('#wpsg_seite').val(page);
|
8040 |
karl |
351 |
jQuery('#filter_form').trigger('submit');
|
6855 |
thomas |
352 |
|
|
|
353 |
return false;
|
|
|
354 |
|
|
|
355 |
} // function goPage(page)
|
|
|
356 |
|
|
|
357 |
jQuery(document).ready(function() {
|
|
|
358 |
|
|
|
359 |
jQuery('.wpsg-order-tab-mods').bind('click', function() {
|
|
|
360 |
|
|
|
361 |
if (jQuery(this).hasClass('active'))
|
|
|
362 |
{
|
|
|
363 |
|
|
|
364 |
jQuery(this).removeClass('active');
|
|
|
365 |
jQuery('.' + jQuery(this).attr("id")).slideUp(250);
|
|
|
366 |
|
|
|
367 |
}
|
|
|
368 |
else
|
|
|
369 |
{
|
|
|
370 |
|
|
|
371 |
jQuery(this).addClass('active');
|
|
|
372 |
jQuery('.' + jQuery(this).attr("id")).slideDown(250);
|
|
|
373 |
|
|
|
374 |
}
|
|
|
375 |
|
|
|
376 |
return false;
|
|
|
377 |
|
|
|
378 |
} );
|
|
|
379 |
|
|
|
380 |
} );
|
|
|
381 |
|
|
|
382 |
/* <![CDATA[ */</script>
|