30require
'../main.inc.php';
31require_once DOL_DOCUMENT_ROOT.
'/resource/class/dolresource.class.php';
32require_once DOL_DOCUMENT_ROOT.
'/core/lib/resource.lib.php';
43$langs->loadLangs(array(
'companies',
'interventions'));
47$action =
GETPOST(
'action',
'aZ09');
51 $socid = $user->socid;
54$hookmanager->initHooks(array(
'resourcenote'));
59include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
63$permissionnote = $user->hasRight(
'resource',
'write');
71$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
76 include DOL_DOCUMENT_ROOT.
'/core/actions_setnotes.inc.php';
86llxHeader(
'', $title, $help_url,
'', 0, 0,
'',
'',
'',
'mod-resource page-card_notes');
90if ($id > 0 || !empty($ref)) {
92 print
dol_get_fiche_head($head,
'note', $langs->trans(
'ResourceSingular'), -1,
'resource');
94 $linkback =
'<a href="'.DOL_URL_ROOT.
'/resource/list.php'.(!empty($socid) ?
'?id='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
97 $morehtmlref =
'<div class="refidno">';
98 $morehtmlref .=
'</div>';
101 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
104 print
'<div class="fichecenter">';
105 print
'<div class="underbanner clearboth"></div>';
107 print
'<table class="border tableforfield centpercent">';
111 print
'<td class="titlefield">'.$langs->trans(
"ResourceType").
'</td>';
121 $permission = $user->hasRight(
'resource',
'write');
122 $cssclass =
'titlefield';
123 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($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
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.
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.