$opac_nb_max_tri) { $_SESSION["last_sortnotices"]=""; } $cart_=$_SESSION["cart"]; if ($raz_cart) { $cart_=array(); $_SESSION["cart"]=$cart_; } //Traitement des actions if ($action) { switch ($action) { case "del": for ($i=0; $i function setCheckboxes(the_form, the_objet, do_check) { var elts = document.forms[the_form].elements[the_objet+'[]'] ; var elts_cnt = (typeof(elts.length) != 'undefined') ? elts.length : 0; if (elts_cnt) { for (var i = 0; i < elts_cnt; i++) { elts[i].checked = do_check; } // end for } else { elts.checked = do_check; } return true; } "; print "
"; if ($page=="") $page=1; if (count($cart_)) { //gestion des notices externes (sauvegarde) $cart_ext = array(); for($i=0;$i      "; if($opac_shared_lists && $allow_liste_lecture && $id_empr){ print ""; print "

  "; } if ($opac_show_suggest && $opac_allow_multiple_sugg && $allow_sugg && $id_empr) { print " "; print "

"; print ""; print " "; print ""; } //Tri if ($_SESSION["last_sortnotices"]!="") { $sort=new sort('notices','session'); $sql = "SELECT notice_id FROM notices WHERE notice_id IN ("; for ($z=0; $zappliquer_tri($_SESSION["last_sortnotices"],$sql,"notice_id",0,0); } else { $sql="select notice_id from notices where notice_id in ('".implode("','",$cart_)."') order by tit1"; } $res=mysql_query($sql,$dbh); $cart_=array(); while ($r=mysql_fetch_object($res)) { $cart_[]=$r->notice_id; } if($cart_ext) $cart_ = array_merge($cart_,$cart_ext); $_SESSION["cart"]=$cart_; if (($opac_export_allow=='1') || (($opac_export_allow=='2') && ($_SESSION["user_code"]))) { $nb_fiche=0; $nb_fiche_total=count($cart_); for ($z=0; $z<$nb_fiche_total; $z++) { if (substr($cart_[$z],0,2)!="es"){ // Exclure de l'export (opac, panier) les fiches interdites de diffusion dans administration, Notices > Origines des notices NG72 $sql="select 1 from origine_notice,notices where notice_id = '$cart_[$z]' and origine_catalogage = orinot_id and orinot_diffusion='1' "; } else { $requete = "SELECT source_id FROM external_count WHERE rid=".addslashes(substr($cart_[$z],2)); $myQuery = mysql_query($requete, $dbh); $source_id = mysql_result($myQuery, 0, 0); $sql="select 1 from entrepot_source_$source_id where recid='".addslashes(substr($cart_[$z],2))."' group by ufield,usubfield,field_order,subfield_order,value"; } $res=mysql_query($sql,$dbh); if ($ligne=mysql_fetch_array($res)) $nb_fiche++; } if ($nb_fiche!=$nb_fiche_total) { $msg_export_partiel = str_replace ("!!nb_export!!",$nb_fiche, $msg[export_partiel]); $msg_export_partiel = str_replace ("!!nb_total!!",$nb_fiche_total, $msg_export_partiel); $js_export_partiel = "if (confirm('".addslashes($msg_export_partiel)."')) {"; } else $js_export_partiel = "if (true) {"; print "

"; $radio = "
"; $exp = start_export::get_exports(); $selector_exp = "" ; print sprintf($msg[show_cart_export]." ",$selector_exp.$radio); if ($opac_export_allow_expl) print ""; print ""; print " "; print "
"; } } print "
"; if (count($cart_)) { print "

".$msg["show_cart_content"]." : ".sprintf($msg["show_cart_n_notices"],count($cart_))."

"; print "
"; if ($opac_notices_depliable) print $begin_result_liste; if (count($cart_)<=$pmb_nb_max_tri) print str_replace("!!page_en_cours!!","lvl=show_cart",$affich_tris_result_liste); if ($_SESSION["last_sortnotices"]!="") print " ".$msg['tri_par']." ".$sort->descriptionTriParId($_SESSION["last_sortnotices"])." "; print "
"; // case à cocher de suppression transférée dans la classe notice_affichage $cart_aff_case_traitement = 1 ; print "
\n"; for ($i=(($page-1)*$opac_search_results_per_page); (($i"; print "
"; print "
"; $nbepages = ceil(count($cart_)/$opac_search_results_per_page); $suivante = $page+1; $precedente = $page-1; // affichage du lien précédent si nécéssaire print "
"; // affichage du lien pour retour au début if($precedente > 1) { print ""; } else { print ""; } else { print ""; // lien suivant if($suivante<=$nbepages) { print ""; } else { print ""; } else { print "
\"$msg[start]\"";"; } if($precedente > 0) { print "\"$msg[prec]\"";"; } print "$msg[page] $page/$nbepages\"$msg[next]\"";"; } // affichage du lien vers la fin if($suivante < $nbepages) { print "\"$msg[end]\"";"; } print "

"; } else { print "

".$msg["show_cart_is_empty"]."

"; } ?>