30if (!defined(
'NOCSRFCHECK')) {
31 define(
'NOCSRFCHECK', 1);
33if (!defined(
'NOTOKENRENEWAL')) {
34 define(
'NOTOKENRENEWAL', 1);
37if (!defined(
'NOREQUIREMENU')) {
38 define(
'NOREQUIREMENU', 1);
40if (!defined(
'NOREQUIREHTML')) {
41 define(
'NOREQUIREHTML', 1);
43if (!defined(
'NOBROWSERNOTIF')) {
44 define(
'NOBROWSERNOTIF', 1);
47if (!defined(
'DISABLE_JQUERY_TABLEDND')) {
48 define(
'DISABLE_JQUERY_TABLEDND', 1);
50if (!defined(
'DISABLE_JQUERY_JNOTIFY')) {
51 define(
'DISABLE_JQUERY_JNOTIFY', 1);
53if (!defined(
'DISABLE_JQUERY_FLOT')) {
54 define(
'DISABLE_JQUERY_FLOT', 1);
56if (!defined(
'DISABLE_JQUERY_JEDITABLE')) {
57 define(
'DISABLE_JQUERY_JEDITABLE', 1);
59if (!defined(
'DISABLE_CKEDITOR')) {
60 define(
'DISABLE_CKEDITOR', 1);
62if (!defined(
'DISABLE_DATE_PICKER')) {
63 define(
'DISABLE_DATE_PICKER', 1);
65if (!defined(
'DISABLE_SELECT2')) {
66 define(
'DISABLE_SELECT2', 1);
69require_once
'../main.inc.php';
72 $langs->setDefaultLang(
GETPOST(
'lang',
'aZ09'));
76$right = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'left' :
'right');
77$left = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'right' :
'left');
85if (empty($dolibarr_nocache) &&
GETPOST(
'cache',
'int')) {
86 header(
'Cache-Control: max-age='.
GETPOST(
'cache',
'int').
', public, must-revalidate');
88 header(
'Expires: '.gmdate(
'D, d M Y H:i:s',
dol_now(
'gmt') +
GETPOST(
'cache',
'int')).
' GMT');
90 header(
'Pragma: token=public');
93 header(
'Cache-Control: no-cache');
96$title = $langs->trans(
"Menu");
99$head =
'<!-- Menu -->'.
"\n";
101$arrayofcss = array();
102top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
104print
'<body class="getmenudiv">'.
"\n";
109 /*Lets hide the non active LIs by default*/
125 padding-left: 40px; /* width = 20 for level0, 20 for level1 */
128 .getmenudiv a:hover {
129 text-decoration: none;
134 padding-right: 10px !important;
137 li.lilevel1 > a, li.lilevel1 > i {
138 padding-left: 30px !important;
141 padding-left: 60px !important;
144 padding-left: 90px !important;
147 padding-left: 120px !important;
150 a.alilevel0, span.spanlilevel0 {
151 background-image: url(\''.DOL_URL_ROOT.
'/theme/'.urlencode($conf->theme).
'/img/next.png\') !important;
152 background-repeat: no-repeat !important;';
153if ($langs->trans(
"DIRECTION") ==
'rtl') {
154 print
'background-position: right;';
156 print
'background-position-x: 10px;';
159 background-position-y: 18px;
160 padding: 1em 15px 1em 40px;
163 li.lilevel0 font.vsmenudisabled {
164 background-repeat: no-repeat !important;
165 background-position-x: 10px;
166 background-position-y: 16px;
167 padding: 1em 15px 1em 40px;
170 font-size: 16px !important;
173 padding: 1em 15px 0.5em 40px;
174 border-top: 1px solid #aaa;
177 border-right: 0px ! important;
179 li.lilevel1:first-child {
186 li.lilevel1 > a, li.lilevel1 > i {
187 /* background-image: url(\''.DOL_URL_ROOT.
'/theme/'.urlencode($conf->theme).
'/img/puce.png\') !important; */
188 background-repeat: no-repeat !important;';
189if ($langs->trans(
"DIRECTION") ==
'rtl') {
190 print
'background-position: right;';
192 print
'background-position-x: 10px;';
194 print
'background-position-y: 1px;';
195 print
'padding-left: 20px;';
198 li.lilevel1 a, li.lilevel1 {
204 padding: 0.7em 15px 0.7em 40px;
210 padding: 0.6em 15px 0.6em 60px;
216 padding: 0.2em 15px 8px 60px;
222 padding: 0.2em 15px 0.2em 60px;
227 li.lilevel3:last-child {
228 padding-bottom: 10px;
230 a.alilevel0, li.lilevel1 a {
231 text-overflow: ellipsis;
236 .vsmenudisabled .fa, .vsmenudisabled .fas, .vsmenudisabled .far {
237 color: #aaa !important;
241<script nonce="'.getNonce().
'" type="text/javascript">
242$(document).ready(function(){
243 $("body ul").click(function(){
244 console.log("We click on body ul");
246 $(this).siblings().find("li ul").slideUp(0);
248 $(this).find("li ul").slideToggle(200);
250 var target = $(this);
251 $(\'html, body\').animate({
252 scrollTop: target.offset().top
261if (empty($user->socid)) {
262 $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);
264 $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);
268$file_menu = $conf->standard_menu;
270 $file_menu =
GETPOST(
'menu',
'aZ09');
272if (!class_exists(
'MenuManager')) {
274 $dirmenus = array_merge(array(
"/core/menus/"), (array) $conf->modules_parts[
'menus']);
275 foreach ($dirmenus as $dirmenu) {
282 dol_syslog(
"You define a menu manager '".$file_menu.
"' that can not be loaded.", LOG_WARNING);
283 $file_menu =
'eldy_menu.php';
284 include_once DOL_DOCUMENT_ROOT.
"/core/menus/standard/".$file_menu;
287$menumanager =
new MenuManager($db, empty($user->socid) ? 0 : 1);
288$menumanager->
loadMenu(
'all',
'all');
290$menumanager->showmenu(
'jmobile');
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 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)
Ouput html header of a page.