".$msg[140]." : ". $msg[136].""; $tri_param = " order by index_coll "; switch($sub) { case 'reach': // afficher résultat recherche collection include('./autorites/collections/collections_list.inc.php'); break; case 'replace': if(!$by) { $collection = new collection($id); $collection->replace_form(); } else { // routine de remplacement $collection = new collection($id); $rep_result = $collection->replace($by,$aut_link_save); if(!$rep_result) include('./autorites/collections/collections_list.inc.php'); else { error_message($msg[132], $rep_result, 1, "./autorites.php?categ=collections&sub=collection_form&id=$id"); } } break; case 'delete': $coll = new collection($id); $sup_result = $coll->delete(); if(!$sup_result) include('./autorites/collections/collections_list.inc.php'); else { error_message($msg[132], $sup_result, 1, "./autorites.php?categ=collections&sub=collection_form&id=$id"); } break; case 'update': // mettre à jour collection id // mise à jour d'une collection $collection_nom = clean_string($collection_nom); if ((!$collection_nom) || (!$ed_id)) error_message($msg[132], $mg['erreur_creation_collection'], 1, ""); else { $coll = array( 'name' => $collection_nom, 'parent' => $ed_id, 'collection_web' => $collection_web, 'issn' => $issn, 'comment' => $comment); $collection = new collection($id); $collection->update($coll); include('./autorites/collections/collections_list.inc.php'); } break; case 'collection_form': // création d'une collection if(!$id) { // affichage du form pour création $collection = new collection(); $collection->show_form(); } else { // affichage du form pour modification $collection = new collection($id); $collection->show_form(); } break; case 'collection_last': $last_param=1; $tri_param = "order by collection_id desc "; $limit_param = "limit 0, $pmb_nb_lastautorities "; $clef = ""; $nbr_lignes = 0 ; include('./autorites/collections/collections_list.inc.php'); break; default: // affichage du form de recherche (par défaut) include('./autorites/collections/collections_list.inc.php'); break; } ?>