"; if ($tableau['nbexplnum']>0){ $padding = ""; $return.= ''; } else $padding = "style=\"padding-left:11px;\""; $return.= "".$tableau['bulletin_numero']; if ($tableau['mention_date']) $return.= pmb_bidi(" (".$tableau['mention_date'].")\n"); elseif ($tableau['date_date']) $return.= pmb_bidi(" (".formatdate($tableau['date_date']).")\n"); if ($tableau['bulletin_titre']) $return.= pmb_bidi(" : ".htmlentities($tableau['bulletin_titre'],ENT_QUOTES, $charset)."\n"); $return.= " ;"; $return.= "\n"; } if (!$print) { return $return; } print $return; } function affichage_liste_bulletins_tableau($res, $print = true) { global $charset, $msg, $opac_show_nb_analysis; global $pmb_collstate_advanced; $return = ''; $return.= "
".$msg['bull_numero']." | ".$msg['bull_mention_date']." | ".$msg['etat_collection_title']." | "; if ($pmb_collstate_advanced) { $return.= "".$msg['bul_collstate']." | "; } if ($opac_show_nb_analysis) { $return .= "".$msg['bulletin_nb_articles']." | "; } $return.= "$analysis | "; } } if ($odd_even==0) { $pair_impair="odd"; $odd_even=1; } else if ($odd_even==1) { $pair_impair="even"; $odd_even=0; } $tr_javascript=" class='$pair_impair' onmouseover=\"this.className='surbrillance'\" onmouseout=\"this.className='$pair_impair'\" onmousedown=\"document.location='./index.php?lvl=bulletin_display&id=".$tableau['bulletin_id']."';\" style='cursor: pointer' "; $return.= "
---|---|---|---|---|---|
|
"; if ($tableau['mention_date']) $return.= pmb_bidi(" ".$tableau['mention_date']."\n"); elseif ($tableau['date_date']) $return.= pmb_bidi(" ".formatdate($tableau['date_date'])."\n"); $return.= " | "; if ($tableau['bulletin_titre']) $return.= pmb_bidi(" ".htmlentities($tableau['bulletin_titre'],ENT_QUOTES, $charset)."\n"); $return.= " | "; if ($td_nb_analysis) { $return .= $td_nb_analysis; } if ($pmb_collstate_advanced) { $collstates = array(); $query = "SELECT collstate_bulletins_num_collstate, state_collections FROM collstate_bulletins JOIN collections_state ON collections_state.collstate_id = collstate_bulletins.collstate_bulletins_num_collstate WHERE collstate_bulletins_num_bulletin = '".$tableau['bulletin_id']."'"; $result = pmb_mysql_query($query); if (pmb_mysql_num_rows($result)) { while ($row = pmb_mysql_fetch_object($result)) { $collstates[$row->collstate_bulletins_num_collstate] = $row->state_collections; } } $return .= "";
$collstate_list = "";
foreach($collstates as $id => $collstate) {
if($collstate_list) {
$collstate_list.= " "; } $collstate_list .="".$collstate.""; } $return .= $collstate_list." | ";
}
$return.= "
"; while(($obj=pmb_mysql_fetch_array($res))) { $depouill.= pmb_bidi(aff_notice($obj["analysis_notice"])); } $depouill.= ""; } $resultat_aff.= $res_print ; $resultat_aff.= $depouill ; if ($notice3->visu_expl && (!$notice3->visu_expl_abon || ($notice3->visu_expl_abon && $_SESSION["user_code"]))) { if (!$opac_resa_planning) { $resa_check=check_statut(0,$id) ; if ($resa_check) { $requete_resa = "SELECT count(1) FROM resa WHERE resa_idbulletin='$id'"; $nb_resa_encours = pmb_mysql_result(pmb_mysql_query($requete_resa,$dbh), 0, 0) ; if ($nb_resa_encours) $message_nbresa = str_replace("!!nbresa!!", $nb_resa_encours, $msg["resa_nb_deja_resa"]) ; if (($_SESSION["user_code"] && $allow_book) && $opac_resa && !$popup_resa) { $ret_resa .= "