14 if (!defined(
'IN_PEEL')) {
20 $tpl->assign(
'sortie_href', get_url(
'sortie'));
21 $tpl->assign(
'STR_ADMIN_DISCONNECT',
$GLOBALS[
'STR_ADMIN_DISCONNECT']);
23 $tpl->assign(
'administrer_url',
$GLOBALS[
'administrer_url']);
24 $tpl->assign(
'wwwroot_in_admin',
$GLOBALS[
'wwwroot_in_admin']);
26 $tpl->assign(
'generator',
'https://www.peel.fr/');
28 $tpl->assign(
'generator',
'http://www.peel-shopping.com/');
31 $admin_welcome =
$GLOBALS[
'STR_HELLO'] .
' ' .
vb(
$_SESSION[
'session_utilisateur'][
'prenom']) .
'';
33 $admin_welcome =
$GLOBALS[
'STR_HELLO'];
36 $tpl->assign(
'page_title', str_replace(
$GLOBALS[
'site'],
'<a href="' .
$GLOBALS[
'wwwroot'] .
'/">' .
$GLOBALS[
'site'] .
'</a>', $GLOBALS[
'DOC_TITLE']));
41 $tpl->assign(
'admin_welcome', $admin_welcome);
42 $tpl->assign(
'logo_src', get_url(
'/images/logo-peel-admin.png'));
44 $tpl->assign(
'is_demo_error', ((empty($_COOKIE[
'demo_warning_close']) || $_COOKIE[
'demo_warning_close']!=
'closed') &&
a_priv(
'demo')));
45 $tpl->assign(
'flags', affiche_flags(
true, null,
false,
$GLOBALS[
'admin_lang_codes'],
false, 26));
47 $tpl->assign(
'GENERAL_ENCODING', GENERAL_ENCODING);
49 $tpl->assign(
'STR_ADMIN_DEMO_WARNING',
$GLOBALS[
'STR_ADMIN_DEMO_WARNING']);
50 $tpl->assign(
'STR_ADMINISTRATION',
$GLOBALS[
'STR_ADMINISTRATION']);
51 if (!empty(
$GLOBALS[
'site_parameters'][
'favicon'])) {
52 $tpl->assign(
'favicon_href',
$GLOBALS[
'repertoire_upload'] .
'/' .
$GLOBALS[
'site_parameters'][
'favicon']);
57 $GLOBALS[
'css_files'][] =
$GLOBALS[
'wwwroot_in_admin'] .
'/modules/annonces/rating_bar/rating.css';
58 $GLOBALS[
'js_files'][] =
$GLOBALS[
'wwwroot_in_admin'] .
'/modules/annonces/rating_bar/js/rating.js';
61 $GLOBALS[
'js_files'][] =
$GLOBALS[
'wwwroot_in_admin'] .
'/lib/js/admin_all_functions.js';
62 if (
vn(
$GLOBALS[
'site_parameters'][
'html_editor']) ==
'1') {
63 $GLOBALS[
'js_files'][] =
$GLOBALS[
'wwwroot_in_admin'] .
'/lib/nicEditor/nicEdit.js';
66 if(file_exists(
$GLOBALS[
'dirroot'] .
'/lib/js/jquery.ui.datepicker-'.
$_SESSION[
'session_langue'].
'.js')) {
68 $GLOBALS[
'js_files'][] =
$GLOBALS[
'wwwroot_in_admin'] .
'/lib/js/jquery.ui.datepicker-'.$_SESSION[
'session_langue'].
'.js';
72 if (
vb(
$GLOBALS[
'site_parameters'][
'enable_prototype']) == 1 && empty(
$GLOBALS[
'site_parameters'][
'bootstrap_enabled'])) {
74 $GLOBALS[
'js_files'][] =
$GLOBALS[
'wwwroot_in_admin'] .
'/lib/js/prototype.js';
75 $GLOBALS[
'js_files'][] =
$GLOBALS[
'wwwroot_in_admin'] .
'/lib/js/effects.js';
76 $GLOBALS[
'js_files'][] =
$GLOBALS[
'wwwroot_in_admin'] .
'/lib/js/controls.js';
80 $GLOBALS[
'js_files'][] =
$GLOBALS[
'wwwroot_in_admin'] .
'/modules/forum/forum.js';
83 $GLOBALS[
'js_files'][] =
$GLOBALS[
'wwwroot_in_admin'] .
'/modules/webmail/administrer/function.js';
86 if (
vb(
$GLOBALS[
'site_parameters'][
'used_uploader']) ==
'fineuploader') {
91 $GLOBALS[
'css_files'][] =
$GLOBALS[
'wwwroot_in_admin'] .
'/lib/css/bootstrap.css';
92 $GLOBALS[
'js_files'][] =
$GLOBALS[
'wwwroot_in_admin'] .
'/lib/js/bootstrap.js';
96 if(!empty(
$GLOBALS[
'sortable_rpc'])) {
97 $GLOBALS[
'js_ready_content_array'][] =
'
98 $(".sortable").sortable({
99 placeholder: "highlight",
103 placeholder: "horizontal_placeholder",
104 forcePlaceholderSize: true,
105 helper: function(e, tr)
107 // Correctif pour la largeur de la ligne déplacée
108 var $originals = tr.children();
109 var $helper = tr.clone();
110 $helper.children().each(function(index)
112 // Set helper cell sizes to match the original sizes
113 $(this).width($originals.eq(index).width())
118 var order = $(this).sortable("serialize");
119 $.post("'.$GLOBALS[
'administrer_url'] .
'/' .
$GLOBALS[
'sortable_rpc'].
'", order);
120 $(".position").fadeTo(600,0.2);
123 if ($(".admin_commande_details").length==0) {
124 $(".sortable").disableSelection(); // on désactive la possibilité au navigateur de faire des sélections, sauf dans la page de commande.
128 $tpl->assign(
'output_create_or_update_order',
vb(
$GLOBALS[
'output_create_or_update_order']));
129 $tpl->assign(
'notification_output', implode(
'',
$GLOBALS[
'notification_output_array']));
132 $tpl->assign(
'js_files', null);
static strip_tags($string, $allowed_tags=null)
String::strip_tags()
static strpos($haystack, $needle, $offset=0)
Returns the numeric position of the first occurrence of needle in the haystack string.
output_general_http_header($page_encoding=null, $cache_duration_in_seconds=null)
Envoie les headers avant l'envoi du HTML.
get_admin_menu()
get_admin_menu()
static html_entity_decode_if_needed($string)
String::html_entity_decode_if_needed()
if(!empty($GLOBALS['site_parameters']['favicon'])) $GLOBALS['js_files'][-10]
get_css_files_to_load($minify=false)
get_css_files_to_load()
a_priv($requested_priv, $demo_allowed=false, $site_configuration_modification=false, $user_id=null)
Renvoie true si l'utilisateur de la session a le privilège $requested_priv ou un droit supérieur Des ...
check_if_module_active($module_name, $specific_file_name=null)
Renvoie si un module est présent et activé ou non - Peut être appelé avant ou après le chargement d'u...
static str_shorten($string, $length_limit, $middle_separator= '', $ending_if_no_middle_separator= '...', $ideal_length_with_clean_cut_if_possible=null)
Raccourcit une chaine de caractère en insérant au milieu ou à la fin un séparateur.
static ucfirst($string)
Returns string with first letter uppercase.
get_datepicker_javascript($load_timepicker=false)
get_datepicker_javascript()
if(!defined('IN_PEEL')) $tpl
init_fineuploader_interface()
Définit les variables javascript nécessaires pour initialiser fineuploader.
if(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']