29require
'../main.inc.php';
30require_once DOL_DOCUMENT_ROOT.
'/resource/class/dolresource.class.php';
31require_once DOL_DOCUMENT_ROOT.
'/core/lib/resource.lib.php';
34$langs->loadLangs(array(
'companies',
'interventions'));
38$action =
GETPOST(
'action',
'aZ09');
42 $socid = $user->socid;
45$hookmanager->initHooks(array(
'resourcenote'));
50include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
54$permissionnote = $user->hasRight(
'resource',
'write');
62$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
67 include DOL_DOCUMENT_ROOT.
'/core/actions_setnotes.inc.php';
77llxHeader(
'', $title, $help_url,
'', 0, 0,
'',
'',
'',
'mod-resource page-card_notes');
81if ($id > 0 || !empty($ref)) {
83 print
dol_get_fiche_head($head,
'note', $langs->trans(
'ResourceSingular'), -1,
'resource');
85 $linkback =
'<a href="'.DOL_URL_ROOT.
'/resource/list.php'.(!empty($socid) ?
'?id='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
88 $morehtmlref =
'<div class="refidno">';
89 $morehtmlref .=
'</div>';
92 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
95 print
'<div class="fichecenter">';
96 print
'<div class="underbanner clearboth"></div>';
98 print
'<table class="border tableforfield centpercent">';
102 print
'<td class="titlefield">'.$langs->trans(
"ResourceType").
'</td>';
112 $permission = $user->hasRight(
'resource',
'write');
113 $cssclass =
'titlefield';
114 include DOL_DOCUMENT_ROOT.
'/core/tpl/notes.tpl.php';
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
resource_prepare_head($object)
Prepare head for tabs.
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.