| @@ 2394-2412 (lines=19) @@ | ||
| 2391 | $W = bab_Widgets(); |
|
| 2392 | $page = $W->BabPage(); |
|
| 2393 | ||
| 2394 | if (isset($_POST['workperiod'])) |
|
| 2395 | { |
|
| 2396 | if ( isset($_POST['workperiod']['cancel']) ) |
|
| 2397 | { |
|
| 2398 | absences_workperiodGotoList(); |
|
| 2399 | } |
|
| 2400 | ||
| 2401 | ||
| 2402 | if( isset($_POST['workperiod']['save'] )) |
|
| 2403 | { |
|
| 2404 | try { |
|
| 2405 | absences_saveWorkperiodRecoverRequest($_POST['workperiod'], $request); |
|
| 2406 | ||
| 2407 | } catch (Exception $e) |
|
| 2408 | { |
|
| 2409 | $page->addError($e->getMessage()); |
|
| 2410 | } |
|
| 2411 | } |
|
| 2412 | } |
|
| 2413 | ||
| 2414 | ||
| 2415 | $page->setTitle(absences_translate('Create a working days report entitling recovery')); |
|
| @@ 2589-2606 (lines=18) @@ | ||
| 2586 | ||
| 2587 | ||
| 2588 | ||
| 2589 | if (isset($_POST['cet'])) |
|
| 2590 | { |
|
| 2591 | if ( isset($_POST['cet']['cancel']) ) |
|
| 2592 | { |
|
| 2593 | absences_cetGotoList(); |
|
| 2594 | } |
|
| 2595 | ||
| 2596 | ||
| 2597 | if( isset($_POST['cet']['save'] )) |
|
| 2598 | { |
|
| 2599 | try { |
|
| 2600 | absences_saveCetDepositRequest($_POST['cet'], $request); |
|
| 2601 | } catch (Exception $e) |
|
| 2602 | { |
|
| 2603 | $page->addError($e->getMessage()); |
|
| 2604 | } |
|
| 2605 | } |
|
| 2606 | } |
|
| 2607 | ||
| 2608 | if (isset($request) && $request->id) |
|
| 2609 | { |
|