"; } } closedir($handle); } $handle = @opendir($rep.$style); if(!$handle) { $result = array(); return $result; } while($css = readdir($handle)) { if(is_file($rep.$style."/".$css) && preg_match('/css$/', $css)) { $result[] = $css; $feuilles_style.="\n\t"; } } closedir($handle); // RTL / LTR global $pmb_show_rtl; if ($pmb_show_rtl) { $handlertl = @opendir($rep.$style."/rtl/"); if($handlertl) { while($css = readdir($handlertl)) { if(is_file($rep.$style."/rtl/".$css) && preg_match('/css$/', $css)) { $result[] = $css; $feuilles_style.="\n\t"; } } $feuilles_style.="\n\t"; closedir($handlertl); } } $feuilles_style_deja_lu = $feuilles_style; return $feuilles_style; } if (isset($pmb_default_style_addon)) $css_addon = " "; else $css_addon=""; // ---------------------------------- // $std_header : template header standard // attention : il n'y a plus le : est envoyé par le fichier init.inc.php, c'est bien un header $std_header = " $msg[1001] "; $std_header.= link_styles($stylesheet); $std_header.= $css_addon; $std_header.=" "; if(isset($base_use_dojo)) $std_header.=" "; if (function_exists("auto_hide_getprefs")) $std_header.=auto_hide_getprefs()."\n"; $std_header.=" "; $std_header.=" "; // ---------------------------------- // $selector_header : template header selecteur $selector_header = " PMB-Selector "; $selector_header.= link_styles($stylesheet); //" "; $selector_header.= $css_addon; $selector_header.=" "; // ---------------------------------- // $selector_header_no_cache : template header selecteur (no cache) $selector_header_no_cache = " PMB-selector "; $selector_header_no_cache.= link_styles($stylesheet); $selector_header_no_cache.= $css_addon; $selector_header_no_cache.=" "; // ---------------------------------- // $extra2 : template extra2 $extra2 = "
!!notification_icon!!
"; // ---------------------------------- // $menu_bar : template menu bar // Générer le $menu_bar selon les droits... // Par défaut : la page d'accueil. $menu_bar = " !!notification_zone!! "; $notification_icon = "
".$msg[
"; $notification_zone = "
!!quick_actions!!
!!notifications!!
"; //chargement du tableau de board du module... $dashboard_module_name = substr($current,0,strpos($current,".")); if(file_exists($class_path."/dashboard/dashboard_module_".$dashboard_module_name.".class.php")){ //on récupère la classe; require_once($class_path."/dashboard/dashboard_module_".$dashboard_module_name.".class.php"); $dashboard_class_name = "dashboard_module_".$dashboard_module_name; $dash = new $dashboard_class_name(); $infos = $dash->render_infos(); //Dans certains cas, l'affichage change... switch($dashboard_module_name){ case "dashboard" : //dans le tableau de bord, on n'affiche rien en notification... $menu_bar = str_replace("!!notification_zone!!","",$menu_bar); $extra2 = str_replace("!!notification_icon!!","",$extra2); break; default : if(file_exists($styles_path."/".$stylesheet."/images/notification_new.png")){ $notif_icon_path = $styles_path."/".$stylesheet."/images"; }else{ $notif_icon_path = "./images"; } $notification_zone.=" "; $menu_bar = str_replace("!!notification_zone!!",$notification_zone,$menu_bar); $extra2 = str_replace("!!notification_icon!!",$notification_icon,$extra2); $menu_bar= str_replace("!!quick_actions!!",$dash->get_quick_params_form(),$menu_bar); $menu_bar= str_replace("!!notifications!!",$infos[0]['html'],$menu_bar); break; } }else{ $menu_bar = str_replace("!!notification_zone!!","",$menu_bar); $extra2 = str_replace("!!notification_icon!!","",$extra2); } if (SESSrights & CATALOGAGE_AUTH) { $extra.=""; } $extra.="
    "; if (SESSrights & CATALOGAGE_AUTH) $extra.=""; //affichage du lien d'aide, c'est un "?" pour l'instant if ($pmb_show_help) { // remplacement de !!help_link!! par le lien correspondant $request_uri = $_SERVER["REQUEST_URI"]; $doc_params_explode = explode("?", $request_uri); $doc_params = $doc_params_explode[1]; $pos = strrpos($doc_params_explode[0], "/") + 1; $script_name=substr($doc_params_explode[0],$pos); // ------------------------ LLIUREX 02/02/2015 -------------------------------- // Añadido en el enlace de la ayuda del PMB el pdf en castellano y valenciano // $extra .= ''; $extra .= ""; // ----------------------- LLIUREX 02/02/2015 --------------------------------- $extra .= ""; } if (SESSrights & PREF_AUTH) $extra .=""; $extra .=""; if (SESSrights & SAUV_AUTH) $extra .=""; if ($pmb_show_rtl) { $extra .= ""; $extra .= ""; } $extra .= ""; $extra .= "
"; // Récupération de l'url active et test de présence sur la chaine cir.php' $url_active = $_SERVER['PHP_SELF']; $presence_chaine = strpos($url_active,'circ.php'); // Masquage de l'iframe d'alerte dans le cas // ou l'onglet courant est circulation et utilisateur en circulation restreinte' if ( !function_exists("auto_hide_getprefs") || ((SESSrights & RESTRICTCIRC_AUTH) && ($categ!="pret") && ($categ!="pretrestrict") && ($presence_chaine != false))) { $extra_info = ''; } else { require_once($base_path."/alert/message.inc.php"); if ($current_module=="circ" && $categ!="pret" && $categ!="retour") { require_once($base_path."/alert/resa.inc.php"); require_once("$base_path/alert/expl_todo.inc.php"); require_once($base_path."/alert/empr.inc.php"); //pour les alertes de transferts if ($pmb_transferts_actif && (SESSrights & TRANSFERTS_AUTH)) require_once ($base_path."/alert/transferts.inc.php"); } if ($current_module=="catalog") { require_once($base_path."/alert/tag.inc.php"); require_once($base_path."/alert/sugg.inc.php"); } if ($current_module=="acquisition") { require_once($base_path."/alert/sugg.inc.php"); } if ($current_module=="demandes") { require_once($base_path."/alert/demandes.inc.php"); } if(isset($aff_alerte)) $aff_alerte="
$aff_alerte
"; $extra_info =""; $extra_info=""; } // ---------------------------------- // $footer : template footer standard $footer = " "; /* listes dépliables et tris */ // ici, templates de gestion des listes dépliables et tris en résultat de recherche catalogage ou autres if($pmb_recherche_ajax_mode){ $begin_result_liste = " "; }else{ $begin_result_liste = " "; } $affich_tris_result_liste = ""; if ($_SESSION["tri"]) { $sort = new sort("notices","base"); $affich_tris_result_liste .= $msg['tri_par']." ".$sort->descriptionTriParId($_SESSION["tri"]); } $affich_tris_result_liste .="
"; $expand_result=" "; $end_result_list = " "; /* /listes dépliables et tris */