Subversion Repositories wpShopGermany4

Rev

Rev 7787 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

    /**
     * User: Daschmi (https://daschmi.de)
     * Date: 06.08.2016
     * Time: 11:24
     */ 
 
?>

<?php echo wpsg_drawForm_AdminboxStart(__('Bestellprotokoll', 'wpsg')); ?>
<div class="panel-group">
    <?php foreach ($this->view['oOrder']->getLog() as $k => $ol) { ?>
    <div class="panel panel-default">
        <div class="panel-heading" data-toggle="collapse" href="#collapse<?php echo $k; ?>" style="cursor:pointer;">
            <h4 class="panel-title" style="float:right;"><?php echo wpsg_formatTimestamp($ol['cdate']); ?></h4>
            <h4 class="panel-title"><?php 
                                
                                if (preg_match('/OrderID:\040(\d+)?/', $ol['mailtext'], $m)) {
                                        
                                        $oAboExtendOrder = wpsg_order::getInstance(intval($m[1]));
                                        
                                        $title = '<a href="'.wpsg_admin_url('Order', 'view', ['edit_id' => $oAboExtendOrder->getId()]).'">Bestellung '.$oAboExtendOrder->getNr().'&nbsp;/&nbsp;'.$oAboExtendOrder->getStateLabel().'</a>';
                                        
                } else $title = $ol['title'];
                                
                                echo $title;
                                        
                        ?></h4>
        </div>
        <div id="collapse<?php echo $k; ?>" class="panel-collapse collapse">
            <div class="panel-body">
                <pre><?php echo $ol['mailtext']; ?></pre>
            </div>
        </div>
    </div>
    <?php } ?>
</div>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>