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*/
134 padding-left: 40px; /* width = 20 for level0, 20 for level1 */
137 .getmenudiv a:hover {
138 text-decoration: none;
143 padding-right: 10px !important;
146 li.lilevel1 > a, li.lilevel1 > i {
147 padding-left: 30px !important;
150 padding-left: 60px !important;
153 padding-left: 90px !important;
156 padding-left: 120px !important;
159 a.alilevel0, span.spanlilevel0 {
160 background-image: url(\''.DOL_URL_ROOT.
'/theme/'.urlencode(
$conf->theme).
'/img/next.png\') !important;
161 background-repeat: no-repeat !important;';
162if ($langs->trans(
"DIRECTION") ==
'rtl') {
163 print
'background-position: right;';
165 print
'background-position-x: 10px;';
168 background-position-y: 18px;
169 padding: 1em 15px 1em 40px;
172 li.lilevel0 font.vsmenudisabled {
173 background-repeat: no-repeat !important;
174 background-position-x: 10px;
175 background-position-y: 16px;
176 padding: 1em 15px 1em 40px;
179 font-size: 16px !important;
182 padding: 1em 15px 0.5em 40px;
183 border-top: 1px solid #aaa;
186 border-right: 0px ! important;
188 li.lilevel1:first-child {
195 li.lilevel1 > a, li.lilevel1 > i {
196 /* background-image: url(\''.DOL_URL_ROOT.
'/theme/'.urlencode(
$conf->theme).
'/img/puce.png\') !important; */
197 background-repeat: no-repeat !important;';
198if ($langs->trans(
"DIRECTION") ==
'rtl') {
199 print
'background-position: right;';
201 print
'background-position-x: 10px;';
203print
'background-position-y: 1px;';
204print
'padding-left: 20px;';
207 li.lilevel1 a, li.lilevel1 {
213 padding: 0.7em 15px 0.7em 40px;
219 padding: 0.6em 15px 0.6em 60px;
225 padding: 0.2em 15px 8px 60px;
231 padding: 0.2em 15px 0.2em 60px;
236 li.lilevel3:last-child {
237 padding-bottom: 10px;
239 a.alilevel0, li.lilevel1 a {
240 text-overflow: ellipsis;
245 .vsmenudisabled .fa, .vsmenudisabled .fas, .vsmenudisabled .far {
246 color: #aaa !important;
250<script nonce="'.getNonce().
'" type="text/javascript">
251$(document).ready(function(){
252 $("body ul").click(function(){
253 console.log("We click on body ul");
255 $(this).siblings().find("li ul").slideUp(0);
257 $(this).find("li ul").slideToggle(200);
259 var target = $(this);
260 $(\'html, body\').animate({
261 scrollTop: target.offset().top
270if (empty($user->socid)) {
277$file_menu =
$conf->standard_menu;
279 $file_menu =
GETPOST(
'menu',
'aZ09');
281if (!class_exists(
'MenuManager')) {
283 $dirmenus = array_merge(array(
"/core/menus/"), (array)
$conf->modules_parts[
'menus']);
284 foreach ($dirmenus as $dirmenu) {
291 dol_syslog(
"You define a menu manager '".$file_menu.
"' that can not be loaded.", LOG_WARNING);
292 $file_menu =
'eldy_menu.php';
293 include_once DOL_DOCUMENT_ROOT.
"/core/menus/standard/".$file_menu;
297$menumanager =
new MenuManager($db, empty($user->socid) ? 0 : 1);
299$menumanager->
loadMenu(
'all',
'all');
302$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.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...