GET as $key => $val){ $GLOBALS[$key] = $val; } foreach($tab->POST as $key => $val){ $GLOBALS[$key] = $val; } $requete="DELETE FROM notices_categories WHERE num_noeud=".$id; mysql_query($requete, $dbh); noeuds::delete($id); } else { $requete="SELECT notcateg_notice FROM notices_categories WHERE num_noeud=".$id." ORDER BY ordre_categorie"; $result_cat=mysql_query($requete, $dbh); if (mysql_num_rows($result_cat)) { //affichage de l'erreur, en passant tous les param postés (serialise) pour l'éventuel forcage $tab->POST = $_POST; $tab->GET = $_GET; $ret_url= urlencode(serialize($tab)); require_once("$class_path/mono_display.class.php"); require_once("$class_path/serial_display.class.php"); print "
$msg[540]
".$msg["autorite_suppr_categ_titre"]."
"; while (($r_cat=mysql_fetch_object($result_cat))) { $requete="select signature, niveau_biblio ,notice_id from notices where notice_id=".$r_cat->notcateg_notice." limit 20"; $result=mysql_query($requete, $dbh); if (($r=mysql_fetch_object($result))) { if($r->niveau_biblio != 's' && $r->niveau_biblio != 'a') { // notice de monographie $nt = new mono_display($r->notice_id); } else { // on a affaire à un périodique $nt = new serial_display($r->notice_id,1); } echo "
$nt->result
"; } echo ""; } exit(); } } // error_message($msg[321], $msg[categ_delete_used], 1, "./autorites.php?categ=categories&id=$id&sub=categ_form&parent=$parent"); // exit(); } else { noeuds::delete($id); } include('./autorites/subjects/default.inc.php'); ?>