コード例 #1
0
     $titre_uniforme = new titre_uniforme($id);
     $sup_result = $titre_uniforme->delete();
     if (!$sup_result) {
         include './autorites/titres_uniformes/titres_uniformes_list.inc.php';
     } else {
         error_message($msg[132], $sup_result, 1, "./autorites.php?categ=titres_uniformes&sub=titre_uniforme_form&id={$id}");
     }
     break;
 case 'replace':
     if (!$by) {
         $titre_uniforme = new titre_uniforme($id);
         $titre_uniforme->replace_form();
     } else {
         // routine de remplacement
         $titre_uniforme = new titre_uniforme($id);
         $rep_result = $titre_uniforme->replace($by, $aut_link_save);
         if (!$rep_result) {
             include './autorites/titres_uniformes/titres_uniformes_list.inc.php';
         } else {
             error_message($msg[132], $rep_result, 1, "./autorites.php?categ=titres_uniformes&sub=titre_uniforme&id={$id}");
         }
     }
     break;
 case 'duplicate':
     $titre_uniforme = new titre_uniforme($id);
     $id = 0;
     $titre_uniforme->show_form(true);
     break;
 case 'update':
     // mettre à jour responsabilité id
     // mise à jour d'un auteur