示例#1
0
        $author_form = str_replace("!!deb_saisie!!", htmlentities(stripslashes($f_user_input), ENT_QUOTES, $charset), $author_form);
        print $author_form;
        break;
    case 'update':
        $value['type'] = $author_type;
        $value['name'] = $author_name;
        $value['rejete'] = $author_rejete;
        $value['date'] = $date;
        $value['voir_id'] = 0;
        $value['lieu'] = $lieu;
        $value['ville'] = $ville;
        $value['pays'] = $pays;
        $value['subdivision'] = $subdivision;
        $value['numero'] = $numero;
        $auteur = new auteur();
        $auteur->update($value);
        $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, $author_name, 0, 0, $auteur->id);
        break;
    default:
        $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, 0);
        break;
}
print $sel_footer;
示例#2
0
         // routine de remplacement
         $auteur = new auteur($id);
         $rep_result = $auteur->replace($by, $aut_link_save);
         if (!$rep_result) {
             include './autorites/authors/authors_list.inc.php';
         } else {
             error_message($msg[132], $rep_result, 1, "./autorites.php?categ=auteurs&sub=author_form&id={$id}");
         }
     }
     break;
 case 'update':
     // mettre à jour responsabilité id
     // mise à jour d'un auteur
     $author = array('type' => $author_type, 'name' => $author_nom, 'rejete' => $author_rejete, 'date' => $date, 'author_web' => $author_web, 'author_comment' => $author_comment, 'voir_id' => $voir_id, 'lieu' => $lieu, 'ville' => $ville, 'pays' => $pays, 'subdivision' => $subdivision, 'numero' => $numero, 'import_denied' => $author_import_denied);
     $auteur = new auteur($id);
     $auteur->update($author);
     $type_autorite = $author_type;
     include './autorites/authors/authors_list.inc.php';
     break;
 case 'author_form':
     // création/modification d'un responsable
     if (!$id) {
         $auteur = new auteur();
     } else {
         $auteur = new auteur($id);
     }
     // affichage du form pour modification
     $auteur->show_form($type_autorite);
     break;
 case 'author_last':
     $last_param = 1;