| @@ 106-137 (lines=32) @@ | ||
| 103 | * Archivage des droits par annee |
|
| 104 | * proposer les annes contenant que des droits soldes et inactifs (les droits supportant les soldes negatifs doivent etres desactives) |
|
| 105 | */ |
|
| 106 | function absences_ArchiveRights() |
|
| 107 | { |
|
| 108 | ||
| 109 | $W = bab_Widgets(); |
|
| 110 | $page = $W->BabPage(); |
|
| 111 | ||
| 112 | ||
| 113 | ||
| 114 | if (isset($_POST['archive'])) |
|
| 115 | { |
|
| 116 | ||
| 117 | if( isset($_POST['archive']['save'] )) |
|
| 118 | { |
|
| 119 | $values = $_POST['archive']; |
|
| 120 | absences_ArchiveRightsSave($values); |
|
| 121 | } |
|
| 122 | ||
| 123 | // Go to main menu |
|
| 124 | $url = new bab_url; |
|
| 125 | $url->tg = 'addon/absences/vacadm'; |
|
| 126 | $url->location(); |
|
| 127 | } |
|
| 128 | ||
| 129 | ||
| 130 | ||
| 131 | ||
| 132 | $editor = new absences_RightArchiveYearEditor(); |
|
| 133 | ||
| 134 | $page->setTitle(absences_translate('Archive vacation rights by year')); |
|
| 135 | $page->addItem($editor); |
|
| 136 | $page->displayHtml(); |
|
| 137 | } |
|
| 138 | ||
| 139 | ||
| 140 | ||
| @@ 195-227 (lines=33) @@ | ||
| 192 | /** |
|
| 193 | * Archivage des demandes par annees |
|
| 194 | */ |
|
| 195 | function absences_ArchiveRequests() |
|
| 196 | { |
|
| 197 | ||
| 198 | $W = bab_Widgets(); |
|
| 199 | $page = $W->BabPage(); |
|
| 200 | ||
| 201 | ||
| 202 | if (isset($_POST['archive'])) |
|
| 203 | { |
|
| 204 | ||
| 205 | if( isset($_POST['archive']['save'] )) |
|
| 206 | { |
|
| 207 | $values = $_POST['archive']; |
|
| 208 | absences_ArchiveRequestsSave($values); |
|
| 209 | } |
|
| 210 | ||
| 211 | // Go to main menu |
|
| 212 | $url = new bab_url; |
|
| 213 | $url->tg = 'addon/absences/vacadm'; |
|
| 214 | $url->location(); |
|
| 215 | } |
|
| 216 | ||
| 217 | ||
| 218 | ||
| 219 | ||
| 220 | $editor = new absences_RequestArchiveYearEditor(); |
|
| 221 | ||
| 222 | ||
| 223 | $page->addStyleSheet(absences_Addon()->getStylePath().'vacation.css'); |
|
| 224 | $page->setTitle(absences_translate('Archive requests by year')); |
|
| 225 | $page->addItem($editor); |
|
| 226 | $page->displayHtml(); |
|
| 227 | } |
|
| 228 | ||
| 229 | ||
| 230 | /* main */ |
|