setDomain(1); if (!$bul_id) { $acces_m = $dom_1->getRights($PMBuserid,$serial_id,8); } else { $acces_j = $dom_1->getJoin($PMBuserid,8,'bulletin_notice'); $q= "select count(1) from bulletins $acces_j where bulletin_id=".$bul_id; $r = mysql_query($q, $dbh); if ($r) { if(mysql_result($r,0,0)==0) { $acces_m=0; } } else { $acces_m=0; } } } if ($acces_m==0) { if (!$bul_id) { error_message('', htmlentities($dom_1->getComment('mod_seri_error'), ENT_QUOTES, $charset), 1, ''); } else { error_message('', htmlentities($dom_1->getComment('mod_bull_error'), ENT_QUOTES, $charset), 1, ''); } } else { // affichage d'un form pour duplication d'un périodique if(!$bul_id) { echo str_replace('!!page_title!!', $msg[4000].$msg[1003].$msg[4005], $serial_header); } else { echo str_replace('!!page_title!!', $msg[4000].$msg[1003].$msg["bull_duplicate"], $serial_header); } // on instancie le bulletinage $myBulletinage = new bulletinage($bul_id, $serial_id); $perio = new serial_display($myBulletinage->serial_id, 1); $myBulletinage->bulletin_id=0 ; $perio_header = $perio->header; // titre général du périodique print pmb_bidi("

$perio_header

$perio->isbd
"); // affichage du form print "
".$myBulletinage->do_form().'
'; } ?>