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;
134 padding-'.$left.
': 60px; /* width = 20 for level0, 20 for level1 */
137 padding-'.$left.
': 60px; /* width = 20 for level0, 20 for level1 */
140 padding-'.$left.
': 60px; /* width = 20 for level0, 20 for level1 */
143 padding-'.$left.
': 60px; /* width = 20 for level0, 20 for level1 */
146 .getmenudiv a:hover {
147 text-decoration: none;
152 padding-'.$right.
': 8px !important;
155 li.lilevel1 > a, li.lilevel1 > i {
156 padding-'.$left.
': 30px !important;
159 padding-'.$left.
': 60px !important;
162 padding-'.$left.
': 85px !important;
165 padding-'.$left.
': 105px !important;
168 a.alilevel0, span.spanlilevel0 {
169 background-image: url(\''.DOL_URL_ROOT.
'/theme/'.urlencode(
$conf->theme).
'/img/next.png\') !important;
170 background-repeat: no-repeat !important;
171 background-position-y: 18px;';
172if ($langs->trans(
"DIRECTION") ==
'rtl') {
173 print
'background-position: right;';
174 print
'padding: 1em 40px 1em 15px;';
176 print
'background-position-x: 10px;';
177 print
'padding: 1em 15px 1em 40px;';
182 li.lilevel0 font.vsmenudisabled {
183 background-repeat: no-repeat !important;
184 background-position-x: 10px;
185 background-position-y: 16px;
186 padding: 1em 15px 1em 40px;
189 font-size: 16px !important;
192 padding: 1em 15px 0.5em 40px;
193 border-top: 1px solid #aaa;
196 border-right: 0px ! important;
198 li.lilevel1:first-child {
205 li.lilevel1 > a, li.lilevel1 > i {
206 /* background-image: url(\''.DOL_URL_ROOT.
'/theme/'.urlencode(
$conf->theme).
'/img/puce.png\') !important; */
207 background-repeat: no-repeat !important;';
208if ($langs->trans(
"DIRECTION") ==
'rtl') {
209 print
'background-position: right;';
211 print
'background-position-x: 10px;';
213print
' background-position-y: 1px;
214 padding-'.$left.
': 20px;
216 li.lilevel1 a, li.lilevel1 {
221 .fa.fa-does-not-exists {
222 padding: 0px !important;
227 padding: 0.7em 15px 0.7em 40px;
233 padding: 0.6em 15px 0.6em 60px;
239 padding: 0.2em 15px 8px 60px;
245 padding: 0.2em 15px 0.2em 60px;
250 li.lilevel3:last-child {
251 padding-bottom: 10px;
253 a.alilevel0, li.lilevel1 a {
254 text-overflow: ellipsis;
259 .vsmenudisabled .fa, .vsmenudisabled .fas, .vsmenudisabled .far {
260 color: #aaa !important;
264<script nonce="'.
getNonce().
'" type="text/javascript">
265$(document).ready(function(){
266 $("body ul").click(function(){
267 console.log("We click on body ul");
269 $(this).siblings().find("li ul").slideUp(0);
271 $(this).find("li ul").slideToggle(200);
273 var target = $(this);
274 $(\'html, body\').animate({
275 scrollTop: target.offset().top
284if (empty($user->socid)) {
291$file_menu =
$conf->standard_menu;
293 $file_menu =
GETPOST(
'menu',
'aZ09');
295if (!class_exists(
'MenuManager')) {
297 $dirmenus = array_merge(array(
"/core/menus/"), (array)
$conf->modules_parts[
'menus']);
298 foreach ($dirmenus as $dirmenu) {
305 dol_syslog(
"You define a menu manager '".$file_menu.
"' that can not be loaded.", LOG_WARNING);
306 $file_menu =
'eldy_menu.php';
311$menumanager =
new MenuManager($db, empty($user->socid) ? 0 : 1);
313$menumanager->
loadMenu(
'all',
'all');
316$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.
getNonce()
Return a random string to be used as a nonce value for js.
dol_sanitizeFileName($str, $newstr='_', $unaccent=1, $includequotes=0)
Clean a string to use it as a file name.
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...