28 require
'../main.inc.php';
29 require_once DOL_DOCUMENT_ROOT.
'/resource/class/dolresource.class.php';
30 require_once DOL_DOCUMENT_ROOT.
'/core/lib/resource.lib.php';
33 $langs->loadLangs(array(
'companies',
'interventions'));
37 $action =
GETPOST(
'action',
'aZ09');
40 if ($user->socid) $socid = $user->socid;
43 $object =
new DolResource($db);
44 $object->fetch($id, $ref);
46 $permissionnote = $user->rights->resource->write;
53 include DOL_DOCUMENT_ROOT.
'/core/actions_setnotes.inc.php';
62 $form =
new Form($db);
64 if ($id > 0 || !empty($ref))
69 $linkback =
'<a href="'.DOL_URL_ROOT.
'/resource/list.php'.(!empty($socid) ?
'?id='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
72 $morehtmlref =
'<div class="refidno">';
73 $morehtmlref .=
'</div>';
76 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
79 print '<div class="fichecenter">';
80 print '<div class="underbanner clearboth"></div>';
82 print '<table class="border tableforfield centpercent">';
86 print '<td class="titlefield">'.$langs->trans(
"ResourceType").
'</td>';
88 print $object->type_label;
96 $permission = $user->rights->resource->write;
97 $cssclass =
'titlefield';
98 include DOL_DOCUMENT_ROOT.
'/core/tpl/notes.tpl.php';
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, $features, $objectid=0, $tableandshare= '', $feature2= '', $dbt_keyfield= 'fk_soc', $dbt_select= 'rowid', $isdraft=0)
Check permissions of a user to show a page and an object.
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
print
Draft customers invoices.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
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.