".htmlentities($msg["nettoyage_clean_relations_dep1"], ENT_QUOTES, $charset)."
";
$query = mysql_query("delete analysis from analysis left join notices on analysis_notice=notice_id where notice_id is null");
$affected = mysql_affected_rows();
$query = mysql_query("delete notices from notices left join analysis on analysis_notice=notice_id where analysis_notice is null and niveau_hierar='2' and niveau_biblio='a'");
$affected += mysql_affected_rows();
$query = mysql_query("delete analysis from analysis left join bulletins on analysis_bulletin=bulletin_id where bulletin_id is null");
$affected += mysql_affected_rows();
$query = mysql_query("delete bulletins from bulletins left join notices on bulletin_notice=notice_id where notice_id is null");
$affected += mysql_affected_rows();
$query = mysql_query("delete notices_relations from notices_relations left join notices on num_notice=notice_id where notice_id is null ");
$affected += mysql_affected_rows();
$query = mysql_query("delete notices_relations from notices_relations left join notices on linked_notice=notice_id where notice_id is null ");
$affected += mysql_affected_rows();
$v_state .= "
".htmlentities($msg["nettoyage_suppr_relations"], ENT_QUOTES, $charset)." : ";
$v_state .= $affected." ".htmlentities($msg["nettoyage_res_suppr_relations_dep1"], ENT_QUOTES, $charset);
$opt = mysql_query('OPTIMIZE TABLE notices');
// mise à jour de l'affichage de la jauge
print "
100%
";
print "
";