25 require
'../main.inc.php';
26 require_once DOL_DOCUMENT_ROOT.
'/core/lib/asset.lib.php';
27 require_once DOL_DOCUMENT_ROOT.
'/asset/class/asset.class.php';
30 $langs->loadLangs(array(
"asset",
"companies"));
35 $action =
GETPOST(
'action',
'aZ09');
36 $cancel =
GETPOST(
'cancel',
'aZ09');
37 $backtopage =
GETPOST(
'backtopage',
'alpha');
40 $object =
new Asset($db);
42 $diroutputmassaction = $conf->asset->dir_output.
'/temp/massgeneration/'.$user->id;
43 $hookmanager->initHooks(array(
'assetnote'));
46 $extrafields->fetch_name_optionals_label($object->table_element);
54 include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
55 if ($id > 0 || !empty($ref)) $upload_dir = $conf->asset->multidir_output[$object->entity].
"/".$object->id;
58 if (!empty($user->socid)) $socid = $user->socid;
69 include DOL_DOCUMENT_ROOT.
'/core/actions_setnotes.inc.php';
76 $form =
new Form($db);
80 llxHeader(
'', $langs->trans(
'Assets'), $help_url);
82 if ($id > 0 || !empty($ref))
84 $object->fetch_thirdparty();
92 $linkback =
'<a href="'.dol_buildpath(
'/asset/list.php', 1).
'?restore_lastsearch_values=1'.(!empty($socid) ?
'&socid='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
94 $morehtmlref =
'<div class="refidno">';
134 $morehtmlref .=
'</div>';
137 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
140 print '<div class="fichecenter">';
141 print '<div class="underbanner clearboth"></div>';
144 $cssclass =
"titlefield";
145 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.
asset_prepare_head(Asset $object)
Prepare admin pages header.
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.