expl); } else { $myBul = new bulletinage($bul_id, 0, ''); $affichage_expl = get_expl($myBul->expl, 1); } $bul_titre = $myBul->bulletin_titre; $bul_isbd = $myBul->display; $aff_expl_num = $myBul->explnum ; $txt_drag=""; if ($myBul->bulletin_numero) $txt_drag .= $myBul->bulletin_numero." "; if ($myBul->mention_date) $txt_drag .= " (".$myBul->mention_date.") "; $txt_drag .= "[".$myBul->aff_date_date."]"; if (!$show_in_receptions) { // lien vers la notice chapeau $link_parent = ""; $link_parent .= $msg[4010].""; $link_parent .= ""; $link_parent .= "bulletin_notice."\">".$myBul->tit1.''; $link_parent .= ""; $link_parent.=$txt_drag; if ($bul_titre) $link_parent .= " : ".htmlentities($bul_titre,ENT_QUOTES, $charset) ; $form.= "
".$link_parent."
"; $cart_link = "basket"; $cart_link = str_replace('!!item!!', $bul_id, $cart_link); $cart_link.=""; $bul_action_bar = str_replace('!!bul_id!!', $bul_id, $bul_action_bar); $bul_action_bar = str_replace('!!serial_id!!', $myBul->bulletin_notice, $bul_action_bar); $bul_action_bar = str_replace('!!nb_expl!!', sizeof($myBul->expl), $bul_action_bar); global $avis_quoifaire,$valid_id_avis; if($myBul->bull_num_notice)$bul_isbd = str_replace('', avis_notice($myBul->bull_num_notice,$avis_quoifaire,$valid_id_avis), $bul_isbd); if(!$flag_no_delete_bulletin)$bul_action_bar = str_replace("!!bulletin_delete_button!!", "", $bul_action_bar); else $bul_action_bar = str_replace("!!bulletin_delete_button!!", "", $bul_action_bar); if($myBul->bull_num_notice) { $form.= $liste_script; } $form.= "

$cart_link $bul_isbd

$bul_action_bar
"; // affichage des exemplaires associés $list_expl = "
"; $list_expl .= "

".$msg[4012]."

"; $list_expl .= "
".$affichage_expl."
"; $form.= $list_expl; if ($aff_expl_num) { $list_expl = "

".$msg[explnum_docs_associes]."

"; $list_expl .= "
".$aff_expl_num."
"; $form.= $list_expl; } if ((!$explr_visible_mod)&&($pmb_droits_explr_localises==1)) { $etiquette_expl=""; $btn_ajouter_expl=""; $saisie_num_expl="
"; $saisie_num_expl.= "
".$msg["err_add_invis_expl"]."
"; } else { $etiquette_expl="
"; $btn_ajouter_expl=""; global $pmb_numero_exemplaire_auto; if($pmb_numero_exemplaire_auto==1 || $pmb_numero_exemplaire_auto==3) $num_exemplaire_auto=" $msg[option_num_auto] "; $saisie_num_expl="".$num_exemplaire_auto; } $req="select * from serialcirc_copy, bulletins where num_serialcirc_copy_bulletin=bulletin_id and bulletin_id= $bul_id"; $resultat=mysql_query($req); $i=0; if (mysql_num_rows($resultat)) { $btn_print_ask=""; } $bul_cb_form = str_replace('!!bul_id!!', $bul_id, $bul_cb_form); $bul_cb_form = str_replace('!!etiquette!!', $etiquette_expl, $bul_cb_form); $bul_cb_form = str_replace('!!saisie_num_expl!!', $saisie_num_expl, $bul_cb_form); $bul_cb_form = str_replace('!!btn_ajouter!!', $btn_ajouter_expl, $bul_cb_form); $bul_cb_form = str_replace('!!btn_print_ask!!', $btn_print_ask, $bul_cb_form); $form.= "
".$bul_cb_form."
"; // zone d'affichage des dépouillements $liste = get_analysis($bul_id); if ($liste) { $icones_exp .= $liste_debut." basket"; $liste_dep = $liste; $liste_dep .= $liste_fin; // inclusion du javascript inline $liste_dep .= (!$myBul->bull_num_notice ? $liste_script : ""); } else { $icones_exp .= ""; $liste_dep .= "
".$msg['bulletin_no_analysis']."
"; } $link_new_dep = ""; $form.="

".$msg[4013].$icones_exp." $link_new_dep

$liste_dep
"; $rqt_nt="select count(*) from exemplaires, bulletins, docs_statut where exemplaires.expl_statut=docs_statut.idstatut and bulletins.bulletin_id=exemplaires.expl_bulletin and pret_flag=1 and bulletins.bulletin_id=".$bul_id; $result = mysql_query($rqt_nt, $dbh) or die ($rqt_nt. " ".mysql_error()) ; if ($result) { $aff_resa=resa_list(0, $bul_id, 0) ; $ouvrir_reserv = "onclick=\"parent.location.href='./circ.php?categ=resa_from_catal&id_bulletin=".$bul_id."'; return(false) \""; if ($aff_resa) { //print pmb_bidi("$msg[resas]


".$aff_resa."
"); $form.="$msg[resas]


".$aff_resa."
"; } else { $affich=mysql_fetch_array($result); if ($affich[0]!=0) { //print pmb_bidi("$msg[resas]


"); $form.="$msg[resas]


"; } } } } else { $form.= "
".htmlentities($myBul->tit1.'.'.$txt_drag, ENT_QUOTES, $charset); if ($bul_titre) $form.= " : ".htmlentities($bul_titre, ENT_QUOTES,$charset); $form.= "
"; } } return $form; }