30 if (!defined(
'NOCSRFCHECK')) define(
'NOCSRFCHECK', 1);
31 if (!defined(
'NOTOKENRENEWAL')) define(
'NOTOKENRENEWAL', 1);
33 if (!defined(
'NOREQUIREMENU')) define(
'NOREQUIREMENU', 1);
35 require_once
'../main.inc.php';
37 if (
GETPOST(
'lang',
'aZ09')) $langs->setDefaultLang(
GETPOST(
'lang',
'aZ09'));
41 $right = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'left' :
'right');
42 $left = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'right' :
'left');
49 $title = $langs->trans(
"Info");
52 $head =
'<!-- Quick access -->'.
"\n";
54 $arrayofcss = array();
55 top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
60 print '<div style="padding: 20px;">';
64 $appli = constant(
'DOL_APPLICATION_TITLE');
65 if (!empty($conf->global->MAIN_APPLICATION_TITLE))
67 $appli = $conf->global->MAIN_APPLICATION_TITLE;
68 if (preg_match(
'/\d\.\d/', $appli))
70 if (!preg_match(
'/'.preg_quote(DOL_VERSION).
'/', $appli)) $appli .=
" (".DOL_VERSION.
")";
71 }
else $appli .=
" ".DOL_VERSION;
72 }
else $appli .=
" ".DOL_VERSION;
74 if (!empty($conf->global->MAIN_FEATURES_LEVEL)) $appli .=
"<br>".$langs->trans(
"LevelOfFeature").
': '.$conf->global->MAIN_FEATURES_LEVEL;
77 if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER))
80 if ($_SESSION[
"dol_authmode"] !=
'forceuser' && $_SESSION[
"dol_authmode"] !=
'http')
82 $logouthtmltext .= $langs->trans(
"Logout").
'<br>';
84 $logouttext .=
'<a href="'.DOL_URL_ROOT.
'/user/logout.php">';
86 $logouttext .=
'<span class="fa fa-sign-out atoplogin"></span>';
87 $logouttext .=
'</a>';
89 $logouthtmltext .= $langs->trans(
"NoLogoutProcessWithAuthMode", $_SESSION[
"dol_authmode"]);
90 $logouttext .=
img_picto($langs->trans(
'Logout').
":".$langs->trans(
'Logout'),
'logout_top.png',
'class="login"', 0, 0, 1);
94 print '<div class="login_block_getinfo">'.
"\n";
97 $toprightmenu .=
'<div class="login_block_user">';
101 $toprightmenu .=
'<div class="inline-block nowrap"><div class="inline-block login_block_elem login_block_elem_name" style="padding: 0px;">';
102 $toprightmenu .= $user->getNomUrl($mode,
'', -1, 0, 11, 0, ($user->firstname ?
'firstname' : -1),
'atoplogin');
103 $toprightmenu .=
'</div></div>';
105 $toprightmenu .=
'</div>'.
"\n";
107 $toprightmenu .=
'<div class="login_block_other">';
110 $parameters = array();
111 $result = $hookmanager->executeHooks(
'printTopRightMenu', $parameters);
112 if (is_numeric($result))
114 if (empty($result)) $toprightmenu .= $hookmanager->resPrint;
115 else $toprightmenu = $hookmanager->resPrint;
116 }
else $toprightmenu .= $result;
118 if (!isset($form) || !is_object($form)) {
119 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.form.class.php';
120 $form =
new Form($db);
124 if (!empty($conf->modulebuilder->enabled))
126 $text =
'<a href="'.DOL_URL_ROOT.
'/modulebuilder/index.php?mainmenu=home&leftmenu=admintools" target="modulebuilder">';
128 $text .=
'<span class="fa fa-bug atoplogin"></span>';
130 $toprightmenu .= $form->textwithtooltip(
'', $langs->trans(
"ModuleBuilder"), 2, 1, $text,
'login_block_elem', 2);
195 if (
GETPOST(
'withlogout',
'int')) $toprightmenu .= $form->textwithtooltip(
'', $logouthtmltext, 2, 1, $logouttext,
'login_block_elem', 2);
197 $toprightmenu .=
'</div>';
204 print '</body></html>'.
"\n";
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.
img_picto($titlealt, $picto, $moreatt= '', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt= '', $morecss= '', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
print
Draft customers invoices.