31if (!defined(
'NOCSRFCHECK')) {
32 define(
'NOCSRFCHECK', 1);
34if (!defined(
'NOTOKENRENEWAL')) {
35 define(
'NOTOKENRENEWAL', 1);
38if (!defined(
'NOREQUIREMENU')) {
39 define(
'NOREQUIREMENU', 1);
41if (!defined(
'NOREQUIREHTML')) {
42 define(
'NOREQUIREHTML', 1);
44if (!defined(
'NOBROWSERNOTIF')) {
45 define(
'NOBROWSERNOTIF', 1);
48if (!defined(
'DISABLE_JQUERY_TABLEDND')) {
49 define(
'DISABLE_JQUERY_TABLEDND', 1);
51if (!defined(
'DISABLE_JQUERY_JNOTIFY')) {
52 define(
'DISABLE_JQUERY_JNOTIFY', 1);
54if (!defined(
'DISABLE_JQUERY_FLOT')) {
55 define(
'DISABLE_JQUERY_FLOT', 1);
57if (!defined(
'DISABLE_JQUERY_JEDITABLE')) {
58 define(
'DISABLE_JQUERY_JEDITABLE', 1);
60if (!defined(
'DISABLE_CKEDITOR')) {
61 define(
'DISABLE_CKEDITOR', 1);
63if (!defined(
'DISABLE_DATE_PICKER')) {
64 define(
'DISABLE_DATE_PICKER', 1);
66if (!defined(
'DISABLE_SELECT2')) {
67 define(
'DISABLE_SELECT2', 1);
70require_once
'../main.inc.php';
73 $langs->setDefaultLang(
GETPOST(
'lang',
'aZ09'));
77$right = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'left' :
'right');
78$left = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'right' :
'left');
86if (empty($dolibarr_nocache) &&
GETPOSTINT(
'cache')) {
87 header(
'Cache-Control: max-age='.
GETPOSTINT(
'cache').
', public, must-revalidate');
89 header(
'Expires: '.gmdate(
'D, d M Y H:i:s',
dol_now(
'gmt') +
GETPOSTINT(
'cache')).
' GMT');
91 header(
'Pragma: token=public');
94 header(
'Cache-Control: no-cache');
97$title = $langs->trans(
"Menu");
100$head =
'<!-- Menu -->'.
"\n";
102$arrayofcss = array();
103top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
105print
'<body class="getmenudiv">'.
"\n";
110 /* Hide the non active LIs by default*/
126 padding-left: 40px; /* width = 20 for level0, 20 for level1 */
129 .getmenudiv a:hover {
130 text-decoration: none;
135 padding-right: 10px !important;
138 li.lilevel1 > a, li.lilevel1 > i {
139 padding-left: 30px !important;
142 padding-left: 60px !important;
145 padding-left: 90px !important;
148 padding-left: 120px !important;
151 a.alilevel0, span.spanlilevel0 {
152 background-image: url(\''.DOL_URL_ROOT.
'/theme/'.urlencode($conf->theme).
'/img/next.png\') !important;
153 background-repeat: no-repeat !important;';
154if ($langs->trans(
"DIRECTION") ==
'rtl') {
155 print
'background-position: right;';
157 print
'background-position-x: 10px;';
160 background-position-y: 18px;
161 padding: 1em 15px 1em 40px;
164 li.lilevel0 font.vsmenudisabled {
165 background-repeat: no-repeat !important;
166 background-position-x: 10px;
167 background-position-y: 16px;
168 padding: 1em 15px 1em 40px;
171 font-size: 16px !important;
174 padding: 1em 15px 0.5em 40px;
175 border-top: 1px solid #aaa;
178 border-right: 0px ! important;
180 li.lilevel1:first-child {
187 li.lilevel1 > a, li.lilevel1 > i {
188 /* background-image: url(\''.DOL_URL_ROOT.
'/theme/'.urlencode($conf->theme).
'/img/puce.png\') !important; */
189 background-repeat: no-repeat !important;';
190if ($langs->trans(
"DIRECTION") ==
'rtl') {
191 print
'background-position: right;';
193 print
'background-position-x: 10px;';
195print
'background-position-y: 1px;';
196print
'padding-left: 20px;';
199 li.lilevel1 a, li.lilevel1 {
205 padding: 0.7em 15px 0.7em 40px;
211 padding: 0.6em 15px 0.6em 60px;
217 padding: 0.2em 15px 8px 60px;
223 padding: 0.2em 15px 0.2em 60px;
228 li.lilevel3:last-child {
229 padding-bottom: 10px;
231 a.alilevel0, li.lilevel1 a {
232 text-overflow: ellipsis;
237 .vsmenudisabled .fa, .vsmenudisabled .fas, .vsmenudisabled .far {
238 color: #aaa !important;
242<script nonce="'.getNonce().
'" type="text/javascript">
243$(document).ready(function(){
244 $("body ul").click(function(){
245 console.log("We click on body ul");
247 $(this).siblings().find("li ul").slideUp(0);
249 $(this).find("li ul").slideToggle(200);
251 var target = $(this);
252 $(\'html, body\').animate({
253 scrollTop: target.offset().top
262if (empty($user->socid)) {
263 $conf->standard_menu = (!
getDolGlobalString(
'MAIN_MENU_STANDARD_FORCED') ? (!
getDolGlobalString(
'MAIN_MENU_STANDARD') ?
'eldy_menu.php' : $conf->global->MAIN_MENU_STANDARD) : $conf->global->MAIN_MENU_STANDARD_FORCED);
265 $conf->standard_menu = (!
getDolGlobalString(
'MAIN_MENUFRONT_STANDARD_FORCED') ? (!
getDolGlobalString(
'MAIN_MENUFRONT_STANDARD') ?
'eldy_menu.php' : $conf->global->MAIN_MENUFRONT_STANDARD) : $conf->global->MAIN_MENUFRONT_STANDARD_FORCED);
269$file_menu = $conf->standard_menu;
271 $file_menu =
GETPOST(
'menu',
'aZ09');
273if (!class_exists(
'MenuManager')) {
275 $dirmenus = array_merge(array(
"/core/menus/"), (array) $conf->modules_parts[
'menus']);
276 foreach ($dirmenus as $dirmenu) {
283 dol_syslog(
"You define a menu manager '".$file_menu.
"' that can not be loaded.", LOG_WARNING);
284 $file_menu =
'eldy_menu.php';
285 include_once DOL_DOCUMENT_ROOT.
"/core/menus/standard/".$file_menu;
289$menumanager =
new MenuManager($db, empty($user->socid) ? 0 : 1);
291$menumanager->
loadMenu(
'all',
'all');
294$menumanager->showmenu(
'jmobile');
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_now($mode='auto')
Return date for now.
if(!function_exists( 'dol_getprefix')) dol_include_once($relpath, $classname='')
Make an include_once using default root and alternate root if it fails.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs=array(), $arrayofcss=array(), $disableforlogin=0, $disablenofollow=0, $disablenoindex=0)
Output html header of a page.