"; print "
".$msg["classementGen_list_libelle"]."

"; if ($bouton_ajout) { print "

"; } } print pmb_bidi("
"); $parity=1; $arrayRows=array(); while(list($cle, $valeur) = each($liste)) { $rqt_autorisation=explode(" ",$valeur['autorisations']); if (array_search ($PMBuserid, $rqt_autorisation)!==FALSE || $PMBuserid==1) { $classementRow = $valeur['etagere_classement']; if(!trim($classementRow)){ $classementRow=classementGen::getDefaultLibelle(); } $baselink = "./catalog.php?categ=etagere"; $link = $baselink."&sub=$action&action=edit_etagere&idetagere=".$valeur['idetagere']; if ($parity % 2) { $pair_impair = "even"; } else { $pair_impair = "odd"; } $parity += 1; $tr_javascript=" onmouseover=\"this.className='surbrillance'\" onmouseout=\"this.className='$pair_impair'\" "; $td_javascript_click=" onmousedown=\"document.location='$link';\" "; $rowPrint=pmb_bidi(""); $rowPrint.=pmb_bidi("".$valeur['name']."".($valeur['comment']?" (".$valeur['comment'].")":"").""); $rowPrint.=pmb_bidi("".$valeur['comment_gestion'].""); $rowPrint.=pmb_bidi("".$valeur['nb_paniers'].""); $rowPrint.=pmb_bidi("".($valeur['validite']?$msg['etagere_visible_date_all']:$msg['etagere_visible_date_du']." ".$valeur['validite_date_deb_f']." ".$msg['etagere_visible_date_fin']." ".$valeur['validite_date_fin_f']).""); $rowPrint.=pmb_bidi("".($valeur['visible_accueil']?"X":"")."
".$opac_url_base."index.php?lvl=etagere_see&id=".$valeur['idetagere'].""); if($action=="edit_etagere"){ $classementGen = new classementGen('etagere', $valeur['idetagere']); $rowPrint.=pmb_bidi("".$classementGen->show_selector($baselink,$PMBuserid).""); } $rowPrint.=pmb_bidi(""); $arrayRows[$classementRow]["title"]=stripslashes($classementRow); if(!isset($arrayRows[$classementRow]["etagere_list"])) { $arrayRows[$classementRow]["etagere_list"] = ''; } $arrayRows[$classementRow]["etagere_list"].=$rowPrint; } } //on trie ksort($arrayRows); //on remplace les clés à cause des accents $arrayRows=array_values($arrayRows); foreach($arrayRows as $key => $type) { if($action=="edit_etagere"){ print gen_plus($key,$type["title"],"".$type["etagere_list"]."
".$msg['etagere_name']."".$msg['etagere_comment_gestion']."".$msg["etagere_cart_count"]."".$msg['etagere_visible_date']."".$msg['etagere_visible_accueil']." 
",$deflt_catalog_expanded_caddies); }else{ print gen_plus($key,$type["title"],"".$type["etagere_list"]."
".$msg['etagere_name']."".$msg['etagere_comment_gestion']."".$msg["etagere_cart_count"]."".$msg['etagere_visible_date']."".$msg['etagere_visible_accueil']."
",$deflt_catalog_expanded_caddies); } } } else { print $msg['etagere_no_etagere']; } if ($bouton_ajout) print "
"; }