".$pmb_default_style_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.= HtmlHelper::getInstance()->getStyle($stylesheet); $std_header.= $css_addon; $std_header.=" "; if ($pmb_scan_request_activate) { $std_header.=" "; } $src_maps_dojo = ''; if($pmb_map_activate){ switch($pmb_map_base_layer_type){ case "GOOGLE" : $std_header.=""; break; } $std_header.=""; $std_header.=""; $std_header.=""; $src_maps_dojo.= ""; } if(isset($base_use_dojo)){ if ($param_chat_activate) { $std_header.=""; } global $messages; $array_message_retourne = array(); foreach ($messages->table_js as $group => $msgs) { foreach ($msgs as $key => $value) { $array_message_retourne[] = array( 'code' => $key, 'message' => $value, 'group' => $group ); } } $json_message_retourne = encoding_normalize::json_encode($array_message_retourne); $std_header.=" "; $std_header.=$src_maps_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.= HtmlHelper::getInstance()->getStyle($stylesheet); $selector_header.= $css_addon; $src_maps_dojo = ''; if($pmb_map_activate){ switch($pmb_map_base_layer_type){ case "GOOGLE" : $std_header.=""; break; } $selector_header.=""; $selector_header.=""; $selector_header.=""; $src_maps_dojo.= ""; } if(isset($base_use_dojo)){ $selector_header.=" "; $selector_header.=$src_maps_dojo; $selector_header.=" "; } $selector_header.=" "; // ---------------------------------- // $selector_header_no_cache : template header selecteur (no cache) $selector_header_no_cache = " PMB-selector "; $selector_header_no_cache.= HtmlHelper::getInstance()->getStyle($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_empty=get_url_icon('notification_empty.png'); $notification_icon = "
".$msg[
"; $notification_zone = "
!!visits_statistics!!
!!plugins!!
!!quick_actions!!
"; //chargement du tableau de board du module... $dashboard_module_name = substr($current,0,strpos($current,".")); $dashboard_class_name = ''; 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(); //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("!!visits_statistics!!", $dash->get_visits_statistics_form(), $menu_bar); $menu_bar = str_replace("!!plugins!!", $dash->get_plugins_form(), $menu_bar); $menu_bar = str_replace("!!quick_actions!!", ($pmb_dashboard_quick_params_activate?$dash->get_quick_params_form():''), $menu_bar); break; } }else{ $menu_bar = str_replace("!!notification_zone!!","",$menu_bar); $extra2 = str_replace("!!notification_icon!!","",$extra2); } if(!isset($extra)) $extra = ''; if (defined('SESSrights') && SESSrights & CATALOGAGE_AUTH) { $extra.=""; } $extra.="
    "; if (defined('SESSrights') && 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); if(isset($doc_params_explode[1])) { $doc_params = $doc_params_explode[1]; } else { $doc_params = ''; } $pos = strrpos($doc_params_explode[0], "/") + 1; $script_name=substr($doc_params_explode[0],$pos); $extra .= ''; $extra .= ""; } if (defined('SESSrights') && SESSrights & PREF_AUTH) $extra .=""; $extra .=""; if (defined('SESSrights') && SESSrights & SAUV_AUTH) $extra .=""; if ($pmb_show_rtl) { $extra .= ""; $extra .= ""; } $extra .= ""; $extra .= "
"; $timeout_start_alert = 5000; // 5s pour déclancher la requette des alertes / tableau de bord if(isset($categ) && (($categ=='pret') || $categ=='retour')){ $timeout_start_alert = 30000; // 30s pour les phases de prêt / retour } // 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") || ((defined('SESSrights') && SESSrights & RESTRICTCIRC_AUTH) && ($categ!="pret") && ($categ!="pretrestrict") && ($presence_chaine != false))) { $extra_info = ''; } else { $extra_info =""; $extra_info=""; } if($dashboard_class_name) { $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 = ""; $affich_external_tris_result_liste = ""; if (isset($_SESSION["tri"]) && $_SESSION["tri"]) { require_once($class_path."/sort.class.php"); $sort = new sort("notices","base"); $affich_tris_result_liste .= $msg['tri_par']." ".$sort->descriptionTriParId($_SESSION["tri"]); $affich_external_tris_result_liste .= $msg['tri_par']." ".$sort->descriptionTriParId($_SESSION["tri"]); } $affich_authorities_tris_result_liste = ""; $affich_authorities_popup_tris_result_liste = " "; $expand_result=" "; $end_result_list = " "; /* /listes dépliables et tris */ /* Editeur HTML DOJO */ $cms_dojo_plugins_editor= " data-dojo-props=\"extraPlugins:[ {name: 'pastefromword', width: '400px', height: '200px'}, {name: 'dojox.editor.plugins.TablePlugins', command: 'insertTable'}, {name: 'dojox.editor.plugins.TablePlugins', command: 'modifyTable'}, {name: 'dojox.editor.plugins.TablePlugins', command: 'InsertTableRowBefore'}, {name: 'dojox.editor.plugins.TablePlugins', command: 'InsertTableRowAfter'}, {name: 'dojox.editor.plugins.TablePlugins', command: 'insertTableColumnBefore'}, {name: 'dojox.editor.plugins.TablePlugins', command: 'insertTableColumnAfter'}, {name: 'dojox.editor.plugins.TablePlugins', command: 'deleteTableRow'}, {name: 'dojox.editor.plugins.TablePlugins', command: 'deleteTableColumn'}, {name: 'dojox.editor.plugins.TablePlugins', command: 'colorTableCell'}, {name: 'dojox.editor.plugins.TablePlugins', command: 'tableContextMenu'}, {name: 'dojox.editor.plugins.TablePlugins', command: 'ResizeTableColumn'}, {name: 'fontName', plainText: true}, {name: 'fontSize', plainText: true}, {name: 'formatBlock', plainText: true}, 'foreColor','hiliteColor', 'createLink','insertanchor', 'unlink', 'insertImage', 'fullscreen', 'viewsource' ]\" ";