26if (!defined(
'NOTOKENRENEWAL')) {
27 define(
'NOTOKENRENEWAL', 1);
29if (!defined(
'NOREQUIREMENU')) {
30 define(
'NOREQUIREMENU',
'1');
32if (!defined(
'NOREQUIREHTML')) {
33 define(
'NOREQUIREHTML',
'1');
35if (!defined(
'NOREQUIREAJAX')) {
36 define(
'NOREQUIREAJAX',
'1');
38if (!defined(
'NOHEADERNOFOOTER')) {
39 define(
'NOHEADERNOFOOTER',
'1');
42include
'../../main.inc.php';
43include_once DOL_DOCUMENT_ROOT.
'/core/class/html.form.class.php';
47$objecttype =
GETPOST(
'objecttype',
'aZ09arobase');
49$params = array(
'fromajaxtooltip' => 1);
50if (GETPOSTISSET(
'infologin')) {
51 $params[
'infologin'] =
GETPOSTINT(
'infologin');
53if (GETPOSTISSET(
'option')) {
54 $params[
'option'] =
GETPOST(
'option',
'restricthtml');
72$usesublevelpermission = ($module != $element ? $element :
'');
73if ($usesublevelpermission && !$user->hasRight($module, $element)) {
74 $usesublevelpermission =
'';
91if (is_object($object)) {
92 '@phan-var-force CommonObject $object';
95 $html =
$object->getTooltipContent($params);
97 $html = $langs->trans(
'Deleted');
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
fetchObjectByElement($element_id, $element_type, $element_ref='', $useCache=0, $maxCacheByType=10)
Fetch an object from its id and element_type Inclusion of classes is automatic.
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.
httponly_accessforbidden($message='1', $http_response_code=403, $stringalreadysanitized=0)
Show a message to say access is forbidden and stop program.
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.