notice_show_expl = 0; $myBul->make_display();//Refait pour avoir la notice de bulletin sans ses exemplaires et ses docnums $affichage_expl = get_expl($myBul->expl); $cpt_expl = get_expl($myBul->expl,0,true); } else { $myBul = new bulletinage($bul_id, 0, ''); $myBul->notice_show_expl = 0; $myBul->make_display();//Refait pour avoir la notice de bulletin sans ses exemplaires et ses docnums $affichage_expl = get_expl($myBul->expl, 1); $cpt_expl = get_expl($myBul->expl,1,true); } $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->get_serial()->tit1.''; $link_parent .= ""; $link_parent.=$txt_drag; if ($bul_titre) $link_parent .= " : ".htmlentities($bul_titre,ENT_QUOTES, $charset) ; // Titre de la page $form.= ''; $form.= "
".$link_parent."
"; $cart_over_out = "onMouseOver=\"show_div_access_carts(event,".$bul_id.",'BULL');\" onMouseOut=\"set_flag_info_div(false);\""; $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!!', count($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); $bul_isbd = str_replace('', caddie_controller::get_display_list_from_item('display', 'NOTI', $myBul->bull_num_notice), $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."
"; $form.= '
'; // map if($pmb_map_activate){ $form.= map_locations_controler::get_map_location(0, $bul_id); } $form.= caddie_controller::get_display_list_from_item('display', 'BULL', $bul_id); // affichage des exemplaires associés $list_expl = "
"; $list_expl .= "

".$msg[4012]." (".$cpt_expl.")

"; $list_expl .= "
".$affichage_expl."
"; $form.= $list_expl; //état des collections $collstate = new collstate(0,0,$bul_id); if($pmb_etat_collections_localise) { $collstate->get_display_list("",0,0,0,1,0,true); } else { $collstate->get_display_list("",0,0,0,0,0,true); } if($collstate->nbr) { $form.= "

".$msg["abts_onglet_collstate"]." (".$collstate->nbr.")

"; $form.= $collstate->liste; } if ($aff_expl_num) { $list_expl = "

".$msg['explnum_docs_associes']." (".$myBul->nbexplnum.")

"; $list_expl .= "
".$aff_expl_num."
"; $form.= $list_expl; } $form.= '
'; 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,$pmb_numero_exemplaire_auto_script,$include_path; $num_exemplaire_auto = ''; if($pmb_numero_exemplaire_auto==1 || $pmb_numero_exemplaire_auto==3){ $num_exemplaire_auto=" $msg[option_num_auto] "; } else { $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
"; //reservations et previsions $rqt_nt="select count(*) from exemplaires JOIN docs_statut ON exemplaires.expl_statut=docs_statut.idstatut JOIN bulletins ON exemplaires.expl_bulletin=bulletins.bulletin_id WHERE statut_allow_resa=1 and bulletins.bulletin_id=".$bul_id; $result = pmb_mysql_query($rqt_nt, $dbh) or die ($rqt_nt. " ".pmb_mysql_error()) ; $nb_expl_reservables = pmb_mysql_result($result,0,0); $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) { $form.="".$msg['resas']."
"; if($nb_expl_reservables) $form.= "

"; $form.= $aff_resa."
"; } else { if ($nb_expl_reservables) { $form.="".$msg['resas']."


"; } } if($pmb_resa_planning) { $aff_resa_planning=planning_list(0,$bul_id,0); //TODO $ouvrir_reserv = "onclick=\"parent.location.href='".$base_path."/circ.php?categ=resa_planning_from_catal&id_bulletin=".$bul_id."'; return(false) \""; if ($aff_resa_planning){ $form .= "".$msg['resas_planning']."
"; if($nb_expl_reservables ) $form.= "

"; $form.= $aff_resa_planning."
"; } else { if ($nb_expl_reservables && !($categ=="resa_planning") && $nb_expl_reservables) $form.= "".$msg['resas_planning']."


"; } } } else { $form.= "
".htmlentities($myBul->get_serial()->tit1.'.'.$txt_drag, ENT_QUOTES, $charset); if ($bul_titre) $form.= " : ".htmlentities($bul_titre, ENT_QUOTES,$charset); $form.= "
"; } /** * TODO : onglets */ if($myBul->bull_num_notice){ $template_path_records_tabs = "./includes/templates/records/records_elements_tabs.html"; if(file_exists("./includes/templates/records/records_elements_tabs_subst.html")){ $template_path_records_tabs = "./includes/templates/records/records_elements_tabs_subst.html"; } if(file_exists($template_path_records_tabs)){ $h2o_record_tabs = H2o_collection::get_instance($template_path_records_tabs); $records_tabs = new records_tabs(new notice($myBul->bull_num_notice)); $records_list_ui = $records_tabs->get_record()->get_records_list_ui(); if ($records_list_ui) $records_list_ui->set_current_url($pmb_url_base.'catalog.php?categ='.$categ.'&bul_id='.$myBul->bulletin_id.'&sub='.$sub.'&action='.$action.'&quoi='.$quoi); $form.= $h2o_record_tabs->render(array('records_tabs' => $records_tabs, 'bulletin_id' => $myBul->bulletin_id)); } } } return $form; }