Subversion Repositories wpShopGermany4

Rev

Rev 6035 | 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_admin_url('Order', 'view', ['edit_id' => $pa['id']]);
                                
                        ?>" target="_blank"><?php echo __($pa['onr'], 'wpsg');?></a></td>
                        <td> <a href="<?php
                                        
                                echo wpsg_admin_url('Customer', 'edit', ['edit_id' => $pa['kid']]);
                                        
                        ?>" 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>