From 7d46a3ae86b127f2a3cf3607a60e497898e9864e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 7 Mar 2021 21:38:36 +0100 Subject: [PATCH] table sorting improvements --- Interfaces/OMS/Importer.php | 6 +- Theme/Backend/exchange-export-list.tpl.php | 13 ++++- Theme/Backend/exchange-import-list.tpl.php | 13 ++++- Theme/Backend/exchange-log-list.tpl.php | 66 ++++++++++++++++++++++ 4 files changed, 95 insertions(+), 3 deletions(-) diff --git a/Interfaces/OMS/Importer.php b/Interfaces/OMS/Importer.php index 3b4bcb5..80837f3 100755 --- a/Interfaces/OMS/Importer.php +++ b/Interfaces/OMS/Importer.php @@ -199,7 +199,11 @@ final class Importer extends ImporterAbstract foreach ($keys as $key => $values) { \fwrite($fp, - " '" . $key . "'" . \str_repeat(' ', $keyLengths[$module][$theme][$file] - \strlen($key)) . " => '" . \str_replace(['\'', '\\'], ['\\\'', '\\\\'], $values[$language] ?? '') . "',\n" + " '" . $key . "'" + . \str_repeat(' ', $keyLengths[$module][$theme][$file] - \strlen($key)) + . " => '" + . \str_replace(['\'', '\\'], ['\\\'', '\\\\'], $values[$language] ?? '') + . "',\n" ); } diff --git a/Theme/Backend/exchange-export-list.tpl.php b/Theme/Backend/exchange-export-list.tpl.php index 0098fea..738e129 100755 --- a/Theme/Backend/exchange-export-list.tpl.php +++ b/Theme/Backend/exchange-export-list.tpl.php @@ -21,10 +21,21 @@ echo $this->getData('nav')->render();
getHtml('Exports'); ?>
- +
$value) : ++$count; $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/exchange/export/profile?{?}&id=' . $value->getId()); ?> diff --git a/Theme/Backend/exchange-import-list.tpl.php b/Theme/Backend/exchange-import-list.tpl.php index 2fae6ab..d82a93c 100755 --- a/Theme/Backend/exchange-import-list.tpl.php +++ b/Theme/Backend/exchange-import-list.tpl.php @@ -21,10 +21,21 @@ echo $this->getData('nav')->render();
getHtml('Imports'); ?>
-
getHtml('Title'); ?> + + +
+
$value) : ++$count; $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/exchange/import/profile?{?}&id=' . $value->getId()); ?> diff --git a/Theme/Backend/exchange-log-list.tpl.php b/Theme/Backend/exchange-log-list.tpl.php index b97c951..ac955f7 100755 --- a/Theme/Backend/exchange-log-list.tpl.php +++ b/Theme/Backend/exchange-log-list.tpl.php @@ -27,11 +27,77 @@ echo $this->getData('nav')->render(); ?> $value) : ++$count;
getHtml('Title'); ?> + + +
getHtml('ID', '0', '0'); ?> + + + getHtml('Type'); ?> + + + getHtml('Subtype'); ?> + + + getHtml('Exchange'); ?> + + + getHtml('CreatedBy'); ?> + + + getHtml('CreatedAt'); ?> + + +