30 if (!defined(
'NOCSRFCHECK')) define(
'NOCSRFCHECK', 1);
31 if (!defined(
'NOTOKENRENEWAL')) define(
'NOTOKENRENEWAL', 1);
33 if (!defined(
'NOREQUIREMENU')) define(
'NOREQUIREMENU', 1);
34 if (!defined(
'NOREQUIREHTML')) define(
'NOREQUIREHTML', 1);
35 if (!defined(
'NOBROWSERNOTIF')) define(
'NOBROWSERNOTIF', 1);
37 if (!defined(
'DISABLE_JQUERY_TABLEDND')) define(
'DISABLE_JQUERY_TABLEDND', 1);
38 if (!defined(
'DISABLE_JQUERY_JNOTIFY')) define(
'DISABLE_JQUERY_JNOTIFY', 1);
39 if (!defined(
'DISABLE_JQUERY_FLOT')) define(
'DISABLE_JQUERY_FLOT', 1);
40 if (!defined(
'DISABLE_JQUERY_JEDITABLE')) define(
'DISABLE_JQUERY_JEDITABLE', 1);
41 if (!defined(
'DISABLE_CKEDITOR')) define(
'DISABLE_CKEDITOR', 1);
42 if (!defined(
'DISABLE_DATE_PICKER')) define(
'DISABLE_DATE_PICKER', 1);
43 if (!defined(
'DISABLE_SELECT2')) define(
'DISABLE_SELECT2', 1);
45 require_once
'../main.inc.php';
47 if (
GETPOST(
'lang',
'aZ09')) $langs->setDefaultLang(
GETPOST(
'lang',
'aZ09'));
50 $right = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'left' :
'right');
51 $left = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'right' :
'left');
58 $title = $langs->trans(
"Menu");
61 $head =
'<!-- Menu -->'.
"\n";
63 $arrayofcss = array();
64 top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
71 /*Lets hide the non active LIs by default*/
87 background-image: url(\''.DOL_URL_ROOT.
'/theme/'.$conf->theme.
'/img/next.png\') !important;
88 background-repeat: no-repeat !important;
89 background-position-x: 10px;
90 background-position-y: 16px;
91 padding: 1em 15px 1em 40px;
93 li.lilevel0 font.vsmenudisabled {
94 /* background-image: url(/dolibarr_dev/htdocs/theme/eldy/img/next.png) !important; */
95 background-repeat: no-repeat !important;
96 background-position-x: 10px;
97 background-position-y: 16px;
98 padding: 1em 15px 1em 40px;
101 font-size: 16px !important;
104 padding: 1em 15px 0.5em 40px;
105 border-top: 1px solid #aaa;
108 border-right: 0px ! important;
110 li.lilevel1:first-child {
117 li.lilevel1 a, li.lilevel1 {
123 padding: 0.7em 15px 0.7em 40px;
129 padding: 0.6em 15px 0.6em 60px;
135 padding: 0.2em 15px 8px 60px;
141 padding: 0.2em 15px 0.2em 60px;
146 li.lilevel3:last-child {
147 padding-bottom: 10px;
149 a.alilevel0, li.lilevel1 a {
150 text-overflow: ellipsis;
157 <script type="text/javascript">
158 $(document).ready(function(){
159 $("body ul").click(function(){
160 console.log("We click on body ul");
162 $(this).siblings().find("li ul").slideUp(0);
164 $(this).find("li ul").slideToggle(200);
167 $(\'html, body\').animate({
168 scrollTop: target.offset().top
177 if (empty($user->socid))
179 $conf->standard_menu = (empty($conf->global->MAIN_MENU_STANDARD_FORCED) ? (empty($conf->global->MAIN_MENU_STANDARD) ?
'eldy_menu.php' : $conf->global->MAIN_MENU_STANDARD) : $conf->global->MAIN_MENU_STANDARD_FORCED);
182 $conf->standard_menu = (empty($conf->global->MAIN_MENUFRONT_STANDARD_FORCED) ? (empty($conf->global->MAIN_MENUFRONT_STANDARD) ?
'eldy_menu.php' : $conf->global->MAIN_MENUFRONT_STANDARD) : $conf->global->MAIN_MENUFRONT_STANDARD_FORCED);
186 $file_menu = $conf->standard_menu;
187 if (
GETPOST(
'menu',
'aZ09')) $file_menu =
GETPOST(
'menu',
'aZ09');
188 if (!class_exists(
'MenuManager'))
191 $dirmenus = array_merge(array(
"/core/menus/"), (array) $conf->modules_parts[
'menus']);
192 foreach ($dirmenus as $dirmenu)
195 if ($menufound)
break;
199 dol_syslog(
"You define a menu manager '".$file_menu.
"' that can not be loaded.", LOG_WARNING);
200 $file_menu =
'eldy_menu.php';
201 include_once DOL_DOCUMENT_ROOT.
"/core/menus/standard/".$file_menu;
204 $menumanager =
new MenuManager($db, empty($user->socid) ? 0 : 1);
205 $menumanager->
loadMenu(
'all',
'all');
211 print '</html>'.
"\n";
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.
top_htmlhead($head, $title= '', $disablejs=0, $disablehead=0, $arrayofjs= '', $arrayofcss= '', $disablejmobile=0, $disablenofollow=0)
Ouput html header of a page.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename= '', $restricttologhandler= '', $logcontext=null)
Write log message into outputs.
print
Draft customers invoices.