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">
|
|
|
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 __('Produkt', '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-sales" class="sortable <?php if($this->view['filter']['sort'] == 'percent-sales' && $this->view['filter']['order'] == 'orderup') { echo 'active orderdown'; } elseif($this->view['filter']['sort'] == 'percent-sales' && $this->view['filter']['order'] == 'orderdown'){ echo 'active orderup'; } ?>" href="/">
|
2350 |
robert |
18 |
<span><?php echo __('Prozent (Umsatz)', 'wpsg')?></span>
|
|
|
19 |
<span class="sorting-indicator"></span>
|
|
|
20 |
</a>
|
|
|
21 |
</th>
|
2662 |
robert |
22 |
<th class="manage-column th-right">
|
|
|
23 |
<a id="amount" class="sortable <?php if($this->view['filter']['sort'] == 'amount' && $this->view['filter']['order'] == 'orderup') { echo 'active orderdown'; } elseif($this->view['filter']['sort'] == 'amount' && $this->view['filter']['order'] == 'orderdown'){ echo 'active orderup'; } ?>" href="/">
|
2350 |
robert |
24 |
<span><?php echo __('Menge', 'wpsg')?></span>
|
|
|
25 |
<span class="sorting-indicator"></span>
|
|
|
26 |
</a>
|
|
|
27 |
</th>
|
2662 |
robert |
28 |
<th class="manage-column th-right">
|
|
|
29 |
<a id="percent-amount" class="sortable <?php if($this->view['filter']['sort'] == 'percent-amount' && $this->view['filter']['order'] == 'orderup') { echo 'active orderdown'; } elseif($this->view['filter']['sort'] == 'percent-amount' && $this->view['filter']['order'] == 'orderdown'){ echo 'active orderup'; } ?>" href="/">
|
2350 |
robert |
30 |
<span><?php echo __('Prozent (Menge)', 'wpsg')?></span>
|
|
|
31 |
<span class="sorting-indicator"></span>
|
|
|
32 |
</a>
|
|
|
33 |
</th>
|
|
|
34 |
</tr>
|
|
|
35 |
</thead>
|
|
|
36 |
<tbody class="the-list">
|
|
|
37 |
<?php foreach ($this->view['chart']['data']['records'] as $data) { ?>
|
|
|
38 |
<tr class="alternate">
|
|
|
39 |
<td><strong><?php echo wpsg_hspc($data['name']); ?></strong></td>
|
2403 |
robert |
40 |
<td class="td-right"><?php echo wpsg_ff($data['total']); ?></td>
|
|
|
41 |
<td class="td-right"><?php echo wpsg_ff($data['percent-sales']); ?></td>
|
|
|
42 |
<td class="td-right"><?php echo wpsg_hspc($data['amount']); ?></td>
|
|
|
43 |
<td class="td-right"><?php echo wpsg_ff($data['percent-amount']); ?></td>
|
2350 |
robert |
44 |
</tr>
|
|
|
45 |
<?php } ?>
|
|
|
46 |
</tbody>
|
|
|
47 |
</table>
|
|
|
48 |
|
|
|
49 |
<script type="text/javascript">
|
|
|
50 |
|
2662 |
robert |
51 |
jQuery(document).ready(function(){
|
|
|
52 |
|
|
|
53 |
jQuery('.sortable').bind('click', function(){
|
|
|
54 |
|
|
|
55 |
var order = '';
|
|
|
56 |
if(jQuery(this).hasClass('orderup'))
|
|
|
57 |
{
|
|
|
58 |
jQuery('#wpsg_statistics_order').val('orderup');
|
|
|
59 |
}
|
|
|
60 |
else
|
|
|
61 |
{
|
|
|
62 |
jQuery('#wpsg_statistics_order').val('orderdown');
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
jQuery('#wpsg_statistics_sort').val(jQuery(this).attr('id'));
|
|
|
66 |
|
|
|
67 |
jQuery.ajax( {
|
|
|
68 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_statistics&noheader=1&do=sorting',
|
|
|
69 |
type: 'post',
|
|
|
70 |
data: jQuery('#wpsg_statistics_form').serialize(),
|
|
|
71 |
success: function(data) {
|
|
|
72 |
jQuery('#table-data').html(data);
|
|
|
73 |
|
|
|
74 |
}
|
|
|
75 |
} );
|
|
|
76 |
|
|
|
77 |
return false;
|
|
|
78 |
});
|
|
|
79 |
|
2350 |
robert |
80 |
});
|
|
|
81 |
|
|
|
82 |
</script>
|