diff --git a/Admin/Activate.php b/Admin/Activate.php deleted file mode 100644 index e77fa15..0000000 --- a/Admin/Activate.php +++ /dev/null @@ -1,44 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -namespace Modules\Profile\Admin; - - -use phpOMS\DataStorage\Database\DatabasePool; -use phpOMS\Module\ActivateAbstract; -use phpOMS\Module\InfoManager; - -/** - * Navigation class. - * - * @category Modules - * @package Modules\Admin - * @author OMS Development Team - * @author Dennis Eichhorn - * @license OMS License 1.0 - * @link http://orange-management.com - * @since 1.0.0 - */ -class Activate extends ActivateAbstract -{ - - /** - * {@inheritdoc} - */ - public static function activate(DatabasePool $dbPool, InfoManager $info) - { - parent::activate($dbPool, $info); - } -} diff --git a/Admin/Deactivate.php b/Admin/Deactivate.php deleted file mode 100644 index 029a4f0..0000000 --- a/Admin/Deactivate.php +++ /dev/null @@ -1,44 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -namespace Modules\Profile\Admin; - - -use phpOMS\DataStorage\Database\DatabasePool; -use phpOMS\Module\DeactivateAbstract; -use phpOMS\Module\InfoManager; - -/** - * Navigation class. - * - * @category Modules - * @package Modules\Admin - * @author OMS Development Team - * @author Dennis Eichhorn - * @license OMS License 1.0 - * @link http://orange-management.com - * @since 1.0.0 - */ -class Deactivate extends DeactivateAbstract -{ - - /** - * {@inheritdoc} - */ - public static function deactivate(DatabasePool $dbPool, InfoManager $info) - { - parent::deactivate($dbPool, $info); - } -} diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json deleted file mode 100644 index d58c6d8..0000000 --- a/Admin/Install/Navigation.install.json +++ /dev/null @@ -1,63 +0,0 @@ -[ - { - "id": 1000301001, - "pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd", - "type": 2, - "subtype": 1, - "name": "Profiles", - "uri": "/{/lang}/backend/profile/list?{?}", - "target": "self", - "icon": null, - "order": 10, - "from": "Profile", - "permission": null, - "parent": 1000201001, - "children": [ - { - "id": 1000302001, - "pid": "722846d6c55f46fd3d372bba7311a150acd1f23c", - "type": 3, - "subtype": 1, - "name": "List", - "uri": "/{/lang}/backend/profile/list?{?}", - "target": "self", - "icon": null, - "order": 1, - "from": "Profile", - "permission": null, - "parent": 1000301001, - "children": [] - }, - { - "id": 1000303001, - "pid": "722846d6c55f46fd3d372bba7311a150acd1f23c", - "type": 5, - "subtype": 1, - "name": "Profile", - "uri": "/{/lang}/backend/profile/single/front?{?}", - "target": "self", - "icon": null, - "order": 3, - "from": "Profile", - "permission": null, - "parent": 1000301001, - "children": [] - }, - { - "id": 1000303002, - "pid": "722846d6c55f46fd3d372bba7311a150acd1f23c", - "type": 5, - "subtype": 1, - "name": "Settings", - "uri": "/{/lang}/backend/profile/single/settings?{?}", - "target": "self", - "icon": null, - "order": 999, - "from": "Profile", - "permission": null, - "parent": 1000301001, - "children": [] - } - ] - } -] diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php deleted file mode 100644 index fbbcb76..0000000 --- a/Admin/Install/Navigation.php +++ /dev/null @@ -1,40 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -namespace Modules\Profile\Admin\Install; -use phpOMS\DataStorage\Database\DatabasePool; - -/** - * Navigation class. - * - * @category Modules - * @package Modules\Admin - * @author OMS Development Team - * @author Dennis Eichhorn - * @license OMS License 1.0 - * @link http://orange-management.com - * @since 1.0.0 - */ -class Navigation -{ - public static function install(string $path, DatabasePool $dbPool) - { - $navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true); - - $class = '\\Modules\\Navigation\\Admin\\Installer'; - /** @var $class \Modules\Navigation\Admin\Installer */ - $class::installExternal($dbPool, $navData); - } -} diff --git a/Admin/Installer.php b/Admin/Installer.php deleted file mode 100644 index 53900c1..0000000 --- a/Admin/Installer.php +++ /dev/null @@ -1,134 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -namespace Modules\Profile\Admin; - -use phpOMS\DataStorage\Database\DatabaseType; -use phpOMS\DataStorage\Database\DatabasePool; -use phpOMS\Module\InfoManager; -use phpOMS\Module\InstallerAbstract; - -/** - * Navigation class. - * - * @category Modules - * @package Framework - * @author OMS Development Team - * @author Dennis Eichhorn - * @license OMS License 1.0 - * @link http://orange-management.com - * @since 1.0.0 - */ -class Installer extends InstallerAbstract -{ - - /** - * {@inheritdoc} - */ - public static function install(string $path, DatabasePool $dbPool, InfoManager $info) - { - parent::install($path, $dbPool, $info); - - switch ($dbPool->get('core')->getType()) { - case DatabaseType::MYSQL: - $dbPool->get('core')->con->prepare( - 'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'profile_account` ( - `profile_account_id` int(11) NOT NULL, - `profile_account_begin` datetime NOT NULL, - `profile_account_image` varchar(255) NOT NULL, - `profile_account_cv` text NOT NULL, - `profile_account_account` int(11) DEFAULT NULL, - PRIMARY KEY (`profile_account_id`), - KEY `profile_account_account` (`profile_account_account`) - )ENGINE=InnoDB DEFAULT CHARSET=utf8;' - )->execute(); - - $dbPool->get('core')->con->prepare( - 'ALTER TABLE `' . $dbPool->get('core')->prefix . 'profile_account` - ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'profile_account_ibfk_1` FOREIGN KEY (`profile_account_account`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`);' - )->execute(); - - $dbPool->get('core')->con->prepare( - 'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'profile_phone` ( - `profile_phone_id` int(11) NOT NULL, - `profile_phone_type` tinyint(2) NOT NULL, - `profile_phone_number` varchar(50) NOT NULL, - `profile_phone_account` int(11) NOT NULL, - PRIMARY KEY (`profile_phone_id`), - KEY `profile_phone_account` (`profile_phone_account`) - )ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;' - )->execute(); - - $dbPool->get('core')->con->prepare( - 'ALTER TABLE `' . $dbPool->get('core')->prefix . 'profile_phone` - ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'profile_phone_ibfk_1` FOREIGN KEY (`profile_phone_account`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`);' - )->execute(); - - $dbPool->get('core')->con->prepare( - 'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'profile_address` ( - `profile_address_id` int(11) NOT NULL, - `profile_address_type` tinyint(2) NOT NULL, - `profile_address_address` varchar(50) NOT NULL, - `profile_address_street` varchar(50) NOT NULL, - `profile_address_city` varchar(50) NOT NULL, - `profile_address_zip` varchar(50) NOT NULL, - `profile_address_country` varchar(50) NOT NULL, - `profile_address_account` int(11) DEFAULT NULL, - PRIMARY KEY (`profile_address_id`), - KEY `profile_address_account` (`profile_address_account`) - )ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;' - )->execute(); - - $dbPool->get('core')->con->prepare( - 'ALTER TABLE `' . $dbPool->get('core')->prefix . 'profile_address` - ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'profile_address_ibfk_1` FOREIGN KEY (`profile_address_account`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`);' - )->execute(); - - $dbPool->get('core')->con->prepare( - 'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'profile_account_relation` ( - `profile_account_relation_id` int(11) NOT NULL, - `profile_account_relation_type` tinyint(2) NOT NULL, - `profile_account_relation_relation` int(11) DEFAULT NULL, - `profile_account_relation_account` int(11) DEFAULT NULL, - PRIMARY KEY (`profile_account_relation_id`), - KEY `profile_account_relation_account` (`profile_account_relation_account`) - )ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;' - )->execute(); - - $dbPool->get('core')->con->prepare( - 'ALTER TABLE `' . $dbPool->get('core')->prefix . 'profile_account_relation` - ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'profile_account_relation_ibfk_1` FOREIGN KEY (`profile_account_relation_account`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`);' - )->execute(); - - $dbPool->get('core')->con->prepare( - 'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'profile_account_setting` ( - `profile_account_setting_id` int(11) NOT NULL, - `profile_account_setting_module` int(11) NOT NULL, - `profile_account_setting_type` varchar(20) NOT NULL, - `profile_account_setting_value` varchar(32) DEFAULT NULL, - `profile_account_setting_account` int(11) DEFAULT NULL, - PRIMARY KEY (`profile_account_setting_id`), - KEY `profile_account_setting_account` (`profile_account_setting_account`) - )ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;' - )->execute(); - - $dbPool->get('core')->con->prepare( - 'ALTER TABLE `' . $dbPool->get('core')->prefix . 'profile_account_setting` - ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'profile_account_setting_ibfk_1` FOREIGN KEY (`profile_account_setting_account`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`);' - )->execute(); - break; - } - } -} diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php deleted file mode 100644 index e836bc8..0000000 --- a/Admin/Routes/Web/Backend.php +++ /dev/null @@ -1,18 +0,0 @@ - [ - [ - 'dest' => '\Modules\Profile\Controller:viewProfileList', - 'verb' => RouteVerb::GET, - ], - ], - '^.*/backend/profile/single.*$' => [ - [ - 'dest' => '\Modules\Profile\Controller:viewProfileSingle', - 'verb' => RouteVerb::GET, - ], - ], -]; diff --git a/Admin/Routes/console.php b/Admin/Routes/console.php deleted file mode 100644 index 1ecbfac..0000000 --- a/Admin/Routes/console.php +++ /dev/null @@ -1,3 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -namespace Modules\Profile\Admin; - - -use phpOMS\DataStorage\Database\DatabasePool; -use phpOMS\DataStorage\Database\Schema\Builder; -use phpOMS\Module\UninstallAbstract; - -/** - * Navigation class. - * - * @category Modules - * @package Modules\Admin - * @author OMS Development Team - * @author Dennis Eichhorn - * @license OMS License 1.0 - * @link http://orange-management.com - * @since 1.0.0 - */ -class Uninstall extends UninstallAbstract -{ - - /** - * {@inheritdoc} - */ - public static function uninstall(DatabasePool $dbPool, InfoManager $info) - { - parent::uninstall($dbPool, $info); - - $query = new Builder($dbPool->get()); - - $query->prefix($dbPool->get('core')->getPrefix())->drop( - 'profile_account_setting', - 'profile_account_relation', - 'profile_address', - 'profile_phone', - 'profile_account' - ); - - $dbPool->get()->con->prepare($query->toSql())->execute(); - } -} diff --git a/Admin/Update.php b/Admin/Update.php deleted file mode 100644 index bb561d9..0000000 --- a/Admin/Update.php +++ /dev/null @@ -1,46 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -namespace Modules\Profile\Admin; - - -use phpOMS\DataStorage\Database\DatabasePool; -use phpOMS\Module\UpdateAbstract; -use phpOMS\System\File\Directory; - -/** - * Navigation class. - * - * @category Modules - * @package Modules\Admin - * @author OMS Development Team - * @author Dennis Eichhorn - * @license OMS License 1.0 - * @link http://orange-management.com - * @since 1.0.0 - */ -class Update extends UpdateAbstract -{ - - /** - * {@inheritdoc} - */ - public static function update(DatabasePool $dbPool, array $info) - { - Directory::deletePath(__DIR__ . '/Update'); - mkdir('Update'); - parent::update($dbPool, $info); - } -} diff --git a/Controller.php b/Controller.php deleted file mode 100644 index f6faafa..0000000 --- a/Controller.php +++ /dev/null @@ -1,122 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -namespace Modules\Profile; - -use Modules\Admin\Models\AccountMapper; -use phpOMS\Contract\RenderableInterface; -use phpOMS\Message\RequestAbstract; -use phpOMS\Message\ResponseAbstract; -use phpOMS\Module\ModuleAbstract; -use phpOMS\Module\WebInterface; -use phpOMS\Views\View; -use phpOMS\Views\ViewLayout; - -/** - * Profile class. - * - * @category Modules - * @package Modules\Profile - * @author OMS Development Team - * @author Dennis Eichhorn - * @license OMS License 1.0 - * @link http://orange-management.com - * @since 1.0.0 - */ -class Controller extends ModuleAbstract implements WebInterface -{ - - /** - * Module path. - * - * @var string - * @since 1.0.0 - */ - /* public */ const MODULE_PATH = __DIR__; - - /** - * Module version. - * - * @var string - * @since 1.0.0 - */ - /* public */ const MODULE_VERSION = '1.0.0'; - - /** - * Module name. - * - * @var string - * @since 1.0.0 - */ - /* public */ const MODULE_NAME = 'Profile'; - - /** - * Providing. - * - * @var string - * @since 1.0.0 - */ - protected static $providing = []; - - /** - * Dependencies. - * - * @var string - * @since 1.0.0 - */ - protected static $dependencies = [ - ]; - - /** - * @param RequestAbstract $request Request - * @param ResponseAbstract $response Response - * @param mixed $data Generic data - * - * @return RenderableInterface - * - * @since 1.0.0 - * @author Dennis Eichhorn - */ - public function viewProfileList(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable - { - $view = new View($this->app, $request, $response); - $view->setTemplate('/Modules/Profile/Theme/Backend/profile-list'); - - $view->setData('accounts', AccountMapper::getNewest(25)); - - return $view; - } - - /** - * @param RequestAbstract $request Request - * @param ResponseAbstract $response Response - * @param mixed $data Generic data - * - * @return RenderableInterface - * - * @since 1.0.0 - * @author Dennis Eichhorn - */ - public function viewProfileSingle(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable - { - $view = new View($this->app, $request, $response); - $view->setTemplate('/Modules/Profile/Theme/Backend/profile-single'); - $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000301001, $request, $response)); - - $view->setData('account', AccountMapper::get($request->getData('id'))); - - return $view; - } -} diff --git a/README.md b/README.md deleted file mode 100644 index 47e5a43..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# Profile # diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php deleted file mode 100644 index ae47ad7..0000000 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ /dev/null @@ -1,20 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -return ['Navigation' => [ - 'List' => 'List', - 'Profile' => 'Profile', - 'Profiles' => 'Profiles', -]]; diff --git a/Theme/Backend/Lang/api.en.lang.php b/Theme/Backend/Lang/api.en.lang.php deleted file mode 100644 index a82e530..0000000 --- a/Theme/Backend/Lang/api.en.lang.php +++ /dev/null @@ -1,18 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright 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 deleted file mode 100644 index 690c685..0000000 --- a/Theme/Backend/Lang/en.lang.php +++ /dev/null @@ -1,35 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -return ['Profile' => [ - 'Account/Group' => 'Account/Group', - 'Activity' => 'Activity', - 'Birthday' => 'Birthday', - 'ContactInformation' => 'Contact Information', - 'Community' => 'Community', - 'Email' => 'Email', - 'LastLogin' => 'Last Login', - 'Name' => 'Name', - 'Occupation' => 'Occupation', - 'OFF' => 'OFF', - 'ON' => 'ON', - 'Phone' => 'Phone', - 'Profile' => 'Profile', - 'Profiles' => 'Profiles', - 'Ranks' => 'Ranks', - 'Registered' => 'Registered', - 'Skype' => 'Skype', - 'Status' => 'Status', -]]; diff --git a/Theme/Backend/acc-grp-popup.tpl.php b/Theme/Backend/acc-grp-popup.tpl.php deleted file mode 100644 index 5fcc824..0000000 --- a/Theme/Backend/acc-grp-popup.tpl.php +++ /dev/null @@ -1,23 +0,0 @@ - \ No newline at end of file diff --git a/Theme/Backend/img/profile-default-small.jpg b/Theme/Backend/img/profile-default-small.jpg deleted file mode 100644 index 6f07f6d..0000000 Binary files a/Theme/Backend/img/profile-default-small.jpg and /dev/null differ diff --git a/Theme/Backend/profile-list.tpl.php b/Theme/Backend/profile-list.tpl.php deleted file mode 100644 index ea37d33..0000000 --- a/Theme/Backend/profile-list.tpl.php +++ /dev/null @@ -1,55 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright 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(20); -$footerView->setPage(1); - -$accounts = $this->getData('accounts'); -?> - -
-
-
- - - - - - - - $account) : $count++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/profile/single?{?}&id=' . $account->getId()); ?> - -
getText('Profiles'); ?>
getText('ID', 0, 0); ?> - getText('Name'); ?> - getText('Activity'); ?> -
render(); ?> -
getId(); ?> - getName3() . ' ' . $account->getName2() . ' ' . $account->getName1(); ?> - getLastActive()->format('Y-m-d'); ?> - - -
getText('Empty', 0, 0); ?> - -
-
-
-
diff --git a/Theme/Backend/profile-single.tpl.php b/Theme/Backend/profile-single.tpl.php deleted file mode 100644 index 8cca359..0000000 --- a/Theme/Backend/profile-single.tpl.php +++ /dev/null @@ -1,116 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -/** - * @var \phpOMS\Views\View $this - * @var \Modules\Tasks\Models\Task[] $tasks - */ -$account = $this->getData('account'); - -$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); - -$footerView->setPages(1 / 25); -$footerView->setPage(1); -$footerView->setResults(1); - -echo $this->getData('nav')->render(); -?> -
-
-
-

getText('Profile'); ?>

-
- - - - - - - - - - - - - - - - - -
getText('Name'); ?> - getName3(); ?>, getName1(); ?> -
getText('Occupation'); ?> - Sailor -
getText('Birthday'); ?> - 06.09.1934 -
getText('Ranks'); ?> - Gosling -
getText('Email'); ?> - getEmail(); ?> -
Address - -
Private - SMALLSYS INC
795 E DRAGRAM
TUCSON AZ 85705
USA -
Work - SMALLSYS INC
795 E DRAGRAM
TUCSON AZ 85705
USA -
getText('Phone'); ?> - -
Private - +01 12345-4567 -
Mobile - +01 12345-4567 -
Work - +01 12345-4567 -
getText('Registered'); ?> - getCreatedAt()->format('Y-m-d'); ?> -
getText('LastLogin'); ?> - getLastActive()->format('Y-m-d'); ?> -
getText('Status'); ?> - getStatus(); ?> -
- -
-
-
- -
-
- - - - - - - $value) : $c++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?{?}&id=' . $value->getId()); ?> - -
getText('Media', 'Media'); ?>
getText('ID', 0, 0); ?> - getText('Name', 'Media'); ?> - getText('Type', 'Media'); ?> - getText('Created', 'Media'); ?> -
render(); ?> -
getId(); ?> - getNewestHistory()->getPosition(); ?> - getNewestHistory()->getPosition(); ?> - getNewestStatus()->getStatus(); ?> - - -
getText('Empty', 0, 0); ?> - -
-
-
-
diff --git a/Theme/backend/Lang/Navigation.en.lang.php b/Theme/backend/Lang/Navigation.en.lang.php deleted file mode 100644 index ae47ad7..0000000 --- a/Theme/backend/Lang/Navigation.en.lang.php +++ /dev/null @@ -1,20 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -return ['Navigation' => [ - 'List' => 'List', - 'Profile' => 'Profile', - 'Profiles' => 'Profiles', -]]; diff --git a/Theme/backend/Lang/api.en.lang.php b/Theme/backend/Lang/api.en.lang.php deleted file mode 100644 index a82e530..0000000 --- a/Theme/backend/Lang/api.en.lang.php +++ /dev/null @@ -1,18 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright 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 deleted file mode 100644 index 690c685..0000000 --- a/Theme/backend/Lang/en.lang.php +++ /dev/null @@ -1,35 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -return ['Profile' => [ - 'Account/Group' => 'Account/Group', - 'Activity' => 'Activity', - 'Birthday' => 'Birthday', - 'ContactInformation' => 'Contact Information', - 'Community' => 'Community', - 'Email' => 'Email', - 'LastLogin' => 'Last Login', - 'Name' => 'Name', - 'Occupation' => 'Occupation', - 'OFF' => 'OFF', - 'ON' => 'ON', - 'Phone' => 'Phone', - 'Profile' => 'Profile', - 'Profiles' => 'Profiles', - 'Ranks' => 'Ranks', - 'Registered' => 'Registered', - 'Skype' => 'Skype', - 'Status' => 'Status', -]]; diff --git a/Theme/backend/img/profile-default-small.jpg b/Theme/backend/img/profile-default-small.jpg deleted file mode 100644 index 6f07f6d..0000000 Binary files a/Theme/backend/img/profile-default-small.jpg and /dev/null differ diff --git a/Theme/backend/profile-list.tpl.php b/Theme/backend/profile-list.tpl.php deleted file mode 100644 index ea37d33..0000000 --- a/Theme/backend/profile-list.tpl.php +++ /dev/null @@ -1,55 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright 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(20); -$footerView->setPage(1); - -$accounts = $this->getData('accounts'); -?> - -
-
-
- - - - - - - - $account) : $count++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/profile/single?{?}&id=' . $account->getId()); ?> - -
getText('Profiles'); ?>
getText('ID', 0, 0); ?> - getText('Name'); ?> - getText('Activity'); ?> -
render(); ?> -
getId(); ?> - getName3() . ' ' . $account->getName2() . ' ' . $account->getName1(); ?> - getLastActive()->format('Y-m-d'); ?> - - -
getText('Empty', 0, 0); ?> - -
-
-
-
diff --git a/Theme/backend/profile-single.tpl.php b/Theme/backend/profile-single.tpl.php deleted file mode 100644 index 8cca359..0000000 --- a/Theme/backend/profile-single.tpl.php +++ /dev/null @@ -1,116 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -/** - * @var \phpOMS\Views\View $this - * @var \Modules\Tasks\Models\Task[] $tasks - */ -$account = $this->getData('account'); - -$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); - -$footerView->setPages(1 / 25); -$footerView->setPage(1); -$footerView->setResults(1); - -echo $this->getData('nav')->render(); -?> -
-
-
-

getText('Profile'); ?>

-
- - - - - - - - - - - - - - - - - -
getText('Name'); ?> - getName3(); ?>, getName1(); ?> -
getText('Occupation'); ?> - Sailor -
getText('Birthday'); ?> - 06.09.1934 -
getText('Ranks'); ?> - Gosling -
getText('Email'); ?> - getEmail(); ?> -
Address - -
Private - SMALLSYS INC
795 E DRAGRAM
TUCSON AZ 85705
USA -
Work - SMALLSYS INC
795 E DRAGRAM
TUCSON AZ 85705
USA -
getText('Phone'); ?> - -
Private - +01 12345-4567 -
Mobile - +01 12345-4567 -
Work - +01 12345-4567 -
getText('Registered'); ?> - getCreatedAt()->format('Y-m-d'); ?> -
getText('LastLogin'); ?> - getLastActive()->format('Y-m-d'); ?> -
getText('Status'); ?> - getStatus(); ?> -
- -
-
-
- -
-
- - - - - - - $value) : $c++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?{?}&id=' . $value->getId()); ?> - -
getText('Media', 'Media'); ?>
getText('ID', 0, 0); ?> - getText('Name', 'Media'); ?> - getText('Type', 'Media'); ?> - getText('Created', 'Media'); ?> -
render(); ?> -
getId(); ?> - getNewestHistory()->getPosition(); ?> - getNewestHistory()->getPosition(); ?> - getNewestStatus()->getStatus(); ?> - - -
getText('Empty', 0, 0); ?> - -
-
-
-
diff --git a/img/module_teaser_small.png b/img/module_teaser_small.png deleted file mode 100644 index f56e6ff..0000000 Binary files a/img/module_teaser_small.png and /dev/null differ diff --git a/info.json b/info.json deleted file mode 100644 index dc6732d..0000000 --- a/info.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": { - "id": 1000300000, - "internal": "Profile", - "external": "OMS Profile" - }, - "version": "1.0.0", - "requirements": { - "phpOMS": "1.0.0", - "phpOMS-db": "1.0.0" - }, - "creator": { - "name": "Orange Management", - "website": "www.spl1nes.com" - }, - "description": "The profile module.", - "directory": "Profile", - "dependencies": { - "Admin" : "1.0.0" - }, - "providing": { - "Navigation": "*" - }, - "load": [ - { - "pid": [ - "88a70f9456abff33fda791878b9c0bcbe2cb5bc4" - ], - "type": 4, - "for": "Content", - "file": "Profile", - "from": "Profile" - }, - { - "pid": [ - "754a08ddf8bcb1cf22f310f09206dd783d42f7dd" - ], - "type": 5, - "from": "Profile", - "for": "Navigation", - "file": "Navigation" - } - ] -}