Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
5720 daniel 1
<?php
2
 
3
    /**
7787 daniel 4
     * User: Daschmi (https://daschmi.de)
5720 daniel 5
     * Date: 06.08.2016
6
     * Time: 11:24
7672 daniel 7
     */
8
 
5720 daniel 9
?>
10
 
11
<?php echo wpsg_drawForm_AdminboxStart(__('Bestellprotokoll', 'wpsg')); ?>
12
<div class="panel-group">
13
    <?php foreach ($this->view['oOrder']->getLog() as $k => $ol) { ?>
14
    <div class="panel panel-default">
15
        <div class="panel-heading" data-toggle="collapse" href="#collapse<?php echo $k; ?>" style="cursor:pointer;">
16
            <h4 class="panel-title" style="float:right;"><?php echo wpsg_formatTimestamp($ol['cdate']); ?></h4>
7812 daniel 17
            <h4 class="panel-title"><?php
18
 
19
				if (preg_match('/OrderID:\040(\d+)?/', $ol['mailtext'], $m)) {
20
 
21
					$oAboExtendOrder = wpsg_order::getInstance(intval($m[1]));
22
 
23
					$title = '<a href="'.wpsg_admin_url('Order', 'view', ['edit_id' => $oAboExtendOrder->getId()]).'">Bestellung '.$oAboExtendOrder->getNr().'&nbsp;/&nbsp;'.$oAboExtendOrder->getStateLabel().'</a>';
24
 
25
                } else $title = $ol['title'];
26
 
27
				echo $title;
28
 
29
			?></h4>
5720 daniel 30
        </div>
31
        <div id="collapse<?php echo $k; ?>" class="panel-collapse collapse">
32
            <div class="panel-body">
33
                <pre><?php echo $ol['mailtext']; ?></pre>
34
            </div>
35
        </div>
36
    </div>
37
    <?php } ?>
38
</div>
39
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
40