| @@ 97-107 (lines=11) @@ | ||
| 94 | $sImgPath = $GLOBALS['babInstallPath'] . 'skins/ovidentia/images/Puces/'; |
|
| 95 | ||
| 96 | $sync = (int) absences_getVacationOption('organization_sync'); |
|
| 97 | if (!$sync) |
|
| 98 | { |
|
| 99 | ||
| 100 | $toolbar->addToolbarItem( |
|
| 101 | new BAB_ToolbarItem( |
|
| 102 | absences_translate('Add organization'), |
|
| 103 | $addon->getUrl().'organizations&idx=edit', |
|
| 104 | $sImgPath . 'edit_add.png', '', '', '') |
|
| 105 | ); |
|
| 106 | ||
| 107 | } |
|
| 108 | ||
| 109 | return $toolbar->printTemplate(); |
|
| 110 | } |
|
| @@ 2706-2711 (lines=6) @@ | ||
| 2703 | $sImgPath . 'edit_add.png', '', '', '') |
|
| 2704 | ); |
|
| 2705 | ||
| 2706 | if ($agent->canCreateWorkperiodRecoverRequest()) { |
|
| 2707 | $toolbar->addToolbarItem( |
|
| 2708 | new BAB_ToolbarItem(absences_translate("Recovery request"), $addon->getUrl().'vacuser&idx=workperiod', |
|
| 2709 | $sImgPath . 'edit_add.png', '', '', '') |
|
| 2710 | ); |
|
| 2711 | } |
|
| 2712 | ||
| 2713 | if ($agent->Cet()->canAdd()) { |
|
| 2714 | $toolbar->addToolbarItem( |
|
| @@ 2713-2718 (lines=6) @@ | ||
| 2710 | ); |
|
| 2711 | } |
|
| 2712 | ||
| 2713 | if ($agent->Cet()->canAdd()) { |
|
| 2714 | $toolbar->addToolbarItem( |
|
| 2715 | new BAB_ToolbarItem(absences_translate("Deposit on my time saving account"), $addon->getUrl().'vacuser&idx=cet', |
|
| 2716 | $sImgPath . 'edit_add.png', '', '', '') |
|
| 2717 | ); |
|
| 2718 | } |
|
| 2719 | ||
| 2720 | return $toolbar->printTemplate(); |
|
| 2721 | } |
|