25if (!defined(
'NOTOKENRENEWAL')) {
26 define(
'NOTOKENRENEWAL', 1);
28if (!defined(
'NOREQUIREMENU')) {
29 define(
'NOREQUIREMENU',
'1');
31if (!defined(
'NOREQUIREHTML')) {
32 define(
'NOREQUIREHTML',
'1');
34if (!defined(
'NOREQUIREAJAX')) {
35 define(
'NOREQUIREAJAX',
'1');
37include
'../../main.inc.php';
38include_once DOL_DOCUMENT_ROOT.
'/core/class/html.form.class.php';
43$objecttype =
GETPOST(
'objecttype',
'aZ09arobase');
45$params = array(
'fromajaxtooltip' => 1);
46if (GETPOSTISSET(
'infologin')) {
47 $params[
'infologin'] =
GETPOST(
'infologin',
'int');
49if (GETPOSTISSET(
'option')) {
50 $params[
'option'] =
GETPOST(
'option',
'restricthtml');
55if (empty($object->element)) {
59$module = $object->module;
60$element = $object->element;
62$usesublevelpermission = ($module != $element ? $element :
'');
63if ($usesublevelpermission && !isset($user->rights->$module->$element)) {
64 $usesublevelpermission =
'';
70restrictedArea($user, $object->module, $object, $object->table_element, $usesublevelpermission);
81if (is_object($object)) {
82 if ($object->id > 0 || !empty($object->ref)) {
84 $html = $object->getTooltipContent($params);
85 } elseif ($res == 0) {
86 $html = $langs->trans(
'Deleted');
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='')
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.
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.
httponly_accessforbidden($message=1, $http_response_code=403, $stringalreadysanitized=0)
Show a message to say access is forbidden and stop program.