32if (!defined(
'NOCSRFCHECK')) {
33 define(
'NOCSRFCHECK', 1);
35if (!defined(
'NOTOKENRENEWAL')) {
36 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';
80 $langs->setDefaultLang(
GETPOST(
'lang',
'aZ09'));
84$right = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'left' :
'right');
85$left = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'right' :
'left');
86$urlarrow = DOL_URL_ROOT.
'/theme/'.urlencode(
$conf->theme).
'/img/next.png';
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";
123 padding-'.$left.
': 0;
128 /* Hide the non active LIs by default */
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, li.lilevel1 > span {
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 {
167 padding-'.$left.
': 40px;
168 padding-'.$right.
': 15px;
170 /* Arrow of level 1 entries: points to the right when closed, to the bottom when open */
171 a.alilevel0::before, span.spanlilevel0::before {
178 background-image: url(\''.$urlarrow.
'\');
179 background-repeat: no-repeat;
180 transition: transform 0.2s;
182 li.lilevel0.menuopen > a.alilevel0::before {
183 transform: rotate(90deg);
186 padding: 1em 15px 0.5em 40px;
187 border-top: 1px solid #aaa;
190 border-right: 0px ! important;
192 li.lilevel1 a, li.lilevel1 > span {
195 li.lilevel1 a, li.lilevel1 > span, li.lilevel1 {
200 .fa.fa-does-not-exists {
201 padding: 0px !important;
206 padding: 0.7em 15px 0.7em 40px;
212 padding: 0.6em 15px 0.6em 60px;
218 padding: 0.2em 15px 8px 60px;
224 padding: 0.2em 15px 0.2em 60px;
229 li.lilevel3:last-child {
230 padding-bottom: 10px;
232 a.alilevel0, li.lilevel1 a, li.lilevel1 > span {
233 text-overflow: ellipsis;
238 .vsmenudisabled .fa, .vsmenudisabled .fas, .vsmenudisabled .far {
239 color: #aaa !important;
243<script nonce=
"'.getNonce().'" type=
"text/javascript">
244$(document).ready(
function(){
246 $(
"a.vsmenudisabled").click(
function(event){
247 event.preventDefault();
251 $(
"li.lilevel0, li.lilevel1").click(
function(event){
253 if ($(event.target).closest(
"li")[0] !==
this) {
257 console.log(
"We click on a li");
259 var target = $(
this);
260 var childul = target.children(
"ul");
262 if (childul.length == 0) {
267 event.preventDefault();
269 target.siblings().find(
"ul").slideUp(0);
270 target.siblings().removeClass(
"menuopen");
272 if (childul.is(
":visible")) {
273 target.find(
"ul").slideUp(200);
274 target.removeClass(
"menuopen");
275 }
else if (target.hasClass(
"lilevel0")) {
277 if (childul.children(
"li").length == 1) {
278 target.find(
"ul").slideDown(200);
280 target.find(
"ul ul").hide();
281 childul.slideDown(200);
283 target.addClass(
"menuopen");
286 target.find(
"ul").slideDown(200);
289 $(\
'html, body\').animate({
290 scrollTop: target.offset().top
299if (empty($user->socid)) {
300 $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);
302 $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);
306$file_menu =
$conf->standard_menu;
308 $file_menu =
GETPOST(
'menu',
'aZ09');
310if (!class_exists(
'MenuManager')) {
312 $dirmenus = array_merge(array(
"/core/menus/"), (array)
$conf->modules_parts[
'menus']);
313 foreach ($dirmenus as $dirmenu) {
320 dol_syslog(
"You define a menu manager '".$file_menu.
"' that can not be loaded.", LOG_WARNING);
321 $file_menu =
'eldy_menu.php';
326$menumanager =
new MenuManager($db, empty($user->socid) ? 0 : 1);
328$menumanager->loadMenu(
'all',
'all');
331$menumanager->showmenu(
'jmobile');
$propal type
'integer', 'integer:ObjectClass:PathToClass[:AddCreateButtonOrNot[:Filter[:Sortfield]]]',...
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $conf
The main.inc.php has been included so the following variable are now defined:
dol_now($mode='gmt')
Return date for now.
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, $nodefault=0)
Return value of a param into GET or POST supervariable.
GETPOSTINT($paramname, $method=0, $nodefault=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
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.