".$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 = "
";
// ----------------------------------
// $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!!
$msg[1913]
";
$menu_bar = $menu_bar."\n ";
// L'utilisateur fait la CIRCULATION ?
if (defined('SESSrights') && SESSrights & CIRCULATION_AUTH) {
$menu_bar = $menu_bar."\n$msg[5] ";
}
// L'utilisateur fait le CATALOGAGE ?
if (defined('SESSrights') && SESSrights & CATALOGAGE_AUTH) {
$menu_bar = $menu_bar."\n$msg[6] ";
}
// L'utilisateur fait les AUTORITÉS ?
if (defined('SESSrights') && SESSrights & AUTORITES_AUTH) {
$menu_bar = $menu_bar."\n$msg[132] ";
}
// L'utilisateur fait l'ÉDITIONS ?
if (defined('SESSrights') && SESSrights & EDIT_AUTH) {
$menu_bar = $menu_bar."\n$msg[1100] ";
}
// L'utilisateur fait la DSI ?
if ($dsi_active && (defined('SESSrights') && SESSrights & DSI_AUTH)) {
$menu_bar = $menu_bar."\n$msg[dsi_menu] ";
}
// L'utilisateur fait l'ACQUISITION ?
if ($acquisition_active && (defined('SESSrights') && SESSrights & ACQUISITION_AUTH)) {
$menu_bar = $menu_bar."\n$msg[acquisition_menu] ";
}
// L'utilisateur accède aux extensions ?
if ($pmb_extension_tab && (defined('SESSrights') && SESSrights & EXTENSIONS_AUTH)) {
$menu_bar = $menu_bar."\n$msg[extensions_menu] ";
}
// L'utilisateur fait les DEMANDES ?
if ($demandes_active && (defined('SESSrights') && SESSrights & DEMANDES_AUTH)) {
$menu_bar = $menu_bar."\n$msg[demandes_menu] ";
}
// L'utilisateur fait l'onglet FICHES ?
if ($fiches_active && (defined('SESSrights') && SESSrights & FICHES_AUTH)) {
$menu_bar = $menu_bar."\n".$msg['onglet_fichier']." ";
}
// L'utilisateur fait l'onglet SEMANTIC ?
if ($semantic_active==true && ((defined('SESSrights') && SESSrights & SEMANTIC_AUTH))) {
$menu_bar.= "\n".$msg['semantic_onglet_title']." ";
}
// L'utilisateur fait l'onglet CMS ?
if (defined('SESSrights') && SESSrights & CMS_AUTH) {
$menu_bar = $menu_bar."\n".$msg['cms_onglet_title']." ";
}
// L'utilisateur fait l'onglet FRBR ?
if ($frbr_active==true && defined('SESSrights') && SESSrights & FRBR_AUTH) {
$menu_bar = $menu_bar."\n".$msg['frbr']." ";
}
// L'utilisateur fait l'onglet modélisation ?
if ($modelling_active==true && defined('SESSrights') && SESSrights & MODELLING_AUTH) {
$menu_bar = $menu_bar."\n".$msg['modelling']." ";
}
// L'utilisateur fait l'ADMINISTRATION ?
if (defined('SESSrights') && SESSrights & ADMINISTRATION_AUTH) {
$menu_bar = $menu_bar."\n$msg[7] ";
}
$menu_bar = $menu_bar."
";
$notification_empty=get_url_icon('notification_empty.png');
$notification_icon = "
";
$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.="
";
$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'
]\" ";