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');
37if (!defined(
'NOHEADERNOFOOTER')) {
38 define(
'NOHEADERNOFOOTER',
'1');
41include
'../../main.inc.php';
42include_once DOL_DOCUMENT_ROOT.
'/core/class/html.form.class.php';
46$objecttype =
GETPOST(
'objecttype',
'aZ09arobase');
48$params = array(
'fromajaxtooltip' => 1);
49if (GETPOSTISSET(
'infologin')) {
50 $params[
'infologin'] =
GETPOSTINT(
'infologin');
52if (GETPOSTISSET(
'option')) {
53 $params[
'option'] =
GETPOST(
'option',
'restricthtml');
65$usesublevelpermission = ($module != $element ? $element :
'');
66if ($usesublevelpermission && !$user->hasRight($module, $element)) {
67 $usesublevelpermission =
'';
84if (is_object($object)) {
87 $html =
$object->getTooltipContent($params);
89 $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.