@@ 2296-2315 (lines=20) @@ | ||
2293 | ||
2294 | ||
2295 | ||
2296 | function absences_workperiodGotoList() |
|
2297 | { |
|
2298 | $agent = absences_Agent::getCurrentUser(); |
|
2299 | ||
2300 | if (!empty($_POST['workperiod']['id_user'])) { |
|
2301 | ||
2302 | ||
2303 | if ($agent->isManager()) { |
|
2304 | $url = new bab_url(absences_addon()->getUrl().'vacadmwd'); |
|
2305 | $url->location(); |
|
2306 | return; |
|
2307 | } |
|
2308 | ||
2309 | //TODO: liste des demandes de l'entite si gestionnaire delegue |
|
2310 | } |
|
2311 | ||
2312 | $url = bab_url::get_request('tg'); |
|
2313 | $url->idx = 'lvreq'; |
|
2314 | $url->location(); |
|
2315 | } |
|
2316 | ||
2317 | ||
2318 | ||
@@ 2500-2519 (lines=20) @@ | ||
2497 | ||
2498 | ||
2499 | ||
2500 | function absences_cetGotoList() |
|
2501 | { |
|
2502 | $agent = absences_Agent::getCurrentUser(); |
|
2503 | ||
2504 | if (!empty($_POST['cet']['id_user'])) { |
|
2505 | ||
2506 | ||
2507 | if ($agent->isManager()) { |
|
2508 | $url = new bab_url(absences_addon()->getUrl().'vacadmcet'); |
|
2509 | $url->location(); |
|
2510 | return; |
|
2511 | } |
|
2512 | ||
2513 | //TODO: liste des demandes de l'entite si gestionnaire delegue |
|
2514 | } |
|
2515 | ||
2516 | $url = bab_url::get_request('tg'); |
|
2517 | $url->idx = 'lvreq'; |
|
2518 | $url->location(); |
|
2519 | } |
|
2520 | ||
2521 | ||
2522 | /** |