if (count($authpersos) > 1) {
    $sel_authpersos = "<select class='saisie-20em' id='authperso_id' name='authperso_id' onchange = \"this.form.submit()\">";
    foreach ($authpersos as $authperso) {
        $sel_authpersos .= "<option value='" . $authperso['id'] . "' ";
        if ($authperso_id == $authperso['id']) {
            $sel_authpersos .= " selected";
        }
        $sel_authpersos .= ">" . htmlentities($authperso['name'], ENT_QUOTES, $charset) . "</option>";
    }
    $sel_authpersos .= "</select>&nbsp;";
}
// affichage des membres de la page
switch ($action) {
    case 'add':
        $authperso = new authperso($authperso_id);
        print $authperso->get_form_select(0, $base_url);
        break;
    case 'update':
        print $sel_header;
        $authperso = new authperso($authperso_id);
        $authperso->update_from_form();
        $sel_search_form = str_replace("!!sel_authpersos!!", $sel_authpersos, $sel_search_form);
        $sel_search_form = str_replace("!!bouton_ajouter!!", $bouton_ajouter, $sel_search_form);
        $sel_search_form = str_replace("!!deb_rech!!", htmlentities(stripslashes($f_user_input), ENT_QUOTES, $charset), $sel_search_form);
        print $sel_search_form;
        print $jscript;
        show_results($dbh, $user_input, $nbr_lignes, $page);
        break;
    default:
        print $sel_header;
        $sel_search_form = str_replace("!!sel_authpersos!!", $sel_authpersos, $sel_search_form);