setDomain(1);
$acces_j = $dom_1->getJoin($PMBuserid,8,'bulletin_notice');
$q = "select count(1) from bulletins $acces_j where bulletin_id=".$bul_id;
$r = pmb_mysql_query($q);
if(pmb_mysql_result($r,0,0)==0) {
$acces_m=0;
}
}
if ($acces_m==0) {
error_message('', htmlentities($dom_1->getComment('mod_expl_error'), ENT_QUOTES, $charset), 1, '');
} else {
print "
".$msg['catalog_notices_suppression']."
";
$sql_circ = pmb_mysql_query("select 1 from serialcirc_expl where num_serialcirc_expl_id ='$expl_id' ") ;
if (pmb_mysql_num_rows($sql_circ)) {
error_message($msg[416], $msg["serialcirc_expl_no_del"], 1, bulletinage::get_permalink($bul_id));
}else{
$requete = "select 1 from pret where pret_idexpl='$expl_id' ";
$result=@pmb_mysql_query($requete);
if (pmb_mysql_num_rows($result)) {
// gestion erreur prêt en cours
error_message($msg[416], $msg['impossible_expl_del_pret'], 1, bulletinage::get_permalink($bul_id));
} else {
exemplaire::del_expl($expl_id);
$retour = bulletinage::get_permalink($bul_id);
print "
";
}
}
}
?>