mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-16 16:28:41 +00:00
Organization + calendar fixes/extensions
This commit is contained in:
parent
d236377f72
commit
ae336cfe4a
|
|
@ -29,7 +29,7 @@
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"id": 1004702101,
|
"id": 1004702101,
|
||||||
"pid": "88fc57eb9222e9a8eab2c6b165cb93eac7891f2e",
|
"pid": "bed7df3aff1a2bcb0b5e761764a93f84c2793daf",
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "List",
|
"name": "List",
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 1004702102,
|
"id": 1004702102,
|
||||||
"pid": "88fc57eb9222e9a8eab2c6b165cb93eac7891f2e",
|
"pid": "bed7df3aff1a2bcb0b5e761764a93f84c2793daf",
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Create",
|
"name": "Create",
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"id": 1004703101,
|
"id": 1004703101,
|
||||||
"pid": "15cb2fef4a6e948711453fc1d5522842ee9452c4",
|
"pid": "fab21c089971de13f680a30c8fdd0a8edc97af6a",
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "List",
|
"name": "List",
|
||||||
|
|
@ -90,7 +90,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 1004703102,
|
"id": 1004703102,
|
||||||
"pid": "15cb2fef4a6e948711453fc1d5522842ee9452c4",
|
"pid": "fab21c089971de13f680a30c8fdd0a8edc97af6a",
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Create",
|
"name": "Create",
|
||||||
|
|
@ -121,7 +121,7 @@
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"id": 1004704101,
|
"id": 1004704101,
|
||||||
"pid": "be240e5a87cf255e73a2ae91aaf4af5930a3604b",
|
"pid": "67b1a05950026df723a6c35c7801234c978e85f2",
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "List",
|
"name": "List",
|
||||||
|
|
@ -136,7 +136,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 1004704102,
|
"id": 1004704102,
|
||||||
"pid": "be240e5a87cf255e73a2ae91aaf4af5930a3604b",
|
"pid": "67b1a05950026df723a6c35c7801234c978e85f2",
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Create",
|
"name": "Create",
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,9 @@ use phpOMS\DataStorage\Database\Pool;
|
||||||
*/
|
*/
|
||||||
class Navigation
|
class Navigation
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public static function install(Pool $dbPool)
|
public static function install(Pool $dbPool)
|
||||||
{
|
{
|
||||||
$navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
$navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
||||||
|
|
|
||||||
|
|
@ -45,12 +45,9 @@ class Installer extends InstallerAbstract
|
||||||
$dbPool->get('core')->con->prepare(
|
$dbPool->get('core')->con->prepare(
|
||||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'organization_unit` (
|
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'organization_unit` (
|
||||||
`organization_unit_id` int(11) NOT NULL AUTO_INCREMENT,
|
`organization_unit_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`organization_unit_status` tinyint(2) DEFAULT NULL,
|
|
||||||
`organization_unit_matchcode` varchar(50) DEFAULT NULL,
|
|
||||||
`organization_unit_name` varchar(50) DEFAULT NULL,
|
`organization_unit_name` varchar(50) DEFAULT NULL,
|
||||||
`organization_unit_description` varchar(255) DEFAULT NULL,
|
`organization_unit_description` varchar(255) DEFAULT NULL,
|
||||||
`organization_unit_parent` int(11) DEFAULT NULL,
|
`organization_unit_parent` int(11) DEFAULT NULL,
|
||||||
`organization_unit_created` datetime DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`organization_unit_id`),
|
PRIMARY KEY (`organization_unit_id`),
|
||||||
KEY `organization_unit_parent` (`organization_unit_parent`)
|
KEY `organization_unit_parent` (`organization_unit_parent`)
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
||||||
|
|
@ -80,6 +77,22 @@ class Installer extends InstallerAbstract
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'organization_department_ibfk_2` FOREIGN KEY (`organization_department_unit`) REFERENCES `' . $dbPool->get('core')->prefix . 'organization_unit` (`organization_unit_id`);'
|
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'organization_department_ibfk_2` FOREIGN KEY (`organization_department_unit`) REFERENCES `' . $dbPool->get('core')->prefix . 'organization_unit` (`organization_unit_id`);'
|
||||||
)->execute();
|
)->execute();
|
||||||
|
|
||||||
|
$dbPool->get('core')->con->prepare(
|
||||||
|
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'organization_position` (
|
||||||
|
`organization_position_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`organization_position_name` varchar(50) DEFAULT NULL,
|
||||||
|
`organization_position_description` varchar(255) DEFAULT NULL,
|
||||||
|
`organization_position_parent` int(11) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`organization_position_id`),
|
||||||
|
KEY `organization_position_parent` (`organization_position_parent`)
|
||||||
|
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
||||||
|
)->execute();
|
||||||
|
|
||||||
|
$dbPool->get('core')->con->prepare(
|
||||||
|
'ALTER TABLE `' . $dbPool->get('core')->prefix . 'organization_position`
|
||||||
|
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'organization_position_ibfk_1` FOREIGN KEY (`organization_position_parent`) REFERENCES `' . $dbPool->get('core')->prefix . 'organization_position` (`organization_position_id`);'
|
||||||
|
)->execute();
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
$dbPool->get('core')->con->prepare(
|
||||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'organization_address` (
|
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'organization_address` (
|
||||||
`organization_address_id` int(11) NOT NULL AUTO_INCREMENT,
|
`organization_address_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
|
@ -104,8 +117,8 @@ class Installer extends InstallerAbstract
|
||||||
)->execute();
|
)->execute();
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
$dbPool->get('core')->con->prepare(
|
||||||
'INSERT INTO `' . $dbPool->get('core')->prefix . 'organization_unit` (`organization_unit_status`, `organization_unit_matchcode`, `organization_unit_name`, `organization_unit_description`, `organization_unit_parent`) VALUES
|
'INSERT INTO `' . $dbPool->get('core')->prefix . 'organization_unit` (`organization_unit_name`, `organization_unit_description`, `organization_unit_parent`) VALUES
|
||||||
(1, \'default\', \'Default\', \'Default unit.\', NULL);'
|
(\'Default\', \'Default unit.\', NULL);'
|
||||||
)->execute();
|
)->execute();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -98,17 +98,17 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static $routes = [
|
protected static $routes = [
|
||||||
'^.*/backend/business/unit/list.*$' => [['dest' => '\Modules\Organization\Controller:viewUnitList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
'^.*/backend/organization/unit/list.*$' => [['dest' => '\Modules\Organization\Controller:viewUnitList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||||
'^.*/backend/business/unit/profile.*$' => [['dest' => '\Modules\Organization\Controller:viewUnitProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
'^.*/backend/organization/unit/profile.*$' => [['dest' => '\Modules\Organization\Controller:viewUnitProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||||
'^.*/backend/business/unit/create.*$' => [['dest' => '\Modules\Organization\Controller:viewUnitCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
'^.*/backend/organization/unit/create.*$' => [['dest' => '\Modules\Organization\Controller:viewUnitCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||||
|
|
||||||
'^.*/backend/business/department/list.*$' => [['dest' => '\Modules\Organization\Controller:viewDepartmentList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
'^.*/backend/organization/department/list.*$' => [['dest' => '\Modules\Organization\Controller:viewDepartmentList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||||
'^.*/backend/business/department/profile.*$' => [['dest' => '\Modules\Organization\Controller:viewDepartmentProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
'^.*/backend/organization/department/profile.*$' => [['dest' => '\Modules\Organization\Controller:viewDepartmentProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||||
'^.*/backend/business/department/create.*$' => [['dest' => '\Modules\Organization\Controller:viewDepartmentCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
'^.*/backend/organization/department/create.*$' => [['dest' => '\Modules\Organization\Controller:viewDepartmentCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||||
|
|
||||||
'^.*/backend/business/position/list.*$' => [['dest' => '\Modules\Organization\Controller:viewPositionList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
'^.*/backend/organization/position/list.*$' => [['dest' => '\Modules\Organization\Controller:viewPositionList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||||
'^.*/backend/business/position/profile.*$' => [['dest' => '\Modules\Organization\Controller:viewPositionProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
'^.*/backend/organization/position/profile.*$' => [['dest' => '\Modules\Organization\Controller:viewPositionProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||||
'^.*/backend/business/position/create.*$' => [['dest' => '\Modules\Organization\Controller:viewPositionCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
'^.*/backend/organization/position/create.*$' => [['dest' => '\Modules\Organization\Controller:viewPositionCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,9 @@ class Department
|
||||||
|
|
||||||
protected $name = '';
|
protected $name = '';
|
||||||
|
|
||||||
protected $parent = 0;
|
protected $parent = null;
|
||||||
|
|
||||||
protected $unit = 0;
|
protected $unit = 1;
|
||||||
|
|
||||||
protected $description = '';
|
protected $description = '';
|
||||||
|
|
||||||
|
|
@ -37,18 +37,38 @@ class Department
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getParent() : int
|
public function setName(string $name)
|
||||||
|
{
|
||||||
|
return $this->name = $name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getParent()
|
||||||
{
|
{
|
||||||
return $this->parent;
|
return $this->parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setParent(int $parent)
|
||||||
|
{
|
||||||
|
$this->parent = $parent;
|
||||||
|
}
|
||||||
|
|
||||||
public function getUnit() : int
|
public function getUnit() : int
|
||||||
{
|
{
|
||||||
return $this->parent;
|
return $this->unit;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setUnit(int $unit)
|
||||||
|
{
|
||||||
|
$this->unit = $unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDescription() : string
|
public function getDescription() : string
|
||||||
{
|
{
|
||||||
return $this->description;
|
return $this->description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setDescription(string $desc)
|
||||||
|
{
|
||||||
|
$this->description = $desc;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
61
Models/Position.php
Normal file
61
Models/Position.php
Normal file
|
|
@ -0,0 +1,61 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\Organization\Models;
|
||||||
|
|
||||||
|
class Position
|
||||||
|
{
|
||||||
|
private $id = 0;
|
||||||
|
|
||||||
|
private $name = '';
|
||||||
|
|
||||||
|
private $parent = null;
|
||||||
|
|
||||||
|
private $description = '';
|
||||||
|
|
||||||
|
public function getId() : int
|
||||||
|
{
|
||||||
|
return $this->id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getName() : string
|
||||||
|
{
|
||||||
|
return $this->name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setName(string $name)
|
||||||
|
{
|
||||||
|
$this->name = $name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getParent()
|
||||||
|
{
|
||||||
|
return $this->parent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setParent(int $parent) {
|
||||||
|
$this->parent = $parent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDescription() : string
|
||||||
|
{
|
||||||
|
return $this->description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setDescription(string $desc)
|
||||||
|
{
|
||||||
|
$this->description = $desc;
|
||||||
|
}
|
||||||
|
}
|
||||||
51
Models/PositionMapper.php
Normal file
51
Models/PositionMapper.php
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\Organization\Models;
|
||||||
|
|
||||||
|
use phpOMS\DataStorage\Database\DataMapperAbstract;
|
||||||
|
|
||||||
|
class PositionMapper extends DataMapperAbstract
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Columns.
|
||||||
|
*
|
||||||
|
* @var array<string, array>
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
protected static $columns = [
|
||||||
|
'organization_position_id' => ['name' => 'organization_position_id', 'type' => 'int', 'internal' => 'id'],
|
||||||
|
'organization_position_name' => ['name' => 'organization_position_name', 'type' => 'string', 'internal' => 'name'],
|
||||||
|
'organization_position_description' => ['name' => 'organization_position_description', 'type' => 'string', 'internal' => 'description'],
|
||||||
|
'organization_position_parent' => ['name' => 'organization_position_parent', 'type' => 'int', 'internal' => 'parent'],
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Primary table.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
protected static $table = 'organization_position';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Primary field name.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
protected static $primaryField = 'organization_position_id';
|
||||||
|
}
|
||||||
|
|
@ -17,13 +17,13 @@ namespace Modules\Organization\Models;
|
||||||
|
|
||||||
class Unit
|
class Unit
|
||||||
{
|
{
|
||||||
protected $id = 0;
|
private $id = 0;
|
||||||
|
|
||||||
protected $name = '';
|
private $name = '';
|
||||||
|
|
||||||
protected $parent = 0;
|
private $parent = 0;
|
||||||
|
|
||||||
protected $description = '';
|
private $description = '';
|
||||||
|
|
||||||
public function getId() : int
|
public function getId() : int
|
||||||
{
|
{
|
||||||
|
|
@ -35,13 +35,27 @@ class Unit
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setName(string $name)
|
||||||
|
{
|
||||||
|
$this->name = $name;
|
||||||
|
}
|
||||||
|
|
||||||
public function getParent() : int
|
public function getParent() : int
|
||||||
{
|
{
|
||||||
return $this->parent;
|
return $this->parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setParent(int $parent) {
|
||||||
|
$this->parent = $parent;
|
||||||
|
}
|
||||||
|
|
||||||
public function getDescription() : string
|
public function getDescription() : string
|
||||||
{
|
{
|
||||||
return $this->description;
|
return $this->description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setDescription(string $desc)
|
||||||
|
{
|
||||||
|
$this->description = $desc;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,12 +28,9 @@ class UnitMapper extends DataMapperAbstract
|
||||||
*/
|
*/
|
||||||
protected static $columns = [
|
protected static $columns = [
|
||||||
'organization_unit_id' => ['name' => 'organization_unit_id', 'type' => 'int', 'internal' => 'id'],
|
'organization_unit_id' => ['name' => 'organization_unit_id', 'type' => 'int', 'internal' => 'id'],
|
||||||
'organization_unit_status' => ['name' => 'organization_unit_status', 'type' => 'int', 'internal' => 'status'],
|
|
||||||
'organization_unit_matchcode' => ['name' => 'organization_unit_matchcode', 'type' => 'string', 'internal' => 'matchcode'],
|
|
||||||
'organization_unit_name' => ['name' => 'organization_unit_name', 'type' => 'string', 'internal' => 'name'],
|
'organization_unit_name' => ['name' => 'organization_unit_name', 'type' => 'string', 'internal' => 'name'],
|
||||||
'organization_unit_description' => ['name' => 'organization_unit_description', 'type' => 'string', 'internal' => 'description'],
|
'organization_unit_description' => ['name' => 'organization_unit_description', 'type' => 'string', 'internal' => 'description'],
|
||||||
'organization_unit_parent' => ['name' => 'organization_unit_parent', 'type' => 'int', 'internal' => 'parent'],
|
'organization_unit_parent' => ['name' => 'organization_unit_parent', 'type' => 'int', 'internal' => 'parent'],
|
||||||
'organization_unit_created' => ['name' => 'organization_unit_created', 'type' => 'DateTime', 'internal' => 'createdAt'],
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -51,12 +48,4 @@ class UnitMapper extends DataMapperAbstract
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static $primaryField = 'organization_unit_id';
|
protected static $primaryField = 'organization_unit_id';
|
||||||
|
|
||||||
/**
|
|
||||||
* Created at column
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
protected static $createdAt = 'organization_unit_created';
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,18 +20,18 @@
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<section class="box w-33">
|
<section class="box w-33">
|
||||||
<h1><?= $this->l11n->lang['Business']['Department']; ?></h1>
|
<h1><?= $this->l11n->lang['Organization']['Department']; ?></h1>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<form>
|
<form>
|
||||||
<table class="layout wf-100">
|
<table class="layout wf-100">
|
||||||
<tr><td><label for="iName"><?= $this->l11n->lang['Business']['Name']; ?></label>
|
<tr><td><label for="iName"><?= $this->l11n->lang['Organization']['Name']; ?></label>
|
||||||
<tr><td><input type="text" name="name" id="iName" placeholder=" R&D" required>
|
<tr><td><input type="text" name="name" id="iName" placeholder=" R&D" required>
|
||||||
<tr><td><label for="iParent"><?= $this->l11n->lang['Business']['Parent']; ?></label>
|
<tr><td><label for="iParent"><?= $this->l11n->lang['Organization']['Parent']; ?></label>
|
||||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="text" name="parent" id="iParent"></span>
|
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="text" name="parent" id="iParent"></span>
|
||||||
<tr><td><label for="iUnit"><?= $this->l11n->lang['Business']['Unit']; ?></label>
|
<tr><td><label for="iUnit"><?= $this->l11n->lang['Organization']['Unit']; ?></label>
|
||||||
<tr><td><select name="unit" id="iUnit">
|
<tr><td><select name="unit" id="iUnit">
|
||||||
</select>
|
</select>
|
||||||
<tr><td><label for="iDescription"><?= $this->l11n->lang['Business']['Description']; ?></label>
|
<tr><td><label for="iDescription"><?= $this->l11n->lang['Organization']['Description']; ?></label>
|
||||||
<tr><td><textarea name="description" id="iDescription" placeholder=""></textarea>
|
<tr><td><textarea name="description" id="iDescription" placeholder=""></textarea>
|
||||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Create'] ?>">
|
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Create'] ?>">
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -28,13 +28,13 @@ echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<section class="box w-100">
|
<section class="box w-100">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<caption><?= $this->l11n->lang['Business']['Departments']; ?></caption>
|
<caption><?= $this->l11n->lang['Organization']['Departments']; ?></caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $this->l11n->lang[0]['ID']; ?>
|
<td><?= $this->l11n->lang[0]['ID']; ?>
|
||||||
<td class="wf-100"><?= $this->l11n->lang['Business']['Name']; ?>
|
<td class="wf-100"><?= $this->l11n->lang['Organization']['Name']; ?>
|
||||||
<td><?= $this->l11n->lang['Business']['Parent']; ?>
|
<td><?= $this->l11n->lang['Organization']['Parent']; ?>
|
||||||
<td><?= $this->l11n->lang['Business']['Unit']; ?>
|
<td><?= $this->l11n->lang['Organization']['Unit']; ?>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr><td colspan="4"><?= $footerView->render(); ?>
|
<tr><td colspan="4"><?= $footerView->render(); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
|
||||||
|
|
@ -20,20 +20,20 @@
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<section class="box w-33">
|
<section class="box w-33">
|
||||||
<h1><?= $this->l11n->lang['Business']['Position']; ?></h1>
|
<h1><?= $this->l11n->lang['Organization']['Position']; ?></h1>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<form>
|
<form>
|
||||||
<table class="layout wf-100">
|
<table class="layout wf-100">
|
||||||
<tr><td><label for="iName"><?= $this->l11n->lang['Business']['Name']; ?></label>
|
<tr><td><label for="iName"><?= $this->l11n->lang['Organization']['Name']; ?></label>
|
||||||
<tr><td><input type="text" name="name" id="iName" placeholder=" Orange Management" required>
|
<tr><td><input type="text" name="name" id="iName" placeholder=" Orange Management" required>
|
||||||
<tr><td><label for="iParent"><?= $this->l11n->lang['Business']['Parent']; ?></label>
|
<tr><td><label for="iParent"><?= $this->l11n->lang['Organization']['Parent']; ?></label>
|
||||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="text" name="parent" id="iParent"></span>
|
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="text" name="parent" id="iParent"></span>
|
||||||
<tr><td><label for="iStatus"><?= $this->l11n->lang['Business']['Status']; ?></label>
|
<tr><td><label for="iStatus"><?= $this->l11n->lang['Organization']['Status']; ?></label>
|
||||||
<tr><td><select name="status" id="iStatus">
|
<tr><td><select name="status" id="iStatus">
|
||||||
<option><?= $this->l11n->lang['Business']['Active']; ?>
|
<option><?= $this->l11n->lang['Organization']['Active']; ?>
|
||||||
<option><?= $this->l11n->lang['Business']['Inactive']; ?>
|
<option><?= $this->l11n->lang['Organization']['Inactive']; ?>
|
||||||
</select>
|
</select>
|
||||||
<tr><td><label for="iDescription"><?= $this->l11n->lang['Business']['Description']; ?></label>
|
<tr><td><label for="iDescription"><?= $this->l11n->lang['Organization']['Description']; ?></label>
|
||||||
<tr><td><textarea name="description" id="iDescription" placeholder=""></textarea>
|
<tr><td><textarea name="description" id="iDescription" placeholder=""></textarea>
|
||||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Create'] ?>">
|
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Create'] ?>">
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -28,12 +28,12 @@ echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<section class="box w-100">
|
<section class="box w-100">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<caption><?= $this->l11n->lang['Business']['Positions']; ?></caption>
|
<caption><?= $this->l11n->lang['Organization']['Positions']; ?></caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $this->l11n->lang[0]['ID']; ?>
|
<td><?= $this->l11n->lang[0]['ID']; ?>
|
||||||
<td class="wf-100"><?= $this->l11n->lang['Business']['Name']; ?>
|
<td class="wf-100"><?= $this->l11n->lang['Organization']['Name']; ?>
|
||||||
<td><?= $this->l11n->lang['Business']['Parent']; ?>
|
<td><?= $this->l11n->lang['Organization']['Parent']; ?>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr><td colspan="3"><?= $footerView->render(); ?>
|
<tr><td colspan="3"><?= $footerView->render(); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
|
||||||
|
|
@ -22,20 +22,20 @@ $unit = $this->getData('unit');
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<section class="box w-33">
|
<section class="box w-33">
|
||||||
<h1><?= $this->l11n->lang['Business']['Position']; ?></h1>
|
<h1><?= $this->l11n->lang['Organization']['Position']; ?></h1>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<form>
|
<form>
|
||||||
<table class="layout wf-100">
|
<table class="layout wf-100">
|
||||||
<tr><td><label for="iName"><?= $this->l11n->lang['Business']['Name']; ?></label>
|
<tr><td><label for="iName"><?= $this->l11n->lang['Organization']['Name']; ?></label>
|
||||||
<tr><td><input type="text" name="name" id="iName" value="<?= $unit->getName(); ?>">
|
<tr><td><input type="text" name="name" id="iName" value="<?= $unit->getName(); ?>">
|
||||||
<tr><td><label for="iParent"><?= $this->l11n->lang['Business']['Parent']; ?></label>
|
<tr><td><label for="iParent"><?= $this->l11n->lang['Organization']['Parent']; ?></label>
|
||||||
<tr><td><input type="text" name="parent" id="iParent" value="<?= $unit->getParent(); ?>">
|
<tr><td><input type="text" name="parent" id="iParent" value="<?= $unit->getParent(); ?>">
|
||||||
<tr><td><label for="iStatus"><?= $this->l11n->lang['Business']['Status']; ?></label>
|
<tr><td><label for="iStatus"><?= $this->l11n->lang['Organization']['Status']; ?></label>
|
||||||
<tr><td><select name="status" id="iStatus">
|
<tr><td><select name="status" id="iStatus">
|
||||||
<option><?= $this->l11n->lang['Business']['Active']; ?>
|
<option><?= $this->l11n->lang['Organization']['Active']; ?>
|
||||||
<option><?= $this->l11n->lang['Business']['Inactive']; ?>
|
<option><?= $this->l11n->lang['Organization']['Inactive']; ?>
|
||||||
</select>
|
</select>
|
||||||
<tr><td><label for="iDescription"><?= $this->l11n->lang['Business']['Description']; ?></label>
|
<tr><td><label for="iDescription"><?= $this->l11n->lang['Organization']['Description']; ?></label>
|
||||||
<tr><td><textarea name="description" id="iDescription"><?= $unit->getDescription(); ?></textarea>
|
<tr><td><textarea name="description" id="iDescription"><?= $unit->getDescription(); ?></textarea>
|
||||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Save'] ?>">
|
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Save'] ?>">
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -20,20 +20,20 @@
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<section class="box w-33">
|
<section class="box w-33">
|
||||||
<h1><?= $this->l11n->lang['Business']['Unit']; ?></h1>
|
<h1><?= $this->l11n->lang['Organization']['Unit']; ?></h1>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<form>
|
<form>
|
||||||
<table class="layout wf-100">
|
<table class="layout wf-100">
|
||||||
<tr><td><label for="iName"><?= $this->l11n->lang['Business']['Name']; ?></label>
|
<tr><td><label for="iName"><?= $this->l11n->lang['Organization']['Name']; ?></label>
|
||||||
<tr><td><input type="text" name="name" id="iName" placeholder=" Orange Management" required>
|
<tr><td><input type="text" name="name" id="iName" placeholder=" Orange Management" required>
|
||||||
<tr><td><label for="iParent"><?= $this->l11n->lang['Business']['Parent']; ?></label>
|
<tr><td><label for="iParent"><?= $this->l11n->lang['Organization']['Parent']; ?></label>
|
||||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="text" name="parent" id="iParent"></span>
|
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="text" name="parent" id="iParent"></span>
|
||||||
<tr><td><label for="iStatus"><?= $this->l11n->lang['Business']['Status']; ?></label>
|
<tr><td><label for="iStatus"><?= $this->l11n->lang['Organization']['Status']; ?></label>
|
||||||
<tr><td><select name="status" id="iStatus">
|
<tr><td><select name="status" id="iStatus">
|
||||||
<option><?= $this->l11n->lang['Business']['Active']; ?>
|
<option><?= $this->l11n->lang['Organization']['Active']; ?>
|
||||||
<option><?= $this->l11n->lang['Business']['Inactive']; ?>
|
<option><?= $this->l11n->lang['Organization']['Inactive']; ?>
|
||||||
</select>
|
</select>
|
||||||
<tr><td><label for="iDescription"><?= $this->l11n->lang['Business']['Description']; ?></label>
|
<tr><td><label for="iDescription"><?= $this->l11n->lang['Organization']['Description']; ?></label>
|
||||||
<tr><td><textarea name="description" id="iDescription" placeholder=""></textarea>
|
<tr><td><textarea name="description" id="iDescription" placeholder=""></textarea>
|
||||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Create'] ?>">
|
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Create'] ?>">
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -28,12 +28,12 @@ echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<section class="box w-100">
|
<section class="box w-100">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<caption><?= $this->l11n->lang['Business']['Units']; ?></caption>
|
<caption><?= $this->l11n->lang['Organization']['Units']; ?></caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $this->l11n->lang[0]['ID']; ?>
|
<td><?= $this->l11n->lang[0]['ID']; ?>
|
||||||
<td class="wf-100"><?= $this->l11n->lang['Business']['Name']; ?>
|
<td class="wf-100"><?= $this->l11n->lang['Organization']['Name']; ?>
|
||||||
<td><?= $this->l11n->lang['Business']['Parent']; ?>
|
<td><?= $this->l11n->lang['Organization']['Parent']; ?>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr><td colspan="3"><?= $footerView->render(); ?>
|
<tr><td colspan="3"><?= $footerView->render(); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
|
||||||
|
|
@ -22,20 +22,20 @@ $unit = $this->getData('unit');
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<section class="box w-33">
|
<section class="box w-33">
|
||||||
<h1><?= $this->l11n->lang['Business']['Unit']; ?></h1>
|
<h1><?= $this->l11n->lang['Organization']['Unit']; ?></h1>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<form>
|
<form>
|
||||||
<table class="layout wf-100">
|
<table class="layout wf-100">
|
||||||
<tr><td><label for="iName"><?= $this->l11n->lang['Business']['Name']; ?></label>
|
<tr><td><label for="iName"><?= $this->l11n->lang['Organization']['Name']; ?></label>
|
||||||
<tr><td><input type="text" name="name" id="iName" value="<?= $unit->getName(); ?>">
|
<tr><td><input type="text" name="name" id="iName" value="<?= $unit->getName(); ?>">
|
||||||
<tr><td><label for="iParent"><?= $this->l11n->lang['Business']['Parent']; ?></label>
|
<tr><td><label for="iParent"><?= $this->l11n->lang['Organization']['Parent']; ?></label>
|
||||||
<tr><td><input type="text" name="parent" id="iParent" value="<?= $unit->getParent(); ?>">
|
<tr><td><input type="text" name="parent" id="iParent" value="<?= $unit->getParent(); ?>">
|
||||||
<tr><td><label for="iStatus"><?= $this->l11n->lang['Business']['Status']; ?></label>
|
<tr><td><label for="iStatus"><?= $this->l11n->lang['Organization']['Status']; ?></label>
|
||||||
<tr><td><select name="status" id="iStatus">
|
<tr><td><select name="status" id="iStatus">
|
||||||
<option><?= $this->l11n->lang['Business']['Active']; ?>
|
<option><?= $this->l11n->lang['Organization']['Active']; ?>
|
||||||
<option><?= $this->l11n->lang['Business']['Inactive']; ?>
|
<option><?= $this->l11n->lang['Organization']['Inactive']; ?>
|
||||||
</select>
|
</select>
|
||||||
<tr><td><label for="iDescription"><?= $this->l11n->lang['Business']['Description']; ?></label>
|
<tr><td><label for="iDescription"><?= $this->l11n->lang['Organization']['Description']; ?></label>
|
||||||
<tr><td><textarea name="description" id="iDescription"><?= $unit->getDescription(); ?></textarea>
|
<tr><td><textarea name="description" id="iDescription"><?= $unit->getDescription(); ?></textarea>
|
||||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Save'] ?>">
|
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Save'] ?>">
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user