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';
52$result =
restrictedArea($user,
'resource', $object->id,
'resource');
54$permissionnote = $user->rights->resource->write;
62$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
67 include DOL_DOCUMENT_ROOT.
'/core/actions_setnotes.inc.php';
79if ($id > 0 || !empty($ref)) {
81 print
dol_get_fiche_head($head,
'note', $langs->trans(
'ResourceSingular'), -1,
'resource');
83 $linkback =
'<a href="'.DOL_URL_ROOT.
'/resource/list.php'.(!empty($socid) ?
'?id='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
86 $morehtmlref =
'<div class="refidno">';
87 $morehtmlref .=
'</div>';
90 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
93 print
'<div class="fichecenter">';
94 print
'<div class="underbanner clearboth"></div>';
96 print
'<table class="border tableforfield centpercent">';
100 print
'<td class="titlefield">'.$langs->trans(
"ResourceType").
'</td>';
102 print $object->type_label;
110 $permission = $user->rights->resource->write;
111 $cssclass =
'titlefield';
112 include DOL_DOCUMENT_ROOT.
'/core/tpl/notes.tpl.php';
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='rowid', $fieldref='ref', $morehtmlref='', $moreparam='', $nodbprefix=0, $morehtmlleft='', $morehtmlstatus='', $onlybanner=0, $morehtmlright='')
Show tab footer of a card.
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.