possible_users($group,$method); $count = 0; $result=""; //A-t-on trouvé des utilisateur? Si non, on affiche 'Aucun' if (!$count) { return ""; } return $result; } $table_rights=" "; //pour chaque groupe $group_list=$es->get_group_list(); for ($i=0; $iget_rights($group["name"],""); $table_rights.= ""; $table_rights.= ""; //Pour chaque méthode if(isset($group["methods"]) && is_array($group["methods"])) { for ($j=0; $jget_rights($group["name"],$method["name"]); $table_rights.= " ".(!$j?"":"")." "; } } } $table_rights.= "
Groupe".htmlentities($msg["external_services_general_utilisateurs_autorises"],ENT_QUOTES,$charset)."
".htmlentities($group["name"],ENT_QUOTES,$charset)."".htmlentities($group["description"],ENT_QUOTES,$charset)." ".users_list($group["name"],'',$rights_group->users,array())."
".htmlentities($msg["external_services_general_methode"],ENT_QUOTES,$charset)."".htmlentities($msg["external_services_general_utilisateurs_autorises"],ENT_QUOTES,$charset)."
 ".htmlentities($method["name"],ENT_QUOTES,$charset)."".htmlentities($method["description"],ENT_QUOTES,$charset)." ".users_list($group["name"],$method["name"],$rights->users,$rights_group->users)."
"; $interface_form = new interface_admin_form('es_rights'); $interface_form->set_label("Définition des droits pour les groupes et les méthodes"); $interface_form->set_content_form(str_replace("!!table_rights!!",$table_rights,$es_admin_general)); print $interface_form->get_display_parameters(); ?>