summaryrefslogtreecommitdiff
path: root/views/mods/mod_kundenverwaltung/edit.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2018-09-20 12:51:07 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2018-09-20 12:51:07 +0000
commit806c5f484d02b4ddc2263cb8c65822e36c9a72d4 (patch)
tree1f2a3e9fbbfa13395261677ac5b01669545c24a9 /views/mods/mod_kundenverwaltung/edit.phtml
parentffe2c578ed26485e4869762e88c97e90b181bab3 (diff)
- Anonymisieren von Adressen/Kundendaten
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7159 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_kundenverwaltung/edit.phtml')
-rw-r--r--views/mods/mod_kundenverwaltung/edit.phtml44
1 files changed, 34 insertions, 10 deletions
diff --git a/views/mods/mod_kundenverwaltung/edit.phtml b/views/mods/mod_kundenverwaltung/edit.phtml
index 421e2a1..e4a7bab 100644
--- a/views/mods/mod_kundenverwaltung/edit.phtml
+++ b/views/mods/mod_kundenverwaltung/edit.phtml
@@ -83,7 +83,7 @@
<?php if ($this->view['pflicht']['ustidnr'] != '2') { ?>
<?php echo wpsg_drawForm_Input('ustidnr', __('UStIdNr.', 'wpsg'), @$this->view['data']['ustidnr']); ?>
<?php } ?>
- <?php echo wpsg_drawForm_Select('status', __('Status', 'wpsg'), array('inaktiv', 'aktiv'), @$this->view['data']['status'], array()); ?>
+ <?php echo wpsg_drawForm_Select('status', __('Status', 'wpsg'), ['1' => __('Aktiv', 'wpsg'), '0' => __('Inaktiv', 'wpsg'), '-1' => __('Anonymisiert')], @$this->view['data']['status'], array()); ?>
<?php echo wpsg_drawForm_Checkbox('info-mail', __('Mail bei Statusänderung', 'wpsg'), '', array()); ?>
<?php echo wpsg_drawForm_Textarea('comment', __('Kundenkommentar', 'wpsg'), @$this->view['data']['comment']); ?>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
@@ -119,7 +119,7 @@
</ul>
</div>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
-
+
<?php if (wpsg_isSizedInt($this->view['data']['id'])) { ?>
<?php echo wpsg_drawForm_AdminboxStart(__('Information', 'wpsg')) ?>
@@ -132,15 +132,39 @@
</p>
<?php echo wpsg_drawForm_TextEnd(__('Bestellungen', 'wpsg'), array('noP' => true)); ?>
- <?php echo wpsg_drawForm_TextStart(); ?>
- <p>
- <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_kundenverwaltung&noheader=1&be_ajax=su&k_id=<?php echo $this->view['data']['id']; ?>"><?php echo __('Kundenlogin simulieren', 'wpsg'); ?></a>
- </p>
- <?php echo wpsg_drawForm_TextEnd(__('Kunden Login', 'wpsg'), array('noP' => true)); ?>
+ <?php if ($this->view['data']['status'] !== '-1') { ?>
+
+ <?php echo wpsg_drawForm_TextStart(); ?>
+ <p>
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_kundenverwaltung&noheader=1&be_ajax=su&k_id=<?php echo $this->view['data']['id']; ?>"><?php echo __('Kundenlogin simulieren', 'wpsg'); ?></a>
+ </p>
+ <?php echo wpsg_drawForm_TextEnd(__('Kunden Login', 'wpsg'), array('noP' => true)); ?>
+
+ <?php } ?>
- <?php echo wpsg_drawForm_TextStart(); ?>
- <p><?php echo wpsg_formatTimestamp(strtotime($this->view['data']['lastorder'])); ?></p>
- <?php echo wpsg_drawForm_TextEnd(__('Letzte Bestellung', 'wpsg'), array('noP' => true)); ?>
+ <?php if (wpsg_isSizedInt($this->view['data']['countOrder'])) { ?>
+
+ <?php echo wpsg_drawForm_TextStart(); ?>
+ <p><?php echo wpsg_formatTimestamp(strtotime($this->view['data']['lastorder'])); ?></p>
+ <?php echo wpsg_drawForm_TextEnd(__('Letzte Bestellung', 'wpsg'), array('noP' => true)); ?>
+
+ <?php } ?>
+
+ <?php if (strtotime($this->view['data']['anonymized']) > 0) { ?>
+
+ <?php echo wpsg_drawForm_TextStart(); ?>
+ <p><?php echo wpsg_formatTimestamp(strtotime($this->view['data']['anonymized'])); ?></p>
+ <?php echo wpsg_drawForm_TextEnd(__('Anonymisiert am', 'wpsg'), array('noP' => true)); ?>
+
+ <?php } ?>
+
+ <?php if (strtotime($this->view['data']['last_login']) > 0) { ?>
+
+ <?php echo wpsg_drawForm_TextStart(); ?>
+ <p><?php echo wpsg_formatTimestamp(strtotime($this->view['data']['last_login'])); ?></p>
+ <?php echo wpsg_drawForm_TextEnd(__('Letzte Anmeldung', 'wpsg'), array('noP' => true)); ?>
+
+ <?php } ?>
<?php if ($this->hasMod('wpsg_mod_statistics')) { ?>
<?php echo wpsg_drawForm_TextStart(); ?>