| @@ 2460-2478 (lines=19) @@ | ||
| 2457 | $W = bab_Widgets(); |
|
| 2458 | $page = $W->BabPage(); |
|
| 2459 | ||
| 2460 | if (isset($_POST['workperiod'])) |
|
| 2461 | { |
|
| 2462 | if ( isset($_POST['workperiod']['cancel']) ) |
|
| 2463 | { |
|
| 2464 | absences_workperiodGotoList(); |
|
| 2465 | } |
|
| 2466 | ||
| 2467 | ||
| 2468 | if( isset($_POST['workperiod']['save'] )) |
|
| 2469 | { |
|
| 2470 | try { |
|
| 2471 | absences_saveWorkperiodRecoverRequest($_POST['workperiod'], $request); |
|
| 2472 | ||
| 2473 | } catch (Exception $e) |
|
| 2474 | { |
|
| 2475 | $page->addError($e->getMessage()); |
|
| 2476 | } |
|
| 2477 | } |
|
| 2478 | } |
|
| 2479 | ||
| 2480 | ||
| 2481 | $page->setTitle(absences_translate('Create a working days report entitling recovery')); |
|
| @@ 2666-2683 (lines=18) @@ | ||
| 2663 | ||
| 2664 | ||
| 2665 | ||
| 2666 | if (isset($_POST['cet'])) |
|
| 2667 | { |
|
| 2668 | if ( isset($_POST['cet']['cancel']) ) |
|
| 2669 | { |
|
| 2670 | absences_cetGotoList(); |
|
| 2671 | } |
|
| 2672 | ||
| 2673 | ||
| 2674 | if( isset($_POST['cet']['save'] )) |
|
| 2675 | { |
|
| 2676 | try { |
|
| 2677 | absences_saveCetDepositRequest($_POST['cet'], $request); |
|
| 2678 | } catch (Exception $e) |
|
| 2679 | { |
|
| 2680 | $page->addError($e->getMessage()); |
|
| 2681 | } |
|
| 2682 | } |
|
| 2683 | } |
|
| 2684 | ||
| 2685 | if (isset($request) && $request->id) |
|
| 2686 | { |
|