Rev 2460 | Rev 2662 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php foreach ($this->view['chart']['data'] as $index => $data) { ?>
<?php if (is_numeric($index)) { ?>
<div class="wpsg-table-data-wrapper">
<table style="width:auto !important;" class="widefat fixed tags" border="0" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th colspan="4">
<?php
$i = 0;
foreach ((array)$data['records'] as $record)
{
if ($i == 0)
{
echo wpsg_hspc($data['label']);
}
$i++;
}
?>
</th>
</tr>
<tr>
<th id="name" class="manage-column sortable">
<a href="/">
<span><?php echo __('Zeitpunkt', 'wpsg')?></span>
<span class="sorting-indicator"></span>
</a>
</th>
<th class="th-right" id="total" class="manage-column sortable">
<a href="/">
<span><?php echo __('Umsatz in', 'wpsg').' '.$this->get_option('wpsg_currency'); ?></span>
<span class="sorting-indicator"></span>
</a>
</th>
<th class="th-right" id="amount" class="manage-column sortable">
<a href="/">
<span><?php echo __('Bestellungen', 'wpsg')?></span>
<span class="sorting-indicator"></span>
</a>
</th>
<th class="th-right" id="average" class="manage-column sortable">
<a href="/">
<span><?php echo __('ø in ', 'wpsg').' '.$this->get_option('wpsg_currency'); ?></span>
<span class="sorting-indicator"></span>
</a>
</th>
</tr>
</thead>
<tbody class="the-list">
<?php
$i = 0;
foreach ((array)$data['records'] as $record)
{
if ($i%2 == 0) { $class = 'alternate'; } else { $class = ''; }
?>
<tr class="<?php echo $class; ?>">
<td><strong><?php echo wpsg_hspc($record['label']); ?></strong></td>
<td class="td-right"><?php echo wpsg_ff($record['total']); ?></td>
<td class="td-right"><?php echo (($record['orders'] > 0)?wpsg_hspc($record['orders']):'0'); ?></td>
<td class="td-right"><?php echo (($record['orders'] > 0)?wpsg_ff($record['total'] / $record['orders']):'0'); ?></td>
</tr>
<?php
$i++;
}
?>
</tbody>
</table>
</div>
<?php } ?>
<?php } ?>
<div class="clearer"></div>
<script type="text/javascript">
jQuery('.sortable a').bind('click', function(){
return false;
});
</script>