| @@ 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 | } |
|
| @@ 2730-2735 (lines=6) @@ | ||
| 2727 | $sImgPath . 'edit_add.png', '', '', '') |
|
| 2728 | ); |
|
| 2729 | ||
| 2730 | if ($agent->canCreateWorkperiodRecoverRequest()) { |
|
| 2731 | $toolbar->addToolbarItem( |
|
| 2732 | new BAB_ToolbarItem(absences_translate("Recovery request"), $addon->getUrl().'vacuser&idx=workperiod', |
|
| 2733 | $sImgPath . 'edit_add.png', '', '', '') |
|
| 2734 | ); |
|
| 2735 | } |
|
| 2736 | ||
| 2737 | try { |
|
| 2738 | if ($agent->Cet()->canAdd()) { |
|
| @@ 2738-2743 (lines=6) @@ | ||
| 2735 | } |
|
| 2736 | ||
| 2737 | try { |
|
| 2738 | if ($agent->Cet()->canAdd()) { |
|
| 2739 | $toolbar->addToolbarItem( |
|
| 2740 | new BAB_ToolbarItem(absences_translate("Deposit on my time saving account"), $addon->getUrl().'vacuser&idx=cet', |
|
| 2741 | $sImgPath . 'edit_add.png', '', '', '') |
|
| 2742 | ); |
|
| 2743 | } |
|
| 2744 | } catch (Exception $e) { |
|
| 2745 | bab_debug($e->getMessage()); |
|
| 2746 | } |
|