2453 |
robert |
1 |
<table style="width:auto !important;" class="widefat fixed tags" border="0" cellspacing="0" cellpadding="0">
|
2350 |
robert |
2 |
<thead>
|
|
|
3 |
<tr>
|
2662 |
robert |
4 |
<th class="manage-column sortable">
|
|
|
5 |
<a id="name" class="sortable <?php if($this->view['filter']['sort'] == 'name' && $this->view['filter']['order'] == 'orderup') { echo 'active orderdown'; } elseif($this->view['filter']['sort'] == 'name' && $this->view['filter']['order'] == 'orderdown'){ echo 'active orderup'; } ?>" href="/">
|
2350 |
robert |
6 |
<span><?php echo __('Zahlungsart', 'wpsg')?></span>
|
|
|
7 |
<span class="sorting-indicator"></span>
|
|
|
8 |
</a>
|
|
|
9 |
</th>
|
2662 |
robert |
10 |
<th class="manage-column th-right">
|
|
|
11 |
<a id="total" class="sortable <?php if($this->view['filter']['sort'] == 'total' && $this->view['filter']['order'] == 'orderup') { echo 'active orderdown'; } elseif($this->view['filter']['sort'] == 'total' && $this->view['filter']['order'] == 'orderdown'){ echo 'active orderup'; } ?>" href="/">
|
2350 |
robert |
12 |
<span><?php echo __('Umsatz in', 'wpsg').' '.$this->get_option('wpsg_currency'); ?></span>
|
|
|
13 |
<span class="sorting-indicator"></span>
|
|
|
14 |
</a>
|
|
|
15 |
</th>
|
2662 |
robert |
16 |
<th class="manage-column th-right">
|
|
|
17 |
<a id="percent" class="sortable <?php if($this->view['filter']['sort'] == 'percent' && $this->view['filter']['order'] == 'orderup') { echo 'active orderdown'; } elseif($this->view['filter']['sort'] == 'percent' && $this->view['filter']['order'] == 'orderdown'){ echo 'active orderup'; } ?>" href="/">
|
2350 |
robert |
18 |
<span><?php echo __('Prozent', 'wpsg')?></span>
|
|
|
19 |
<span class="sorting-indicator"></span>
|
|
|
20 |
</a>
|
|
|
21 |
</th>
|
|
|
22 |
</tr>
|
|
|
23 |
</thead>
|
|
|
24 |
<tbody class="the-list">
|
|
|
25 |
<?php foreach ($this->view['chart']['data']['records'] as $data) { ?>
|
|
|
26 |
<tr class="alternate">
|
2403 |
robert |
27 |
<td><strong><?php echo wpsg_hspc($data['name']); ?></strong></td>
|
|
|
28 |
<td class="td-right"><?php echo wpsg_ff($data['total']); ?></td>
|
|
|
29 |
<td class="td-right"><?php echo wpsg_ff($data['percent']); ?></td>
|
2350 |
robert |
30 |
</tr>
|
|
|
31 |
<?php } ?>
|
|
|
32 |
</tbody>
|
|
|
33 |
</table>
|
|
|
34 |
|
|
|
35 |
<script type="text/javascript">
|
|
|
36 |
|
2662 |
robert |
37 |
jQuery(document).ready(function(){
|
|
|
38 |
|
|
|
39 |
jQuery('.sortable').bind('click', function(){
|
|
|
40 |
|
|
|
41 |
var order = '';
|
|
|
42 |
if(jQuery(this).hasClass('orderup'))
|
|
|
43 |
{
|
|
|
44 |
jQuery('#wpsg_statistics_order').val('orderup');
|
|
|
45 |
}
|
|
|
46 |
else
|
|
|
47 |
{
|
|
|
48 |
jQuery('#wpsg_statistics_order').val('orderdown');
|
|
|
49 |
}
|
|
|
50 |
|
|
|
51 |
jQuery('#wpsg_statistics_sort').val(jQuery(this).attr('id'));
|
|
|
52 |
|
|
|
53 |
jQuery.ajax( {
|
|
|
54 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_statistics&noheader=1&do=sorting',
|
|
|
55 |
type: 'post',
|
|
|
56 |
data: jQuery('#wpsg_statistics_form').serialize(),
|
|
|
57 |
success: function(data) {
|
|
|
58 |
jQuery('#table-data').html(data);
|
|
|
59 |
|
|
|
60 |
}
|
|
|
61 |
} );
|
|
|
62 |
|
|
|
63 |
return false;
|
|
|
64 |
});
|
|
|
65 |
|
2350 |
robert |
66 |
});
|
|
|
67 |
|
|
|
68 |
</script>
|