/** * Encapsule le comportement du module d'ajout de congés * * @return void * @access public * @static */ public static function ajoutCongesModule($tab_type_cong) { //var pour resp_ajout_conges_all.php $ajout_conges = getpost_variable('ajout_conges'); $tab_champ_saisie = getpost_variable('tab_champ_saisie'); $tab_commentaire_saisie = getpost_variable('tab_commentaire_saisie'); //$tab_champ_saisie_rtt = getpost_variable('tab_champ_saisie_rtt') ; $ajout_global = getpost_variable('ajout_global'); $ajout_groupe = getpost_variable('ajout_groupe'); $choix_groupe = getpost_variable('choix_groupe'); $tab_new_nb_conges_all = getpost_variable('tab_new_nb_conges_all'); $tab_calcul_proportionnel = getpost_variable('tab_calcul_proportionnel'); $tab_new_comment_all = getpost_variable('tab_new_comment_all'); $return = ''; // titre $return .= '<h1>' . _('resp_ajout_conges_titre') . '</h1>'; if ($ajout_conges == "TRUE") { $return .= \responsable\Fonctions::ajout_conges($tab_champ_saisie, $tab_commentaire_saisie); } elseif ($ajout_global == "TRUE") { $return .= \responsable\Fonctions::ajout_global($tab_new_nb_conges_all, $tab_calcul_proportionnel, $tab_new_comment_all); } elseif ($ajout_groupe == "TRUE") { $return .= \responsable\Fonctions::ajout_global_groupe($choix_groupe, $tab_new_nb_conges_all, $tab_calcul_proportionnel, $tab_new_comment_all); } else { $return .= \responsable\Fonctions::saisie_ajout($tab_type_cong); } return $return; }