".$msg[140]." : ". $msg[137].""; switch($sub) { case 'reach': // afficher résultat recherche sous collection include('./autorites/subcollections/sub_collections_list.inc.php'); break; case 'replace': if(!$by) { $collection = new subcollection($id); $collection->replace_form(); } else { // routine de remplacement $collection = new subcollection($id); $rep_result = $collection->replace($by,$aut_link_save); if(!$rep_result) include('./autorites/subcollections/sub_collections_list.inc.php'); else { error_message($msg[132], $rep_result, 1, "./autorites.php?categ=souscollections&sub=collection_form&id=$id"); } } break; case 'delete': $collection = new subcollection($id); $sup_result = $collection->delete(); if(!$sup_result) include('./autorites/subcollections/sub_collections_list.inc.php'); else { error_message($msg[132], $sup_result, 1, "./autorites.php?categ=souscollections&sub=collection_form&id=$id"); } break; case 'update': // mise à jour d'une sous collection $collection = new subcollection($id); $coll = array( 'name' => $collection_nom, 'parent' => $coll_id, 'issn' => $issn, 'subcollection_web' => $subcollection_web, 'comment' => $comment); $collection->update($coll); include('./autorites/subcollections/sub_collections_list.inc.php'); break; case 'collection_form': // création d'une sous collection if(!$id) { // affichage du form pour création $collection = new subcollection(); $collection->show_form(); } else { // affichage du form pour modification $collection = new subcollection($id); $collection->show_form(); } break; case 'collection_last': $last_param=1; $tri_param = "order by sub_coll_id desc "; $limit_param = "limit 0, $pmb_nb_lastautorities "; $clef = ""; $nbr_lignes = 0 ; include('./autorites/subcollections/sub_collections_list.inc.php'); break; default: // affichage du début de la liste (par défaut) include('./autorites/subcollections/sub_collections_list.inc.php'); break; }