| @@ 2374-2392 (lines=19) @@ | ||
| 2371 | $W = bab_Widgets(); |
|
| 2372 | $page = $W->BabPage(); |
|
| 2373 | ||
| 2374 | if (isset($_POST['workperiod'])) |
|
| 2375 | { |
|
| 2376 | if ( isset($_POST['workperiod']['cancel']) ) |
|
| 2377 | { |
|
| 2378 | absences_workperiodGotoList(); |
|
| 2379 | } |
|
| 2380 | ||
| 2381 | ||
| 2382 | if( isset($_POST['workperiod']['save'] )) |
|
| 2383 | { |
|
| 2384 | try { |
|
| 2385 | absences_saveWorkperiodRecoverRequest($_POST['workperiod'], $request); |
|
| 2386 | ||
| 2387 | } catch (Exception $e) |
|
| 2388 | { |
|
| 2389 | $page->addError($e->getMessage()); |
|
| 2390 | } |
|
| 2391 | } |
|
| 2392 | } |
|
| 2393 | ||
| 2394 | ||
| 2395 | $page->setTitle(absences_translate('Create a working days report entitling recovery')); |
|
| @@ 2569-2586 (lines=18) @@ | ||
| 2566 | ||
| 2567 | ||
| 2568 | ||
| 2569 | if (isset($_POST['cet'])) |
|
| 2570 | { |
|
| 2571 | if ( isset($_POST['cet']['cancel']) ) |
|
| 2572 | { |
|
| 2573 | absences_cetGotoList(); |
|
| 2574 | } |
|
| 2575 | ||
| 2576 | ||
| 2577 | if( isset($_POST['cet']['save'] )) |
|
| 2578 | { |
|
| 2579 | try { |
|
| 2580 | absences_saveCetDepositRequest($_POST['cet'], $request); |
|
| 2581 | } catch (Exception $e) |
|
| 2582 | { |
|
| 2583 | $page->addError($e->getMessage()); |
|
| 2584 | } |
|
| 2585 | } |
|
| 2586 | } |
|
| 2587 | ||
| 2588 | if (isset($request) && $request->id) |
|
| 2589 | { |
|