diff --git a/Admin/Installer.php b/Admin/Installer.php index 9bcef0e..7cb2f0b 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -65,13 +65,17 @@ class Installer extends InstallerAbstract `hr_staff_history_start` datetime DEFAULT NULL, `hr_staff_history_end` datetime DEFAULT NULL, PRIMARY KEY (`hr_staff_history_id`), - KEY `hr_staff_history_staff` (`hr_staff_history_staff`) + KEY `hr_staff_history_staff` (`hr_staff_history_staff`), + KEY `hr_staff_history_department` (`hr_staff_history_department`), + KEY `hr_staff_history_position` (`hr_staff_history_position`) )ENGINE=InnoDB DEFAULT CHARSET=utf8;' )->execute(); $dbPool->get('core')->con->prepare( 'ALTER TABLE `' . $dbPool->get('core')->prefix . 'hr_staff_history` - ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'hr_staff_history_ibfk_1` FOREIGN KEY (`hr_staff_history_staff`) REFERENCES `' . $dbPool->get('core')->prefix . 'hr_staff` (`hr_staff_id`);' + ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'hr_staff_history_ibfk_1` FOREIGN KEY (`hr_staff_history_staff`) REFERENCES `' . $dbPool->get('core')->prefix . 'hr_staff` (`hr_staff_id`), + ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'hr_staff_history_ibfk_2` FOREIGN KEY (`hr_staff_history_department`) REFERENCES `' . $dbPool->get('core')->prefix . 'organization_department` (`organization_department_id`), + ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'hr_staff_history_ibfk_3` FOREIGN KEY (`hr_staff_history_position`) REFERENCES `' . $dbPool->get('core')->prefix . 'organization_department` (`organization_position_id`);' )->execute(); $dbPool->get('core')->con->prepare( diff --git a/Theme/backend/staff-single.tpl.php b/Theme/backend/staff-single.tpl.php index ac22ab8..a99f118 100644 --- a/Theme/backend/staff-single.tpl.php +++ b/Theme/backend/staff-single.tpl.php @@ -14,3 +14,146 @@ * @link http://orange-management.com */ echo $this->getData('nav')->render(); ?> + +
+

l11n->lang['HumanResourceManagement']['Employee']; ?>

+
+ + + + + + + + + + + + + + + +
l11n->lang['HumanResourceManagement']['Name']; ?> + getName3(); ?>, getName1(); ?> +
l11n->lang['HumanResourceManagement']['Position']; ?> + Sailor +
l11n->lang['HumanResourceManagement']['Department']; ?> + Sailor +
l11n->lang['HumanResourceManagement']['Birthday']; ?> + 06.09.1934 +
l11n->lang['HumanResourceManagement']['Email']; ?> + getEmail(); ?> +
Address + +
Private + SMALLSYS INC
795 E DRAGRAM
TUCSON AZ 85705
USA +
Work + SMALLSYS INC
795 E DRAGRAM
TUCSON AZ 85705
USA +
l11n->lang['HumanResourceManagement']['Phone']; ?> + +
Private + +01 12345-4567 +
Mobile + +01 12345-4567 +
Work + +01 12345-4567 +
l11n->lang['HumanResourceManagement']['Status']; ?> + getStatus(); ?> +
+ +
+
+ + +

l11n->lang['HumanResourceManagement']['Overview']; ?>

+
+ + + + + + + +
l11n->lang['HumanResourceManagement']['Start']; ?> + getName3(); ?> +
l11n->lang['HumanResourceManagement']['End']; ?> + getName3(); ?> +
l11n->lang['HumanResourceManagement']['Hours']; ?> + getName3(); ?> +
l11n->lang['HumanResourceManagement']['Vacation']; ?> + getName3(); ?> +
l11n->lang['HumanResourceManagement']['Salary']; ?> + getName3(); ?> +
+ +
+ + +
+ + + + + + + $value) : $c++; + $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?> + +
l11n->lang['HumanResourceManagement']['Working']; ?>
l11n->lang['HumanResourceManagement']['Start']; ?> + l11n->lang['HumanResourceManagement']['End']; ?> + l11n->lang['HumanResourceManagement']['Position']; ?> + l11n->lang['HumanResourceManagement']['Department']; ?> + l11n->lang['HumanResourceManagement']['Salary']; ?> +
render(); ?> +
getId(); ?> + getNewestHistory()->getPosition(); ?> + getNewestHistory()->getPosition(); ?> + + +
l11n->lang[0]['Empty']; ?> + +
+
+ +
+ + + + + + + $value) : $c++; + $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?> + +
l11n->lang['HumanResourceManagement']['Timing']; ?>
l11n->lang['HumanResourceManagement']['Start']; ?> + l11n->lang['HumanResourceManagement']['End']; ?> + l11n->lang['HumanResourceManagement']['Type']; ?> +
render(); ?> +
getId(); ?> + getNewestHistory()->getPosition(); ?> + getNewestHistory()->getPosition(); ?> + + +
l11n->lang[0]['Empty']; ?> + +
+
+ +
+

l11n->lang['HumanResourceManagement']['Salary']; ?>

+
+ + + + + +
l11n->lang['HumanResourceManagement']['Date']; ?> + getName3(); ?> +
l11n->lang['HumanResourceManagement']['SalaryType']; ?> + getName3(); ?> +
l11n->lang['HumanResourceManagement']['Amount']; ?> + getName3(); ?> +
+ +
+