From a7565bbc0772f953221a8b9010089bd2c4db1422 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 26 Mar 2016 18:59:38 +0100 Subject: [PATCH] Case fix! --- Theme/Backend/Lang/Navigation.en.lang.php | 27 ++++++ Theme/Backend/Lang/api.en.lang.php | 18 ++++ Theme/Backend/Lang/en.lang.php | 104 ++++++++++++++++++++++ Theme/Backend/accounts-create.tpl.php | 80 +++++++++++++++++ Theme/Backend/accounts-list.tpl.php | 57 ++++++++++++ Theme/Backend/accounts-single.tpl.php | 87 ++++++++++++++++++ Theme/Backend/groups-create.tpl.php | 64 +++++++++++++ Theme/Backend/groups-list.tpl.php | 55 ++++++++++++ Theme/Backend/groups-single.tpl.php | 84 +++++++++++++++++ Theme/Backend/modules-list.tpl.php | 62 +++++++++++++ Theme/Backend/modules-settings.tpl.php | 0 Theme/Backend/modules-single.tpl.php | 86 ++++++++++++++++++ Theme/Backend/settings-general.tpl.php | 98 ++++++++++++++++++++ 13 files changed, 822 insertions(+) create mode 100644 Theme/Backend/Lang/Navigation.en.lang.php create mode 100644 Theme/Backend/Lang/api.en.lang.php create mode 100644 Theme/Backend/Lang/en.lang.php create mode 100644 Theme/Backend/accounts-create.tpl.php create mode 100644 Theme/Backend/accounts-list.tpl.php create mode 100644 Theme/Backend/accounts-single.tpl.php create mode 100644 Theme/Backend/groups-create.tpl.php create mode 100644 Theme/Backend/groups-list.tpl.php create mode 100644 Theme/Backend/groups-single.tpl.php create mode 100644 Theme/Backend/modules-list.tpl.php create mode 100644 Theme/Backend/modules-settings.tpl.php create mode 100644 Theme/Backend/modules-single.tpl.php create mode 100644 Theme/Backend/settings-general.tpl.php diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php new file mode 100644 index 0000000..37d5c93 --- /dev/null +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -0,0 +1,27 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +$MODLANG['Navigation'] = [ + 'Admin' => 'Admin', + 'Create' => 'Create', + 'Front' => 'Front', + 'General' => 'General', + 'Groups' => 'Groups', + 'List' => 'List', + 'Members' => 'Members', + 'Modules' => 'Modules', + 'Account' => 'Account', + 'Accounts' => 'Accounts', +]; diff --git a/Theme/Backend/Lang/api.en.lang.php b/Theme/Backend/Lang/api.en.lang.php new file mode 100644 index 0000000..d53f90f --- /dev/null +++ b/Theme/Backend/Lang/api.en.lang.php @@ -0,0 +1,18 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +$MODLANG[1] = [ + 'i:ModuleInstalled' => 'Installation of the module {$1} was successful.', +]; diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php new file mode 100644 index 0000000..a45b991 --- /dev/null +++ b/Theme/Backend/Lang/en.lang.php @@ -0,0 +1,104 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +$MODLANG['Admin'] = [ + 'Account' => 'Account', + 'Accounts' => 'Accounts', + 'Active' => 'Active', + 'Activate' => 'Activate', + 'Activity' => 'Activity', + 'Available' => 'Available', + 'All' => 'All', + 'Banned' => 'Banned', + 'Cache' => 'Cache', + 'Children' => 'Children', + 'Country' => 'Country', + 'Created' => 'Created', + 'CreatedBy' => 'Created By', + 'Currency' => 'Currency', + 'DecimalPoint' => 'Decimal Point', + 'Description' => 'Description', + 'Delete' => 'Delete', + 'Deactivate' => 'Deactivate', + 'Email' => 'Email', + 'EmailAdmin' => 'Email Admin', + 'Features' => 'Features', + 'File' => 'File', + 'Group' => 'Group', + 'Groups' => 'Groups', + 'Inactive' => 'Inactive', + 'Install' => 'Install', + 'Installed' => 'Installed', + 'LAddress' => 'Local Address', + 'Language' => 'Language', + 'Localization' => 'Localization', + 'Loginname' => 'Login Name', + 'Lowercase' => 'Lowercase', + 'Maintenance' => 'Maintenance', + 'Member' => 'Member', + 'Members' => 'Members', + 'Memcache' => 'Memcache', + 'MemoryLimit' => 'Memory Limit', + 'Message' => 'Message', + 'Module' => 'Module', + 'Modules' => 'Modules', + 'Name' => 'Name', + 'Name1' => 'Name 1', + 'Name2' => 'Name 2', + 'Name3' => 'Name 3', + 'None' => 'None', + 'Numberformat' => 'Numberformat', + 'Numeric' => 'Numeric', + 'Organization' => 'Organization', + 'OrganizationName' => 'Organization Name', + 'Page' => 'Page', + 'Parent' => 'Parent', + 'Parents' => 'Parents', + 'Password' => 'Password', + 'PasswordRegex' => 'Password Regex', + 'Permissions' => 'Permissions', + 'Person' => 'Person', + 'Profile' => 'Profile', + 'RAddress' => 'Remote Address', + 'ReCache' => 'Re-Cache', + 'Running' => 'Running', + 'Settings' => 'Settings', + 'SettingsGeneral' => 'Settings - General', + 'Single' => 'Single', + 'Specialchar' => 'Special character', + 'Status' => 'Status', + 'Total' => 'Total', + 'Release' => 'Release', + 'Theme' => 'Theme', + 'ThousandsSeparator' => 'Thousands Separator', + 'Time' => 'Time', + 'Timestamp' => 'Timestamp', + 'Timeformat' => 'Timeformat', + 'Timeout' => 'Timeout', + 'Timezone' => 'Timezone', + 'Type' => 'Type', + 'Uninstall' => 'Uninstall', + 'Uppercase' => 'Uppercase', + 'Username' => 'Username', + 'Version' => 'Version', + 'Warnings' => 'Warnings', + 'Website' => 'Website', + 'i:loc' => 'IP address or URL for remote access.', + 'i:mail' => 'Email address.', + 'i:oname' => 'Organization name.', + 'i:rem' => 'IP address or URL for remote access.', + 'i:rc' => 'Forcing re-cache for every user.', + 'i:timef' => 'Time format.', +]; diff --git a/Theme/Backend/accounts-create.tpl.php b/Theme/Backend/accounts-create.tpl.php new file mode 100644 index 0000000..214588a --- /dev/null +++ b/Theme/Backend/accounts-create.tpl.php @@ -0,0 +1,80 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +echo $this->getData('nav')->render(); ?> + +
+

l11n->lang['Admin']['Account'] ?>

+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+

l11n->lang['Admin']['Groups'] ?>

+
+
+ + +
+
+
+
+
+
+
+ +
+

l11n->lang['Admin']['Permissions'] ?>

+
+
+ + +
+
+
+
+
+
+
diff --git a/Theme/Backend/accounts-list.tpl.php b/Theme/Backend/accounts-list.tpl.php new file mode 100644 index 0000000..fa09d06 --- /dev/null +++ b/Theme/Backend/accounts-list.tpl.php @@ -0,0 +1,57 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/** + * @var \phpOMS\Views\View $this + */ + + +$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); +$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); + +$footerView->setPages($this->getData('list:count') / 25); +$footerView->setPage(1); +$footerView->setResults($this->getData('list:count')); + +echo $this->getData('nav')->render(); +?> + +
+ + + + + + + getData('list:elements') as $key => $value) : $c++; + $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/account/settings?id=' . $value->getId()); ?> + +
l11n->lang['Admin']['Groups']; ?>
l11n->lang[0]['ID']; ?> + l11n->lang['Admin']['Status']; ?> + l11n->lang['Admin']['Name']; ?> + l11n->lang['Admin']['Activity']; ?> + l11n->lang['Admin']['Created']; ?> +
render(); ?> +
getStatus(); ?> + getId(); ?> + getName1(); ?> + getLastActive()->format('Y-m-d H:i:s'); ?> + getCreatedAt()->format('Y-m-d H:i:s'); ?> + + +
l11n->lang[0]['Empty']; ?> + +
+
diff --git a/Theme/Backend/accounts-single.tpl.php b/Theme/Backend/accounts-single.tpl.php new file mode 100644 index 0000000..4b94ae0 --- /dev/null +++ b/Theme/Backend/accounts-single.tpl.php @@ -0,0 +1,87 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/* + * UI Logic + */ + +$account = $this->getData('account'); +echo $this->getData('nav')->render(); ?> + +
+

l11n->lang['Admin']['Account'] ?>

+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+

l11n->lang['Admin']['Groups'] ?>

+
+
+ + +
+
+
+
+
+
+
+ +
+

l11n->lang['Admin']['Permissions'] ?>

+
+
+ + +
+
+
+
+
+
+
diff --git a/Theme/Backend/groups-create.tpl.php b/Theme/Backend/groups-create.tpl.php new file mode 100644 index 0000000..1edd32b --- /dev/null +++ b/Theme/Backend/groups-create.tpl.php @@ -0,0 +1,64 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/* + * UI Logic + */ + +echo $this->getData('nav')->render(); ?> + +
+

l11n->lang['Admin']['Group'] ?>

+
+
+ + +
+
+
+
+
+
+
+
+
+ +
+

l11n->lang['Admin']['Parent'] ?>

+
+
+ + +
+
+
+
+
+
+
+ +
+

l11n->lang['Admin']['Permissions'] ?>

+
+
+ + +
+
+
+
+
+
+
diff --git a/Theme/Backend/groups-list.tpl.php b/Theme/Backend/groups-list.tpl.php new file mode 100644 index 0000000..46384d9 --- /dev/null +++ b/Theme/Backend/groups-list.tpl.php @@ -0,0 +1,55 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/** + * @var \phpOMS\Views\View $this + */ + +$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); +$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); + +$footerView->setPages($this->getData('list:count') ?? 0 / 25); +$footerView->setPage(1); +$footerView->setResults($this->getData('list:count') ?? 1); + +echo $this->getData('nav')->render(); ?> + +
+ + + + + + + getData('list:elements') as $key => $value) : $c++; + $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?> + +
l11n->lang['Admin']['Groups']; ?>
l11n->lang[0]['ID']; ?> + l11n->lang['Admin']['Name']; ?> + l11n->lang['Admin']['Parents']; ?> + l11n->lang['Admin']['Children']; ?> + l11n->lang['Admin']['Members']; ?> +
render(); ?> +
getId(); ?> + getName(); ?> + + + + + +
l11n->lang[0]['Empty']; ?> + +
+
diff --git a/Theme/Backend/groups-single.tpl.php b/Theme/Backend/groups-single.tpl.php new file mode 100644 index 0000000..8d60803 --- /dev/null +++ b/Theme/Backend/groups-single.tpl.php @@ -0,0 +1,84 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/* + * UI Logic + */ + +$group = $this->getData('group'); + +echo $this->getData('nav')->render(); ?> + +
+

l11n->lang['Admin']['Group'] ?>

+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ +
+

l11n->lang['Admin']['Parent'] ?>

+
+
+ + +
+
+
+
+
+
+
+ +
+

l11n->lang['Admin']['Permissions'] ?>

+
+
+ + +
+
+
+
+
+
+
+ +
+

l11n->lang['Admin']['Accounts'] ?>

+
+
+ + +
+
+
+
+
+
+
+ + diff --git a/Theme/Backend/modules-list.tpl.php b/Theme/Backend/modules-list.tpl.php new file mode 100644 index 0000000..6bc650b --- /dev/null +++ b/Theme/Backend/modules-list.tpl.php @@ -0,0 +1,62 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/** + * @var \phpOMS\Views\View $this + */ + +$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); +$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); + +$modules = $this->app->moduleManager->getAllModules(); +$active = $this->app->moduleManager->getActiveModules(); +$installed = $this->app->moduleManager->getInstalledModules(); + +$footerView->setPages(count($modules) / 25); +$footerView->setPage(1); +$footerView->setResults(count($modules)); +?> + +
+ + + + + + + + $module) : $count++; + $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/module/settings?id=' . $module['name']['internal']); ?> + +
l11n->lang['Admin']['Modules']; ?>
l11n->lang[0]['ID']; ?> + l11n->lang['Admin']['Name']; ?> + l11n->lang['Admin']['Version']; ?> + l11n->lang['Admin']['Status']; ?> +
render(); ?> +
+ + + l11n->lang['Admin']['Active']); + elseif (in_array($module['name']['internal'], $installed)) + echo strtolower($this->l11n->lang['Admin']['Inactive']); + else + echo strtolower($this->l11n->lang['Admin']['Available']); ?> + + +
l11n->lang[0]['Empty']; ?> + +
+
diff --git a/Theme/Backend/modules-settings.tpl.php b/Theme/Backend/modules-settings.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/Theme/Backend/modules-single.tpl.php b/Theme/Backend/modules-single.tpl.php new file mode 100644 index 0000000..53274a4 --- /dev/null +++ b/Theme/Backend/modules-single.tpl.php @@ -0,0 +1,86 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/** + * @var \phpOMS\Views\View $this + */ + +$modules = $this->app->moduleManager->getAllModules(); +$active = $this->app->moduleManager->getActiveModules(); +$installed = $this->app->moduleManager->getInstalledModules(); + +$id = $this->request->getData('id') ?? 1; +?> + +
+

+ +
+ + + + + + + + +
l11n->lang['Admin']['Name'] ?> + +
l11n->lang['Admin']['Version'] ?> + +
l11n->lang['Admin']['CreatedBy'] ?> + +
l11n->lang['Admin']['Website'] ?> + +
l11n->lang['Admin']['Description'] ?> + +
+ + + + + + + + + +
+
+
+ +
+

l11n->lang['Admin']['Settings'] ?>

+ +
+ +
+
+ +
+

l11n->lang['Admin']['Groups'] ?>

+ +
+ +
+
+ +
+

l11n->lang['Admin']['Permissions'] ?>

+ +
+ +
+
diff --git a/Theme/Backend/settings-general.tpl.php b/Theme/Backend/settings-general.tpl.php new file mode 100644 index 0000000..c9ce872 --- /dev/null +++ b/Theme/Backend/settings-general.tpl.php @@ -0,0 +1,98 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/* + * UI Logic + */ + +$_oname = $this->getData('oname') ?? ''; +$_timezone = $this->getData('timezone') ?? ''; +$_timeformat = $this->getData('timeformat') ?? ''; +$_language = $this->getData('language') ?? ''; +$_currency = $this->getData('currency') ?? ''; +$_decimal_point = $this->getData('decimal_point') ?? ''; +$_thousands_sep = $this->getData('thousands_sep') ?? ''; +$_password = $this->getData('password') ?? ''; +$_country = $this->getData('country') ?? ''; + +$countries = \phpOMS\Localization\ISO3166EnumArray::getConstants(); +$timezones = \phpOMS\Localization\TimeZoneEnumArray::getConstants(); +$timeformats = \phpOMS\Localization\ISO8601EnumArray::getConstants(); +$languages = \phpOMS\Localization\ISO639EnumArray::getConstants(); +$currencies = \phpOMS\Localization\ISO4217EnumArray::getConstants(); + +?> +
+

l11n->lang['Admin']['Settings'] ?>

+
+
+ + +
+
+
+
+
+
+
+
+
+ +
+

l11n->lang['Admin']['Localization'] ?>

+
+
+ + +
+
+
+
+
+
+
+
+
+
+

l11n->lang['Admin']['Numberformat'] ?>

+
+ +
+ +
+
+
+
+