32if (!defined(
'NOCSRFCHECK')) {
33 define(
'NOCSRFCHECK', 1);
35if (!defined(
'NOTOKENRENEWAL')) {
36 define(
'NOTOKENRENEWAL', 1);
39if (!defined(
'NOREQUIREMENU')) {
40 define(
'NOREQUIREMENU', 1);
42if (!defined(
'NOREQUIREHTML')) {
43 define(
'NOREQUIREHTML', 1);
45if (!defined(
'NOBROWSERNOTIF')) {
46 define(
'NOBROWSERNOTIF', 1);
49if (!defined(
'DISABLE_JQUERY_TABLEDND')) {
50 define(
'DISABLE_JQUERY_TABLEDND', 1);
52if (!defined(
'DISABLE_JQUERY_JNOTIFY')) {
53 define(
'DISABLE_JQUERY_JNOTIFY', 1);
55if (!defined(
'DISABLE_JQUERY_FLOT')) {
56 define(
'DISABLE_JQUERY_FLOT', 1);
58if (!defined(
'DISABLE_JQUERY_JEDITABLE')) {
59 define(
'DISABLE_JQUERY_JEDITABLE', 1);
61if (!defined(
'DISABLE_CKEDITOR')) {
62 define(
'DISABLE_CKEDITOR', 1);
64if (!defined(
'DISABLE_DATE_PICKER')) {
65 define(
'DISABLE_DATE_PICKER', 1);
67if (!defined(
'DISABLE_SELECT2')) {
68 define(
'DISABLE_SELECT2', 1);
71require_once
'../main.inc.php';
81 $langs->setDefaultLang(
GETPOST(
'lang',
'aZ09'));
85$right = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'left' :
'right');
86$left = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'right' :
'left');
94if (empty($dolibarr_nocache) &&
GETPOSTINT(
'cache')) {
95 header(
'Cache-Control: max-age='.
GETPOSTINT(
'cache').
', public, must-revalidate');
97 header(
'Expires: '.gmdate(
'D, d M Y H:i:s',
dol_now(
'gmt') +
GETPOSTINT(
'cache')).
' GMT');
99 header(
'Pragma: token=public');
102 header(
'Cache-Control: no-cache');
105$title = $langs->trans(
"Menu");
108$head =
'<!-- Menu -->'.
"\n";
110$arrayofcss = array();
111top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
113print
'<body class="getmenudiv">'.
"\n";
118 /* Hide the non active LIs by default*/
124 padding-'.$left.
': 0;
133 .getmenudiv a:hover {
134 text-decoration: none;
137 .ulmenu li.lilevel0 {
138 border-bottom: 1px solid #ccc;
143 padding-'.$right.
': 8px !important;
146 li.lilevel1 > a, li.lilevel1 > i {
147 padding-'.$left.
': 30px !important;
150 padding-'.$left.
': 60px !important;
153 padding-'.$left.
': 40px !important;
156 padding-'.$left.
': 0px !important;
159 padding-'.$left.
': 0px !important;
162 a.alilevel0, span.spanlilevel0 {
163 background-image: url(\''.DOL_URL_ROOT.
'/theme/'.urlencode($conf->theme).
'/img/next.png\') !important;
164 background-repeat: no-repeat !important;
165 background-position-y: 18px;';
166if ($langs->trans(
"DIRECTION") ==
'rtl') {
167 print
'background-position: right;';
168 print
'padding: 1em 40px 1em 15px;';
170 print
'background-position-x: 10px;';
171 print
'padding: 1em 15px 1em 40px;';
176 li.lilevel0 font.vsmenudisabled {
177 background-repeat: no-repeat !important;
178 background-position-x: 10px;
179 background-position-y: 16px;
180 padding: 1em 15px 1em 40px;
183 font-size: 16px !important;
186 padding: 1em 15px 0.5em 40px;
187 border-top: 1px solid #aaa;
190 border-right: 0px ! important;
192 li.lilevel1:first-child {
199 li.lilevel1 > a, li.lilevel1 > i {
200 background-repeat: no-repeat !important;';
201if ($langs->trans(
"DIRECTION") ==
'rtl') {
202 print
'background-position: right;';
204 print
'background-position-x: 10px;';
206print
' background-position-y: 1px;
207 padding-'.$left.
': 20px;
209 li.lilevel1 a, li.lilevel1 {
214 .fa.fa-does-not-exists {
215 padding: 0px !important;
220 padding: 0.7em 15px 0.7em 40px;
226 padding: 0.6em 15px 0.6em 60px;
232 padding: 0.2em 15px 8px 60px;
238 padding: 0.2em 15px 0.2em 60px;
243 li.lilevel3:last-child {
244 padding-bottom: 10px;
246 a.alilevel0, li.lilevel1 a {
247 text-overflow: ellipsis;
252 .vsmenudisabled .fa, .vsmenudisabled .fas, .vsmenudisabled .far {
253 color: #aaa !important;
257<script nonce="'.
getNonce().
'" type="text/javascript">
258$(document).ready(function(){
259 $("body li").click(function(){
260 console.log("We click on a li");
262 $(this).siblings().find("ul").slideUp(0);
264 $(this).find("ul").slideToggle(200);
266 var target = $(this);
267 $(\'html, body\').animate({
268 scrollTop: target.offset().top
277if (empty($user->socid)) {
278 $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);
280 $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);
284$file_menu = $conf->standard_menu;
286 $file_menu =
GETPOST(
'menu',
'aZ09');
288if (!class_exists(
'MenuManager')) {
290 $dirmenus = array_merge(array(
"/core/menus/"), (array) $conf->modules_parts[
'menus']);
291 foreach ($dirmenus as $dirmenu) {
298 dol_syslog(
"You define a menu manager '".$file_menu.
"' that can not be loaded.", LOG_WARNING);
299 $file_menu =
'eldy_menu.php';
304$menumanager =
new MenuManager($db, empty($user->socid) ? 0 : 1);
306$menumanager->
loadMenu(
'all',
'all');
309$menumanager->showmenu(
'jmobile');
dol_now($mode='gmt')
Return date for now.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_sanitizeFileName($str, $newstr='_', $unaccent=1, $includequotes=0, $allowdash=0)
Clean a string to use it as a file name.
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.
getNonce()
Return a random string to be used as a nonce value for js.
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.