Rev 6033 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
/**
* Template für die Anzeige der Produktstatistik innerhalb der Produktverwaltung
*/
?>
<div id="wpsg_statistic_div">
<?php
if ($this->view['odata']['sum'] == 0) {
echo __('Keine Daten', 'wpsg');
} else {
?>
<?php echo __('Verkaufte Produkte:', 'wpsg'); echo $this->view['odata']['sum'] ?><br /><br />
<table id="wpsg_statistic_table" style="width:100%;">
<thead>
<tr>
<td><?php echo __('Bestell-ID', 'wpsg');?> </td>
<td><?php echo __('Name', 'wpsg');?> </td>
<td><?php echo __('Vorname', 'wpsg');?> </td>
<td><?php echo __('Stück', 'wpsg');?> </td>
<td><?php echo __('e-Mail', 'wpsg');?> </td>
<td><?php echo __('Telefon', 'wpsg');?> </td>
</tr>
</thead>
<tbody id="wpsg_statistic_tbody">
<?php
unset($this->view['odata']['sum']);
foreach ($this->view['odata'] as $pa) { ?>
<tr>
<td> <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&edit_id=<?php echo __($pa['id'], 'wpsg');?>" target="_blank"><?php echo __($pa['onr'], 'wpsg');?></a></td>
<td> <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&action=edit&edit_id=<?php echo __($pa['kid'], 'wpsg');?>" target="_blank"><?php echo __($pa['name'], 'wpsg');?></a></td>
<td> <?php echo __($pa['vname'], 'wpsg');?></td>
<td> <?php echo __($pa['menge'], 'wpsg');?></td>
<td> <?php echo __($pa['email'], 'wpsg');?></td>
<td> <?php echo __($pa['tel'], 'wpsg');?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php } ?>
</div>