mirror of
https://github.com/Karaka-Management/oms-ClientManagement.git
synced 2026-02-13 15:28:42 +00:00
Bulkl path fix reverse
This commit is contained in:
parent
5223ea0ec8
commit
16230c8f6c
44
Admin/Activate.php
Normal file
44
Admin/Activate.php
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.1
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\ClientManagement\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 <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @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);
|
||||||
|
}
|
||||||
|
}
|
||||||
44
Admin/Deactivate.php
Normal file
44
Admin/Deactivate.php
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.1
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\ClientManagement\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 <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @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);
|
||||||
|
}
|
||||||
|
}
|
||||||
139
Admin/Install/Navigation.install.json
Normal file
139
Admin/Install/Navigation.install.json
Normal file
|
|
@ -0,0 +1,139 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"id": 1003102001,
|
||||||
|
"pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd",
|
||||||
|
"type": 2,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Clients",
|
||||||
|
"uri": "/{/lang}/backend/sales/client/list?{?}",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 1,
|
||||||
|
"from": 1003100000,
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1001601001,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"id": 1003102101,
|
||||||
|
"pid": "25a25434541197e2ca3ff0164a8b02173c5fcd8b",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "List",
|
||||||
|
"uri": "/{/lang}/backend/sales/client/list?{?}",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 1,
|
||||||
|
"from": 1003100000,
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1003102001,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"id": 1003103001,
|
||||||
|
"pid": "734f84316536b783ab45b9777a4cdefa56ba6aa0",
|
||||||
|
"type": 5,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Create",
|
||||||
|
"uri": "/{/lang}/backend/sales/client/create?{?}",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 1,
|
||||||
|
"from": 1003100000,
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1003102101,
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1003103004,
|
||||||
|
"pid": "734f84316536b783ab45b9777a4cdefa56ba6aa0",
|
||||||
|
"type": 5,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Profile",
|
||||||
|
"uri": "/{/lang}/backend/sales/client/profile?{?}",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 1,
|
||||||
|
"from": 1003100000,
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1003102101,
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1003103005,
|
||||||
|
"pid": "734f84316536b783ab45b9777a4cdefa56ba6aa0",
|
||||||
|
"type": 5,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Turnover",
|
||||||
|
"uri": "/{/lang}/backend/sales/client/turnover?{?}",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 1,
|
||||||
|
"from": 1003100000,
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1003102101,
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1003103201,
|
||||||
|
"pid": "734f84316536b783ab45b9777a4cdefa56ba6aa0",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Invoices",
|
||||||
|
"uri": "/{/lang}/backend/sales/client/invoice/list?{?}",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 1,
|
||||||
|
"from": 1003100000,
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1003102101,
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1003103301,
|
||||||
|
"pid": "734f84316536b783ab45b9777a4cdefa56ba6aa0",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Articles",
|
||||||
|
"uri": "/{/lang}/backend/sales/client/article/list?{?}",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 1,
|
||||||
|
"from": 1003100000,
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1003102101,
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1003103401,
|
||||||
|
"pid": "734f84316536b783ab45b9777a4cdefa56ba6aa0",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Analysis",
|
||||||
|
"uri": "/{/lang}/backend/sales/client/profile/analysis?{?}",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 1,
|
||||||
|
"from": 1003100000,
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1003102101,
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1003102201,
|
||||||
|
"pid": "25a25434541197e2ca3ff0164a8b02173c5fcd8b",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Create",
|
||||||
|
"uri": "/{/lang}/backend/sales/client/create?{?}",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 1,
|
||||||
|
"from": 1003100000,
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1003102001,
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
40
Admin/Install/Navigation.php
Normal file
40
Admin/Install/Navigation.php
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.1
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\ClientManagement\Admin\Install;
|
||||||
|
use phpOMS\DataStorage\Database\DatabasePool;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Navigation class.
|
||||||
|
*
|
||||||
|
* @category Modules
|
||||||
|
* @package Modules\Admin
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @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);
|
||||||
|
}
|
||||||
|
}
|
||||||
50
Admin/Installer.php
Normal file
50
Admin/Installer.php
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.1
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\ClientManagement\Admin;
|
||||||
|
|
||||||
|
use phpOMS\DataStorage\Database\DatabaseType;
|
||||||
|
use phpOMS\DataStorage\Database\DatabasePool;
|
||||||
|
use phpOMS\Module\InfoManager;
|
||||||
|
use phpOMS\Module\InstallerAbstract;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Client Management install class.
|
||||||
|
*
|
||||||
|
* @category Modules
|
||||||
|
* @package Modules\Admin
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @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:
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
30
Admin/Routes/Web/Backend.php
Normal file
30
Admin/Routes/Web/Backend.php
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use phpOMS\Router\RouteVerb;
|
||||||
|
|
||||||
|
return [
|
||||||
|
'^.*/backend/sales/client/list.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\ClientManagement\Controller:viewClientManagementClientList',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/backend/sales/client/create.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\ClientManagement\Controller:viewClientManagementClientCreate',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/backend/sales/client/profile.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\ClientManagement\Controller:viewClientManagementClientProfile',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/backend/sales/client/analysis.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\ClientManagement\Controller:viewClientManagementClientAnalysis',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
3
Admin/Routes/console.php
Normal file
3
Admin/Routes/console.php
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$moduleRoutes = [];
|
||||||
3
Admin/Routes/socket.php
Normal file
3
Admin/Routes/socket.php
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$moduleRoutes = [];
|
||||||
43
Admin/Uninstall.php
Normal file
43
Admin/Uninstall.php
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.1
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\ClientManagement\Admin;
|
||||||
|
|
||||||
|
|
||||||
|
use phpOMS\DataStorage\Database\DatabasePool;
|
||||||
|
use phpOMS\Module\UninstallAbstract;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Navigation class.
|
||||||
|
*
|
||||||
|
* @category Modules
|
||||||
|
* @package Modules\Admin
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @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);
|
||||||
|
}
|
||||||
|
}
|
||||||
46
Admin/Update.php
Normal file
46
Admin/Update.php
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.1
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\ClientManagement\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 <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @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);
|
||||||
|
}
|
||||||
|
}
|
||||||
140
Controller.php
Normal file
140
Controller.php
Normal file
|
|
@ -0,0 +1,140 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.1
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\ClientManagement;
|
||||||
|
|
||||||
|
use Modules\Navigation\Models\Navigation;
|
||||||
|
use Modules\Navigation\Views\NavigationView;
|
||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClientManagement class.
|
||||||
|
*
|
||||||
|
* @category Modules
|
||||||
|
* @package Modules\ClientManagement
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @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 = 'ClientManagement';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function viewClientManagementClientList(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable
|
||||||
|
{
|
||||||
|
$view = new View($this->app, $request, $response);
|
||||||
|
$view->setTemplate('/Modules/ClientManagement/Theme/Backend/clients-list');
|
||||||
|
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1003102001, $request, $response));
|
||||||
|
|
||||||
|
return $view;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param RequestAbstract $request Request
|
||||||
|
* @param ResponseAbstract $response Response
|
||||||
|
* @param mixed $data Generic data
|
||||||
|
*
|
||||||
|
* @return RenderableInterface
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function viewClientManagementClientCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable
|
||||||
|
{
|
||||||
|
$view = new View($this->app, $request, $response);
|
||||||
|
$view->setTemplate('/Modules/ClientManagement/Theme/Backend/clients-create');
|
||||||
|
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1003102001, $request, $response));
|
||||||
|
|
||||||
|
return $view;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param RequestAbstract $request Request
|
||||||
|
* @param ResponseAbstract $response Response
|
||||||
|
* @param mixed $data Generic data
|
||||||
|
*
|
||||||
|
* @return RenderableInterface
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function viewClientManagementClientProfile(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable
|
||||||
|
{
|
||||||
|
$view = new View($this->app, $request, $response);
|
||||||
|
$view->setTemplate('/Modules/ClientManagement/Theme/Backend/clients-profile');
|
||||||
|
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1003102001, $request, $response));
|
||||||
|
|
||||||
|
return $view;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
17
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
17
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.1
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
return ['Navigation' => [
|
||||||
|
]];
|
||||||
68
Theme/Backend/Lang/en.lang.php
Normal file
68
Theme/Backend/Lang/en.lang.php
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.1
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
return ['ClientManagement' => [
|
||||||
|
'Accounting' => 'Accounting',
|
||||||
|
'Address' => 'Address',
|
||||||
|
'Addresses' => 'Addresses',
|
||||||
|
'AreaManager' => 'Area Manager',
|
||||||
|
'Articlegroup' => 'Articlegroup',
|
||||||
|
'Bonus' => 'Bonus',
|
||||||
|
'Business' => 'Business',
|
||||||
|
'City' => 'City',
|
||||||
|
'Client' => 'Client',
|
||||||
|
'Clients' => 'Clients',
|
||||||
|
'Contact' => 'Contact',
|
||||||
|
'Country' => 'Country',
|
||||||
|
'Creditcard' => 'Creditcard',
|
||||||
|
'Date' => 'Date',
|
||||||
|
'Default' => 'Default',
|
||||||
|
'Delivery' => 'Delivery',
|
||||||
|
'Discount' => 'Discount',
|
||||||
|
'DiscountP' => 'Discount %',
|
||||||
|
'Email' => 'Email',
|
||||||
|
'Fax' => 'Fax',
|
||||||
|
'Files' => 'Files',
|
||||||
|
'Freightage' => 'Freightage',
|
||||||
|
'Group' => 'Group',
|
||||||
|
'ID' => 'ID',
|
||||||
|
'Info' => 'Info',
|
||||||
|
'Invoice' => 'Invoice',
|
||||||
|
'IsDefault' => 'Is default?',
|
||||||
|
'Log' => 'Log',
|
||||||
|
'Logs' => 'Logs',
|
||||||
|
'Master' => 'Master',
|
||||||
|
'Name' => 'Name',
|
||||||
|
'Name1' => 'Name1',
|
||||||
|
'Name2' => 'Name2',
|
||||||
|
'Name3' => 'Name3',
|
||||||
|
'Office' => 'Office',
|
||||||
|
'Payment' => 'Payment',
|
||||||
|
'PaymentTerm' => 'Payment Term',
|
||||||
|
'Phone' => 'Phone',
|
||||||
|
'Prices' => 'Prices',
|
||||||
|
'Price' => 'Price',
|
||||||
|
'Private' => 'Private',
|
||||||
|
'Productgroup' => 'Productgroup',
|
||||||
|
'Purchase' => 'Purchase',
|
||||||
|
'Quantity' => 'Quantity',
|
||||||
|
'Sales' => 'Sales',
|
||||||
|
'Segment' => 'Segment',
|
||||||
|
'Subtype' => 'Subtype',
|
||||||
|
'Support' => 'Support',
|
||||||
|
'Type' => 'Type',
|
||||||
|
'Wire' => 'Wire',
|
||||||
|
'Zip' => 'Zip',
|
||||||
|
]];
|
||||||
261
Theme/Backend/clients-create.tpl.php
Normal file
261
Theme/Backend/clients-create.tpl.php
Normal file
|
|
@ -0,0 +1,261 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.1
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* @var \phpOMS\Views\View $this
|
||||||
|
*/
|
||||||
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
|
<div class="tabular-2">
|
||||||
|
<div class="box">
|
||||||
|
<ul class="tab-links">
|
||||||
|
<li><label for="c-tab-1"><?= $this->getText('Master') ?></label></li>
|
||||||
|
<li><label for="c-tab-2"><?= $this->getText('Contact') ?></label></li>
|
||||||
|
<li><label for="c-tab-3"><?= $this->getText('Addresses') ?></label></li>
|
||||||
|
<li><label for="c-tab-4"><?= $this->getText('PaymentTerm') ?></label></li>
|
||||||
|
<li><label for="c-tab-5"><?= $this->getText('Payment') ?></label></li>
|
||||||
|
<li><label for="c-tab-6"><?= $this->getText('Prices') ?></label></li>
|
||||||
|
<li><label for="c-tab-7"><?= $this->getText('AreaManager') ?></label></li>
|
||||||
|
<li><label for="c-tab-8"><?= $this->getText('Files') ?></label></li>
|
||||||
|
<li><label for="c-tab-9"><?= $this->getText('Logs') ?></label>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="tab-content">
|
||||||
|
<input type="radio" id="c-tab-1" name="tabular-2" checked>
|
||||||
|
<div class="tab">
|
||||||
|
<section class="box w-33 floatLeft">
|
||||||
|
<header><h1><?= $this->getText('Client') ?></h1></header>
|
||||||
|
<div class="inner">
|
||||||
|
<form>
|
||||||
|
<table class="layout w-100">
|
||||||
|
<tr><td><label for="iId"><?= $this->getText('ID', 0, 0); ?></label>
|
||||||
|
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="number" id="iId" min="1" name="id" required></span>
|
||||||
|
<tr><td><label for="iName1"><?= $this->getText('Name1'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iName1" name="name1" placeholder="" required>
|
||||||
|
<tr><td><label for="iName2"><?= $this->getText('Name2'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iName2" name="name2" placeholder="">
|
||||||
|
<tr><td><label for="iName3"><?= $this->getText('Name3'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iName3" name="name3" placeholder="">
|
||||||
|
<tr><td colspan="2"><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<input type="radio" id="c-tab-2" name="tabular-2">
|
||||||
|
<div class="tab">
|
||||||
|
<section class="box w-33 floatLeft">
|
||||||
|
<header><h1><?= $this->getText('Contact') ?></h1></header>
|
||||||
|
<div class="inner">
|
||||||
|
<form>
|
||||||
|
<table class="layout w-100">
|
||||||
|
<tr><td><label for="iCType"><?= $this->getText('Type'); ?></label>
|
||||||
|
<tr><td><select id="iCType" name="actype">
|
||||||
|
<option><?= $this->getText('Email'); ?>
|
||||||
|
<option><?= $this->getText('Fax'); ?>
|
||||||
|
<option><?= $this->getText('Phone'); ?>
|
||||||
|
</select>
|
||||||
|
<tr><td><label for="iCStype"><?= $this->getText('Subtype'); ?></label>
|
||||||
|
<tr><td><select id="iCStype" name="acstype">
|
||||||
|
<option><?= $this->getText('Office'); ?>
|
||||||
|
<option><?= $this->getText('Sales'); ?>
|
||||||
|
<option><?= $this->getText('Purchase'); ?>
|
||||||
|
<option><?= $this->getText('Accounting'); ?>
|
||||||
|
<option><?= $this->getText('Support'); ?>
|
||||||
|
</select>
|
||||||
|
<tr><td><label for="iCInfo"><?= $this->getText('Info'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iCInfo" name="cinfo">
|
||||||
|
<tr><td><label for="iCData"><?= $this->getText('Contact'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iCData" name="cdata">
|
||||||
|
<tr><td colspan="2"><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<input type="radio" id="c-tab-3" name="tabular-2">
|
||||||
|
<div class="tab">
|
||||||
|
<section class="box w-33 floatLeft">
|
||||||
|
<header><h1><?= $this->getText('Address') ?></h1></header>
|
||||||
|
<div class="inner">
|
||||||
|
<form>
|
||||||
|
<table class="layout w-100">
|
||||||
|
<tr><td><label for="iAType"><?= $this->getText('Type'); ?></label>
|
||||||
|
<tr><td><select id="iAType" name="atype">
|
||||||
|
<option><?= $this->getText('Default'); ?>
|
||||||
|
<option><?= $this->getText('Delivery'); ?>
|
||||||
|
<option><?= $this->getText('Invoice'); ?>
|
||||||
|
</select>
|
||||||
|
<tr><td><label for="iAddress"><?= $this->getText('Address'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iAddress" name="address">
|
||||||
|
<tr><td><label for="iZip"><?= $this->getText('Zip'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iZip" name="zip">
|
||||||
|
<tr><td><label for="iCountry"><?= $this->getText('Country'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iCountry" name="country">
|
||||||
|
<tr><td><label for="iAInfo"><?= $this->getText('Info'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iAInfo" name="ainfo">
|
||||||
|
<tr><td><span class="check"><input type="checkbox" id="iDefault" name="default" checked><label for="iDefault"><?= $this->getText('IsDefault'); ?></label></span>
|
||||||
|
<tr><td colspan="2"><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<input type="radio" id="c-tab-4" name="tabular-2">
|
||||||
|
<div class="tab">
|
||||||
|
<section class="box w-33 floatLeft">
|
||||||
|
<header><h1><?= $this->getText('PaymentTerm') ?></h1></header>
|
||||||
|
<div class="inner">
|
||||||
|
<form>
|
||||||
|
<table class="layout w-100">
|
||||||
|
<tr><td><label for="iSource"><?= $this->getText('ID') ?></label>
|
||||||
|
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iSource" name="source" type="text" placeholder=""></span>
|
||||||
|
<tr><td><label for="iSegment"><?= $this->getText('Segment') ?></label>
|
||||||
|
<tr><td><input id="iSegment" name="segment" type="text" placeholder="">
|
||||||
|
<tr><td><label for="iProductgroup"><?= $this->getText('Productgroup') ?></label>
|
||||||
|
<tr><td><input id="iProductgroup" name="productgroup" type="text" placeholder="">
|
||||||
|
<tr><td><label for="iGroup"><?= $this->getText('Group') ?></label>
|
||||||
|
<tr><td><input id="iGroup" name="group" type="text" placeholder="">
|
||||||
|
<tr><td><label for="iArticlegroup"><?= $this->getText('Articlegroup') ?></label>
|
||||||
|
<tr><td><input id="iArticlegroup" name="articlegroup" type="text" placeholder="">
|
||||||
|
<tr><td><label for="iTerm"><?= $this->getText('Type') ?></label>
|
||||||
|
<tr><td><select id="iTerm" name="term" required>
|
||||||
|
<option>
|
||||||
|
</select>
|
||||||
|
<tr><td><span class="check"><input type="checkbox" id="iFreightage" name="freightage"><label for="iFreightage"><?= $this->getText('Freightage') ?></label></span>
|
||||||
|
<tr><td colspan="2"><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<input type="radio" id="c-tab-5" name="tabular-2">
|
||||||
|
<div class="tab">
|
||||||
|
<section class="box w-33 floatLeft">
|
||||||
|
<header><h1><?= $this->getText('Payment') ?></h1></header>
|
||||||
|
<div class="inner">
|
||||||
|
<form>
|
||||||
|
<table class="layout w-100">
|
||||||
|
<tr><td><label for="iACType"><?= $this->getText('Type'); ?></label>
|
||||||
|
<tr><td><select id="iACType" name="actype">
|
||||||
|
<option><?= $this->getText('Wire'); ?>
|
||||||
|
<option><?= $this->getText('Creditcard'); ?>
|
||||||
|
</select>
|
||||||
|
<tr><td colspan="2"><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<input type="radio" id="c-tab-6" name="tabular-2">
|
||||||
|
<div class="tab">
|
||||||
|
<section class="box w-33 floatLeft">
|
||||||
|
<header><h1><?= $this->getText('Price') ?></h1></header>
|
||||||
|
<div class="inner">
|
||||||
|
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||||
|
<table class="layout wf-100">
|
||||||
|
<tbody>
|
||||||
|
<tr><td colspan="2"><label for="iPType"><?= $this->getText('Type') ?></label>
|
||||||
|
<tr><td><select id="iPType" name="ptye">
|
||||||
|
<option>
|
||||||
|
</select><td>
|
||||||
|
<tr><td><label for="iSource"><?= $this->getText('ID') ?></label>
|
||||||
|
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iSource" name="source" type="text" placeholder=""></span>
|
||||||
|
<tr><td><label for="iSegment"><?= $this->getText('Segment') ?></label>
|
||||||
|
<tr><td><input id="iSegment" name="segment" type="text" placeholder="">
|
||||||
|
<tr><td><label for="iProductgroup"><?= $this->getText('Productgroup') ?></label>
|
||||||
|
<tr><td><input id="iProductgroup" name="productgroup" type="text" placeholder="">
|
||||||
|
<tr><td><label for="iGroup"><?= $this->getText('Group') ?></label>
|
||||||
|
<tr><td><input id="iGroup" name="group" type="text" placeholder="">
|
||||||
|
<tr><td><label for="iArticlegroup"><?= $this->getText('Articlegroup') ?></label>
|
||||||
|
<tr><td><input id="iArticlegroup" name="articlegroup" type="text" placeholder="">
|
||||||
|
<tr><td><label for="iPQuantity"><?= $this->getText('Quantity') ?></label>
|
||||||
|
<tr><td><input id="iPQuantity" name="quantity" type="text" placeholder=""><td>
|
||||||
|
<tr><td><label for="iPrice"><?= $this->getText('Price') ?></label>
|
||||||
|
<tr><td><input id="iPrice" name="price" type="number" step="any" min="0" placeholder=""><td>
|
||||||
|
<tr><td><label for="iDiscount"><?= $this->getText('Discount') ?></label>
|
||||||
|
<tr><td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder=""><td>
|
||||||
|
<tr><td><label for="iDiscount"><?= $this->getText('DiscountP') ?></label>
|
||||||
|
<tr><td><input id="iDiscountP" name="discountp" type="number" step="any" min="0" placeholder=""><td>
|
||||||
|
<tr><td><label for="iBonus"><?= $this->getText('Bonus') ?></label>
|
||||||
|
<tr><td><input id="iBonus" name="bonus" type="number" step="any" min="0" placeholder=""><td>
|
||||||
|
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<input type="radio" id="c-tab-7" name="tabular-2">
|
||||||
|
<div class="tab">
|
||||||
|
<section class="box w-33 floatLeft">
|
||||||
|
<header><h1><?= $this->getText('AreaManager') ?></h1></header>
|
||||||
|
<div class="inner">
|
||||||
|
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||||
|
<table class="layout wf-100">
|
||||||
|
<tbody>
|
||||||
|
<tr><td><label for="iManager"><?= $this->getText('AreaManager') ?></label>
|
||||||
|
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iManager" name="source" type="text" placeholder=""></span>
|
||||||
|
<tr><td><label for="iSource"><?= $this->getText('ID') ?></label>
|
||||||
|
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iSource" name="source" type="text" placeholder=""></span>
|
||||||
|
<tr><td><label for="iSegment"><?= $this->getText('Segment') ?></label>
|
||||||
|
<tr><td><input id="iSegment" name="segment" type="text" placeholder="">
|
||||||
|
<tr><td><label for="iProductgroup"><?= $this->getText('Productgroup') ?></label>
|
||||||
|
<tr><td><input id="iProductgroup" name="productgroup" type="text" placeholder="">
|
||||||
|
<tr><td><label for="iGroup"><?= $this->getText('Group') ?></label>
|
||||||
|
<tr><td><input id="iGroup" name="group" type="text" placeholder="">
|
||||||
|
<tr><td><label for="iArticlegroup"><?= $this->getText('Articlegroup') ?></label>
|
||||||
|
<tr><td><input id="iArticlegroup" name="articlegroup" type="text" placeholder="">
|
||||||
|
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<input type="radio" id="c-tab-8" name="tabular-2">
|
||||||
|
<div class="tab">
|
||||||
|
</div>
|
||||||
|
<input type="radio" id="c-tab-9" name="tabular-2">
|
||||||
|
<div class="tab">
|
||||||
|
<?php
|
||||||
|
$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);
|
||||||
|
?>
|
||||||
|
<div class="box w-100">
|
||||||
|
<table class="table">
|
||||||
|
<caption><?= $this->getText('Logs') ?></caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td>IP
|
||||||
|
<td><?= $this->getText('ID', 0, 0); ?>
|
||||||
|
<td><?= $this->getText('Name'); ?>
|
||||||
|
<td class="wf-100"><?= $this->getText('Log'); ?>
|
||||||
|
<td><?= $this->getText('Date'); ?>
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<td colspan="6"><?= $footerView->render(); ?>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td><?= $this->request->getOrigin(); ?>
|
||||||
|
<td><?= $this->request->getAccount(); ?>
|
||||||
|
<td><?= $this->request->getAccount(); ?>
|
||||||
|
<td>Creating customer
|
||||||
|
<td><?= (new \DateTime('now'))->format('Y-m-d H:i:s') ?>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
89
Theme/Backend/clients-list.tpl.php
Normal file
89
Theme/Backend/clients-list.tpl.php
Normal file
|
|
@ -0,0 +1,89 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.1
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
|
||||||
|
$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);
|
||||||
|
|
||||||
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
|
<!-- Hover may be better here?!?!?!
|
||||||
|
<section class="box w-100">
|
||||||
|
<header><h1><?= $this->getText('Client') ?></h1></header>
|
||||||
|
<div class="inner floatLeft wf-100">
|
||||||
|
<form class="wf-33 floatLeft">
|
||||||
|
<table class="layout w-100">
|
||||||
|
<tr><td><label for="iName1"><?= $this->getText('Name1'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iName1" disabled>
|
||||||
|
<tr><td><label for="iName2"><?= $this->getText('Name2'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iName2" disabled>
|
||||||
|
<tr><td><label for="iName3"><?= $this->getText('Name3'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iName3" disabled>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
<form class="wf-33 floatLeft">
|
||||||
|
<table class="layout w-100">
|
||||||
|
<tr><td><label for="iAddress"><?= $this->getText('Address'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iAddress" disabled>
|
||||||
|
<tr><td><label for="iZip"><?= $this->getText('Zip'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iZip" disabled>
|
||||||
|
<tr><td><label for="iCountry"><?= $this->getText('Country'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iCountry" disabled>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
<form class="wf-33 floatLeft">
|
||||||
|
<table class="layout w-100">
|
||||||
|
<tr><td><label for="iPhone"><?= $this->getText('Phone'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iPhone" disabled>
|
||||||
|
<tr><td><label for="iFax"><?= $this->getText('Fax'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iFax" disabled>
|
||||||
|
<tr><td><label for="iEmail"><?= $this->getText('Email'); ?></label>
|
||||||
|
<tr><td><input type="text" id="iEmail" disabled>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="box wf-100">
|
||||||
|
<table class="table">
|
||||||
|
<caption><?= $this->getText('Clients') ?></caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td><?= $this->getText('ID', 0, 0); ?>
|
||||||
|
<td><?= $this->getText('Name1'); ?>
|
||||||
|
<td><?= $this->getText('Name2'); ?>
|
||||||
|
<td class="wf-100"><?= $this->getText('Name3'); ?>
|
||||||
|
<td><?= $this->getText('City'); ?>
|
||||||
|
<td><?= $this->getText('Zip'); ?>
|
||||||
|
<td><?= $this->getText('Address'); ?>
|
||||||
|
<td><?= $this->getText('Country'); ?>
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<td colspan="8"><?= $footerView->render(); ?>
|
||||||
|
<tbody>
|
||||||
|
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
<?php if($count === 0) : ?>
|
||||||
|
<tr><td colspan="8" class="empty"><?= $this->getText('Empty', 0, 0); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
19
Theme/Backend/clients-single.tpl.php
Normal file
19
Theme/Backend/clients-single.tpl.php
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.1
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* @var \phpOMS\Views\View $this
|
||||||
|
*/
|
||||||
|
echo $this->getData('nav')->render(); ?>
|
||||||
44
info.json
Normal file
44
info.json
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
{
|
||||||
|
"name": {
|
||||||
|
"id": 1003100000,
|
||||||
|
"internal": "ClientManagement",
|
||||||
|
"external": "OMS Client Management"
|
||||||
|
},
|
||||||
|
"version": "1.0.0",
|
||||||
|
"requirements": {
|
||||||
|
"phpOMS": "1.0.0",
|
||||||
|
"phpOMS-db": "1.0.0"
|
||||||
|
},
|
||||||
|
"creator": {
|
||||||
|
"name": "Orange Management",
|
||||||
|
"website": "www.spl1nes.com"
|
||||||
|
},
|
||||||
|
"description": "The buisness module.",
|
||||||
|
"directory": "ClientManagement",
|
||||||
|
"dependencies": {
|
||||||
|
"Admin" : "1.0.0"
|
||||||
|
},
|
||||||
|
"providing": {
|
||||||
|
"Navigation": "*"
|
||||||
|
},
|
||||||
|
"load": [
|
||||||
|
{
|
||||||
|
"pid": [
|
||||||
|
"25a25434541197e2ca3ff0164a8b02173c5fcd8b"
|
||||||
|
],
|
||||||
|
"type": 4,
|
||||||
|
"for": 0,
|
||||||
|
"from": "ClientManagement",
|
||||||
|
"file": "ClientManagement"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pid": [
|
||||||
|
"754a08ddf8bcb1cf22f310f09206dd783d42f7dd"
|
||||||
|
],
|
||||||
|
"type": 5,
|
||||||
|
"from": "ClientManagement",
|
||||||
|
"for": "Navigation",
|
||||||
|
"file": "Navigation"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user