summaryrefslogtreecommitdiff
path: root/views/order/orderlog.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-01-14 14:55:36 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-01-14 14:55:36 +0000
commitad405c7045c6e242080ec9d3ce4c9e586b517c4f (patch)
treeb41905f4d27f3eaaabd5bad3a39f8d3873540b46 /views/order/orderlog.phtml
- Testweise 4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/order/orderlog.phtml')
-rw-r--r--views/order/orderlog.phtml32
1 files changed, 32 insertions, 0 deletions
diff --git a/views/order/orderlog.phtml b/views/order/orderlog.phtml
new file mode 100644
index 0000000..df51721
--- /dev/null
+++ b/views/order/orderlog.phtml
@@ -0,0 +1,32 @@
+<?php
+
+ /**
+ * Template für das Bestell Log
+ */
+
+?>
+<?php if (is_array($this->view['log']) && sizeof($this->view['log']) > 0) { ?>
+<table class="wpsg_orderlog">
+ <tr>
+ <th class="col_date"><?php echo __('Datum', 'wpsg'); ?></th>
+ <th class="col_title"><?php echo __('Titel', 'wpsg'); ?></th>
+ <th class="col_aktion"></th>
+ </tr>
+ <?php foreach ($this->view['log'] as $l) { ?>
+ <tr>
+ <td class="col_date"><?php echo date('d.m.Y H:i:s', strtotime($l['cdate'])); ?></td>
+ <td class="col_title"><?php echo $l['title']; ?></td>
+ <td class="col_aktion">
+ <a href="#" onclick="jQuery('#wpsg_mailtext_<?php echo $l['id']; ?>').toggle(); return false"><?php echo __('Anzeigen/Verbergen', 'wpsg'); ?></a>
+ </td>
+ </tr>
+ <tr id="wpsg_mailtext_<?php echo $l['id']; ?>" style="display:none;">
+ <td colspan="3" class="col_mailtext">
+ <textarea readonly="readonly"><?php echo wpsg_xss($l['mailtext']); ?></textarea>
+ </td>
+ </tr>
+ <?php } ?>
+</table>
+<?php } else { ?>
+<?php echo __('Noch keine Einträge', 'wpsg'); ?>
+<?php } ?> \ No newline at end of file