setDomain(1);
$acces_j = $dom_1->getJoin($PMBuserid,4,'notice_id');
}
$param_notice_id = explode(",",$pmb_show_notice_id);
$prefix_id = $param_notice_id[1];
if($prefix_id){
$f_notice_id = str_replace($prefix_id,"",$f_notice_id);
}
$rqt = "select * from notices where notice_id='".$f_notice_id."'";
$res = mysql_query($rqt,$dbh);
if(mysql_num_rows($res)){
$ident = mysql_fetch_object($res);
if($ident->niveau_biblio == 'a' && $ident->niveau_hierar == '2'){
$rqt_bull = "select analysis_bulletin from analysis where analysis_notice='".$ident->notice_id."'";
$res_bull = mysql_query($rqt_bull);
if(mysql_num_rows($res_bull)){
$ident_bull = mysql_result($res_bull,0,0);
print "";
}
} elseif ($ident->niveau_biblio == 's' && $ident->niveau_hierar == '1'){
print "";
} elseif ($ident->niveau_biblio == 'b' && $ident->niveau_hierar == '2'){
$rqt_bull = "select bulletin_id from bulletins where num_notice='".$ident->notice_id."'";
$res_bull = mysql_query($rqt_bull);
if(mysql_num_rows($res_bull)){
$ident_bull = mysql_result($res_bull,0,0);
print "";
}
} else {
print "";
}
} else {
error_message($msg[235], $msg['notice_id_query_failed']." ".$f_notice_id, 1, "./catalog.php?categ=search&mode=0");
die();
}
?>