1144 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Übersicht der Gutschein
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
<div class="wrap wpsg_mod_gutschein">
|
|
|
9 |
<div class="icon32 icon32-posts-post" id="icon-edit"><br></div>
|
|
|
10 |
<h2>
|
|
|
11 |
<?php echo __('Gutscheinverwaltung', 'wpsg'); ?>
|
3465 |
daniel |
12 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Voucher&action=add" class="add-new-h2"><?php echo __("Hinzufügen", "wpsg"); ?></a>
|
|
|
13 |
<a href="#" onclick="return wpsg_doExport();" class="add-new-h2"><?php echo __('CSV Export', 'wpsg'); ?></a>
|
|
|
14 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Voucher&action=import" class="add-new-h2"><?php echo __('CSV Import', 'wpsg'); ?></a>
|
1144 |
daniel |
15 |
</h2>
|
1676 |
daniel |
16 |
|
|
|
17 |
<script type="text/javascript">/* <![CDATA[ */
|
1144 |
daniel |
18 |
|
1905 |
daniel |
19 |
var wpsg_order = '<?php echo $this->view['filter']['order']; ?>';
|
|
|
20 |
var wpsg_ascdesc = '<?php echo $this->view['filter']['ascdesc']; ?>';
|
|
|
21 |
|
|
|
22 |
function wpsg_setOrder(order)
|
|
|
23 |
{
|
|
|
24 |
|
|
|
25 |
if (order == wpsg_order)
|
|
|
26 |
{
|
|
|
27 |
|
|
|
28 |
// Nur Richtung ändern
|
|
|
29 |
if (wpsg_ascdesc == 'asc') jQuery('#wpsg_ascdesc').val('desc');
|
|
|
30 |
else jQuery('#wpsg_ascdesc').val('asc');
|
|
|
31 |
|
|
|
32 |
}
|
|
|
33 |
else
|
|
|
34 |
{
|
|
|
35 |
|
|
|
36 |
jQuery('#wpsg_order').val(order);
|
|
|
37 |
jQuery('#wpsg_ascdesc').val('asc');
|
|
|
38 |
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
jQuery('#seite').val(1);
|
|
|
42 |
jQuery('#filter_form').submit();
|
|
|
43 |
|
|
|
44 |
return false;
|
|
|
45 |
|
|
|
46 |
} // function wpsg_setOrder(order)
|
|
|
47 |
|
1676 |
daniel |
48 |
function goPage(page)
|
|
|
49 |
{
|
|
|
50 |
|
|
|
51 |
if (page <= 0 || page == <?php echo $this->view['page']; ?> || page > <?php echo $this->view['pages']; ?>) return;
|
|
|
52 |
|
|
|
53 |
jQuery('#seite').val(page);
|
|
|
54 |
|
|
|
55 |
jQuery('#filter_form').submit();
|
|
|
56 |
|
|
|
57 |
return false;
|
|
|
58 |
|
|
|
59 |
} // function goPage(page)
|
|
|
60 |
|
|
|
61 |
function goStatus(status)
|
|
|
62 |
{
|
|
|
63 |
|
|
|
64 |
jQuery('#status').val(status);
|
|
|
65 |
jQuery('#seite').val('1');
|
|
|
66 |
|
|
|
67 |
jQuery('#filter_form').submit();
|
|
|
68 |
|
|
|
69 |
return false;
|
|
|
70 |
|
|
|
71 |
} // public function goStatus(status)
|
|
|
72 |
|
|
|
73 |
function wpsg_doExport()
|
|
|
74 |
{
|
|
|
75 |
|
|
|
76 |
var action_alt = jQuery('#filter_form').attr('action');
|
|
|
77 |
|
|
|
78 |
jQuery('#wpsg_voucher_export').val('1');
|
|
|
79 |
jQuery('#filter_form').attr('target', '_blank');
|
|
|
80 |
jQuery('#filter_form').attr('action', jQuery('#filter_form').attr('action') + '&noheader=1');
|
|
|
81 |
|
|
|
82 |
jQuery('#filter_form').submit();
|
|
|
83 |
|
|
|
84 |
jQuery('#filter_form').attr('action', action_alt);
|
|
|
85 |
jQuery('#filter_form').attr('target', '');
|
|
|
86 |
jQuery('#wpsg_voucher_export').val('0');
|
|
|
87 |
|
|
|
88 |
return false;
|
|
|
89 |
|
|
|
90 |
} // function wpsg_doExport()
|
|
|
91 |
|
|
|
92 |
/* ]]> */</script>
|
|
|
93 |
|
1144 |
daniel |
94 |
<?php echo $this->writeBackendMessage(); ?>
|
|
|
95 |
|
1676 |
daniel |
96 |
<form method="POST" id="filter_form" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Voucher">
|
|
|
97 |
|
|
|
98 |
<input type="hidden" name="wpsg_status" id="status" value="<?php echo @$this->view['filter']['status']; ?>" />
|
|
|
99 |
<input type="hidden" name="wpsg_voucher_export" value="0" id="wpsg_voucher_export" />
|
|
|
100 |
|
1905 |
daniel |
101 |
<input id="wpsg_order" type="hidden" name="filter[order]" value="<?php echo $this->view['filter']['order']; ?>" />
|
|
|
102 |
<input id="wpsg_ascdesc" type="hidden" name="filter[ascdesc]" value="<?php echo $this->view['filter']['ascdesc']; ?>" />
|
|
|
103 |
|
1676 |
daniel |
104 |
<?php if (wpsg_isSizedArray($this->view['arStatus'])) { ?>
|
|
|
105 |
<ul class="subsubsub wpsg_order_index_status">
|
|
|
106 |
<?php foreach ($this->view['arStatus'] as $status_id => $status) { ?>
|
|
|
107 |
<li>
|
4144 |
thomas |
108 |
<?php if (isset($this->view['filter']['status']) && $this->view['filter']['status'] == $status_id) { ?>
|
1676 |
daniel |
109 |
<span class="akt"><?php echo wpsg_hspc($status[0]); ?></span> <span class="count">(<?php echo $status[1]; ?>) | </span>
|
|
|
110 |
<?php } else { ?>
|
|
|
111 |
<a onclick="return goStatus(<?php echo $status_id; ?>);" href="#"><?php echo wpsg_hspc($status[0]); ?> <span class="count">(<?php echo $status[1]; ?>)</span></a> |
|
|
|
112 |
<?php } ?>
|
|
|
113 |
</li>
|
|
|
114 |
<?php } ?>
|
|
|
115 |
<li>
|
4150 |
thomas |
116 |
<?php if (!isset($this->view['filter']['status']) || $this->view['filter']['status'] <= 0) { ?>
|
1676 |
daniel |
117 |
<span class="akt"><?php echo __('Alle', 'wpsg'); ?></span> <span class="count">(<?php echo $this->view['countAll']; ?>)</span>
|
|
|
118 |
<?php } else { ?>
|
|
|
119 |
<a onclick="return goStatus(0);" href="#"><?php echo __('Alle', 'wpsg'); ?> <span class="count">(<?php echo $this->view['countAll']; ?>)</span></a>
|
|
|
120 |
<?php } ?>
|
|
|
121 |
</li>
|
|
|
122 |
</ul>
|
|
|
123 |
<?php } ?>
|
|
|
124 |
|
|
|
125 |
<p class="search-box wpsg-search-box">
|
|
|
126 |
<label for="post-search-input" class="screen-reader-text"><?php echo __('Gutscheine suchen', 'wpsg'); ?>:</label>
|
|
|
127 |
<input type="text" value="<?php echo wpsg_hspc($this->view['filter']['search']); ?>" id="wpsg_search" name="wpsg_search" id="post-search-input" />
|
|
|
128 |
<input type="submit" value="<?php echo __('Gutscheine suchen', 'wpsg'); ?>" class="button" id="search-submit" name="search-submit" />
|
|
|
129 |
</p>
|
|
|
130 |
|
|
|
131 |
<?php if (sizeof($this->view['data'] > 0)) { ?>
|
|
|
132 |
<div class="tablenav top">
|
2888 |
daniel |
133 |
<div class="tablenav-pages tablenav-pages-wrap"><span class="displaying-num"><?php echo wpsg_translate(__('#1# Elemente', 'wpsg'), $this->view['count']); ?></span>
|
1676 |
daniel |
134 |
<div class="tablenav-pages">
|
|
|
135 |
<span class="pagination-links">
|
|
|
136 |
<a onclick="return goPage(1);" href="#" title="<?php echo __('Zur ersten Seite gehen', 'wpsg'); ?>" class="first-page <?php echo (($this->view['page'] == '1')?'disabled':''); ?>">«</a>
|
|
|
137 |
<a onclick="return goPage(<?php echo $this->view['page'] - 1; ?>);" href="#" title="<?php echo __('Zur vorherigen Seite gehen', 'wpsg'); ?>" class="prev-page <?php echo (($this->view['page'] <= 1)?'disabled':''); ?>">‹</a>
|
|
|
138 |
<span class="paging-input"><input type="text" size="1" value="<?php echo $this->view['page']; ?>" id="seite" name="seite" title="<?php echo __('Aktuelle Seite', 'wpsg'); ?>" class="current-page"> <?php echo __('von', 'wpsg'); ?> <span class="total-pages"><?php echo $this->view['pages']; ?></span></span>
|
|
|
139 |
<a onclick="return goPage(<?php echo $this->view['page'] + 1; ?>);" href="#" title="<?php echo __('Zur nächsten Seite gehen', 'wpsg'); ?>" class="next-page <?php echo (($this->view['page'] >= $this->view['pages'])?'disabled':''); ?>">›</a>
|
|
|
140 |
<a onclick="return goPage(<?php echo $this->view['pages']; ?>);" href="#" title="<?php echo __('Zur letzten Seite gehen', 'wpsg'); ?>" class="last-page <?php echo (($this->view['page'] == $this->view['pages'])?'disabled':''); ?>">»</a>
|
|
|
141 |
</span>
|
|
|
142 |
</div>
|
|
|
143 |
|
|
|
144 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
145 |
|
|
|
146 |
jQuery('.tablenav-pages .disabled').bind('click', function() { return false; } );
|
|
|
147 |
|
|
|
148 |
/* ]]> */</script>
|
|
|
149 |
|
|
|
150 |
<br class="wpsg_clear">
|
|
|
151 |
</div>
|
|
|
152 |
</div>
|
|
|
153 |
<?php } ?>
|
|
|
154 |
|
|
|
155 |
</form>
|
|
|
156 |
|
1599 |
daniel |
157 |
<form method="POST" id="#gs_form" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Voucher&noheader=1">
|
1647 |
daniel |
158 |
|
|
|
159 |
<?php if (is_array($this->view['data']) && sizeof($this->view['data']) > 0) { ?>
|
|
|
160 |
<table class="widefat post fixed vouchertable">
|
|
|
161 |
<thead>
|
|
|
162 |
<tr>
|
|
|
163 |
<th class="manage-column column-checkbox"><input title="<?php echo __("Alle markieren", "wpsg"); ?>" type="checkbox" onclick="markAll(this);"/></th>
|
1905 |
daniel |
164 |
<th class="manage-column column-nr <?php echo (($this->view['filter']['order'] == 'id')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>">
|
|
|
165 |
<a href="#" onclick="return wpsg_setOrder('id');">
|
|
|
166 |
<span><?php echo __("ID", 'wpsg'); ?></span>
|
|
|
167 |
<span class="sorting-indicator"></span>
|
|
|
168 |
</a>
|
|
|
169 |
</th>
|
|
|
170 |
<th class="manage-column column-code <?php echo (($this->view['filter']['order'] == 'code')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>">
|
|
|
171 |
<a href="#" onclick="return wpsg_setOrder('code');">
|
|
|
172 |
<span><?php echo __("Code", 'wpsg'); ?></span>
|
|
|
173 |
<span class="sorting-indicator"></span>
|
|
|
174 |
</a>
|
|
|
175 |
</th>
|
|
|
176 |
<th class="manage-column column-start <?php echo (($this->view['filter']['order'] == 'start_date')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>">
|
|
|
177 |
<a href="#" onclick="return wpsg_setOrder('start_date');">
|
|
|
178 |
<span><?php echo __("Start", 'wpsg'); ?></span>
|
|
|
179 |
<span class="sorting-indicator"></span>
|
|
|
180 |
</a>
|
|
|
181 |
</th>
|
|
|
182 |
<th class="manage-column column-end <?php echo (($this->view['filter']['order'] == 'end_date')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>">
|
|
|
183 |
<a href="#" onclick="return wpsg_setOrder('end_date');">
|
|
|
184 |
<span><?php echo __("End", 'wpsg'); ?></span>
|
|
|
185 |
<span class="sorting-indicator"></span>
|
|
|
186 |
</a>
|
|
|
187 |
</th>
|
|
|
188 |
<th class="manage-column column-value <?php echo (($this->view['filter']['order'] == 'value')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>">
|
|
|
189 |
<a href="#" onclick="return wpsg_setOrder('value');">
|
|
|
190 |
<span><?php echo __("Wert", 'wpsg'); ?></span>
|
|
|
191 |
<span class="sorting-indicator"></span>
|
|
|
192 |
</a>
|
|
|
193 |
</th>
|
|
|
194 |
<th class="manage-column column-status <?php echo (($this->view['filter']['order'] == 'status')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>">
|
|
|
195 |
<a href="#" onclick="return wpsg_setOrder('status');">
|
|
|
196 |
<span><?php echo __("Status", 'wpsg'); ?></span>
|
|
|
197 |
<span class="sorting-indicator"></span>
|
|
|
198 |
</a>
|
|
|
199 |
</th>
|
1647 |
daniel |
200 |
</tr>
|
|
|
201 |
</thead>
|
|
|
202 |
<tbody>
|
|
|
203 |
<?php foreach ($this->view['data'] as $g) { ?>
|
|
|
204 |
<tr>
|
|
|
205 |
<td class="column-checkbox"><input type="checkbox" value="<?php echo $g['id']; ?>" class="wpsg_mod_gs_cb" name="wpsg_gs_cb[]" /></td>
|
|
|
206 |
<td class="column-nr"><?php echo wpsg_hspc($g['id']); ?>.</td>
|
|
|
207 |
<td class="column-code"><?php echo wpsg_hspc($g['code']); ?></td>
|
|
|
208 |
<td class="column-start"><?php echo date('d.m.Y H:i', strtotime($g['start_date'])); ?></td>
|
|
|
209 |
<td class="column-end"><?php echo date('d.m.Y H:i', strtotime($g['end_date'])); ?></td>
|
|
|
210 |
<td class="column-value">
|
|
|
211 |
<?php if ($g['calc_typ'] == 'w') { ?>
|
|
|
212 |
<?php echo wpsg_ff($g['value'], $this->get_option('wpsg_currency')); ?>
|
|
|
213 |
<?php } else { ?>
|
|
|
214 |
<?php echo wpsg_ff($g['value'], '%'); ?>
|
2888 |
daniel |
215 |
<?php } ?>
|
|
|
216 |
<?php if (wpsg_tf($g['minvalue']) > 0) { ?>
|
|
|
217 |
<br /><div class="wpsg_hinweis"><?php echo wpsg_translate(__('Ab #1#', 'wpsg'), wpsg_ff(wpsg_tf($g['minvalue']), $this->get_option('wpsg_currency'))); ?></div>
|
1647 |
daniel |
218 |
<?php } ?>
|
|
|
219 |
</td>
|
|
|
220 |
<td class="column-status">
|
1676 |
daniel |
221 |
<?php if (trim($g['comment']) != '') { ?>
|
|
|
222 |
<a href="#" style="cursor:default;" title="<?php echo wpsg_hspc($g['comment']); ?>">
|
3508 |
daniel |
223 |
<img src="<?php echo WPSG_URL_CONTENT; ?>plugins/wpshopgermany/views/gfx/comment.png" alt="<?php echo wpsg_hspc($g['comment']); ?>" />
|
1676 |
daniel |
224 |
</a>
|
|
|
225 |
<?php } ?>
|
1647 |
daniel |
226 |
<?php echo wpsg_hspc($g['status']); ?>
|
1825 |
daniel |
227 |
<?php if ($g['multi'] == '1') { ?>
|
|
|
228 |
<?php if ($g['ordered'] > 0) { ?>
|
|
|
229 |
<?php echo wpsg_translate(__('#1# mal benutzt', 'wpsg'), $g['ordered']); ?>
|
|
|
230 |
<?php } ?>
|
3282 |
daniel |
231 |
<span class="wpsg_mod_gutschein_multi"> <a class="tooltip" href="#" onclick="return false;" title="<?php echo __('Mehrfach benutzbar', 'wpsg'); ?>">[M]</a></span>
|
1676 |
daniel |
232 |
<?php } ?>
|
1647 |
daniel |
233 |
</td>
|
|
|
234 |
</tr>
|
|
|
235 |
<?php } ?>
|
1905 |
daniel |
236 |
</tbody>
|
|
|
237 |
<tfoot>
|
|
|
238 |
<tr>
|
|
|
239 |
<th class="manage-column column-checkbox"><input title="<?php echo __("Alle markieren", "wpsg"); ?>" type="checkbox" onclick="markAll(this);"/></th>
|
|
|
240 |
<th class="manage-column column-nr <?php echo (($this->view['filter']['order'] == 'id')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>">
|
|
|
241 |
<a href="#" onclick="return wpsg_setOrder('id');">
|
|
|
242 |
<span><?php echo __("ID", 'wpsg'); ?></span>
|
|
|
243 |
<span class="sorting-indicator"></span>
|
|
|
244 |
</a>
|
|
|
245 |
</th>
|
|
|
246 |
<th class="manage-column column-code <?php echo (($this->view['filter']['order'] == 'code')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>">
|
|
|
247 |
<a href="#" onclick="return wpsg_setOrder('code');">
|
|
|
248 |
<span><?php echo __("Code", 'wpsg'); ?></span>
|
|
|
249 |
<span class="sorting-indicator"></span>
|
|
|
250 |
</a>
|
|
|
251 |
</th>
|
|
|
252 |
<th class="manage-column column-start <?php echo (($this->view['filter']['order'] == 'start_date')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>">
|
|
|
253 |
<a href="#" onclick="return wpsg_setOrder('start_date');">
|
|
|
254 |
<span><?php echo __("Start", 'wpsg'); ?></span>
|
|
|
255 |
<span class="sorting-indicator"></span>
|
|
|
256 |
</a>
|
|
|
257 |
</th>
|
|
|
258 |
<th class="manage-column column-end <?php echo (($this->view['filter']['order'] == 'end_date')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>">
|
|
|
259 |
<a href="#" onclick="return wpsg_setOrder('end_date');">
|
|
|
260 |
<span><?php echo __("End", 'wpsg'); ?></span>
|
|
|
261 |
<span class="sorting-indicator"></span>
|
|
|
262 |
</a>
|
|
|
263 |
</th>
|
|
|
264 |
<th class="manage-column column-value <?php echo (($this->view['filter']['order'] == 'value')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>">
|
|
|
265 |
<a href="#" onclick="return wpsg_setOrder('value');">
|
|
|
266 |
<span><?php echo __("Wert", 'wpsg'); ?></span>
|
|
|
267 |
<span class="sorting-indicator"></span>
|
|
|
268 |
</a>
|
|
|
269 |
</th>
|
|
|
270 |
<th class="manage-column column-status <?php echo (($this->view['filter']['order'] == 'status')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>">
|
|
|
271 |
<a href="#" onclick="return wpsg_setOrder('status');">
|
|
|
272 |
<span><?php echo __("Status", 'wpsg'); ?></span>
|
|
|
273 |
<span class="sorting-indicator"></span>
|
|
|
274 |
</a>
|
|
|
275 |
</th>
|
|
|
276 |
</tr>
|
|
|
277 |
</tfoot>
|
1647 |
daniel |
278 |
</table>
|
1924 |
daniel |
279 |
|
|
|
280 |
<div class="tablenav top">
|
|
|
281 |
<div class="tablenav-pages"><span class="displaying-num"><?php echo wpsg_translate(__('#1# Elemente', 'wpsg'), $this->view['count']); ?></span>
|
|
|
282 |
<div class="tablenav-pages">
|
|
|
283 |
<span class="pagination-links">
|
|
|
284 |
<a onclick="return goPage(1);" href="#" title="<?php echo __('Zur ersten Seite gehen', 'wpsg'); ?>" class="first-page <?php echo (($this->view['page'] == '1')?'disabled':''); ?>">«</a>
|
|
|
285 |
<a onclick="return goPage(<?php echo $this->view['page'] - 1; ?>);" href="#" title="<?php echo __('Zur vorherigen Seite gehen', 'wpsg'); ?>" class="prev-page <?php echo (($this->view['page'] <= 1)?'disabled':''); ?>">‹</a>
|
|
|
286 |
<span class="paging-input"><input type="text" size="1" value="<?php echo $this->view['page']; ?>" id="seite" name="seite" title="<?php echo __('Aktuelle Seite', 'wpsg'); ?>" class="current-page"> <?php echo __('von', 'wpsg'); ?> <span class="total-pages"><?php echo $this->view['pages']; ?></span></span>
|
|
|
287 |
<a onclick="return goPage(<?php echo $this->view['page'] + 1; ?>);" href="#" title="<?php echo __('Zur nächsten Seite gehen', 'wpsg'); ?>" class="next-page <?php echo (($this->view['page'] >= $this->view['pages'])?'disabled':''); ?>">›</a>
|
|
|
288 |
<a onclick="return goPage(<?php echo $this->view['pages']; ?>);" href="#" title="<?php echo __('Zur letzten Seite gehen', 'wpsg'); ?>" class="last-page <?php echo (($this->view['page'] == $this->view['pages'])?'disabled':''); ?>">»</a>
|
|
|
289 |
</span>
|
|
|
290 |
</div>
|
|
|
291 |
|
|
|
292 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
293 |
|
|
|
294 |
jQuery('.tablenav-pages .disabled').bind('click', function() { return false; } );
|
|
|
295 |
|
|
|
296 |
/* ]]> */</script>
|
|
|
297 |
|
|
|
298 |
<br class="wpsg_clear">
|
|
|
299 |
</div>
|
|
|
300 |
</div>
|
|
|
301 |
|
2888 |
daniel |
302 |
<input class="button-primary" type="submit" onclick="if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;" name="wpshopgermany-submit-gs_del" value="<?php echo __("Markierte löschen", "wpsg"); ?>" />
|
1905 |
daniel |
303 |
<br /><br />
|
1647 |
daniel |
304 |
<?php } else { ?>
|
|
|
305 |
<p><?php echo __('Keine Gutscheine in der Datenbank.', 'wpsg'); ?></p>
|
|
|
306 |
<?php } ?>
|
1144 |
daniel |
307 |
|
|
|
308 |
</form>
|
1599 |
daniel |
309 |
</div>
|
|
|
310 |
|
1676 |
daniel |
311 |
<script type="text/javascript">/* <![CDATA[ */
|
1599 |
daniel |
312 |
|
|
|
313 |
function markAll(el)
|
|
|
314 |
{
|
|
|
315 |
|
|
|
316 |
var arCB = jQuery(".wpsg_mod_gs_cb");
|
|
|
317 |
|
|
|
318 |
for (var i = 0; i < arCB.length; i ++)
|
|
|
319 |
{
|
|
|
320 |
if (el.checked)
|
|
|
321 |
{
|
|
|
322 |
jQuery(arCB[i]).attr('checked', true);
|
|
|
323 |
}
|
|
|
324 |
else
|
|
|
325 |
{
|
|
|
326 |
jQuery(arCB[i]).attr('checked', false);
|
|
|
327 |
}
|
|
|
328 |
}
|
|
|
329 |
|
|
|
330 |
} // function markAll(el)
|
|
|
331 |
|
1676 |
daniel |
332 |
/* ]]> */</script>
|