25 print
"Error, template page can't be called as URL";
34<!-- BEGIN PHP TEMPLATE VIEW.TPL -->
37$titre = $langs->trans(
"CardProduct".
$object->type);
41$linkback =
'<a href="'.DOL_URL_ROOT.
'/product/list.php?restore_lastsearch_values=1&type='.
$object->type.
'">'.$langs->trans(
"BackToList").
'</a>';
42$object->next_prev_filter =
" fk_product_type:=:".((int)
$object->type);
45if ($user->socid && !in_array(
'product', explode(
',',
getDolGlobalString(
'MAIN_MODULES_FOR_EXTERNAL')))) {
49dol_banner_tab($object,
'ref', $linkback, $shownav,
'ref');
54<
table class=
"border allwidth">
57<td width=
"15%"><?php echo $langs->trans(
"Ref"); ?></td>
58<td colspan=
"2"><?php echo
$object->ref; ?></td>
62<td><?php echo $langs->trans(
"Label") ?></td>
63<td><?php echo
$object->label; ?></td>
66<td valign=
"middle" align=
"center" width=
"30%" rowspan=
"<?php echo $object->nblines; ?>">
74<td
class=
"tdtop"><?php echo $langs->trans(
"Description"); ?></td>
75<td colspan=
"2"><?php echo
$object->description; ?></td>
78<tr><td><?php echo $langs->trans(
"Duration"); ?></td>
79<td><?php echo
$object->duration_value; ?>
80<?php echo
$object->duration_unit; ?>
84<td
class=
"tdtop"><?php echo $langs->trans(
"Note"); ?></td>
90<!-- END PHP TEMPLATE -->
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
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_htmlentitiesbr($stringtoencode, $nl2brmode=0, $pagecodefrom='UTF-8', $removelasteolbr=1)
This function is called to encode a string into a HTML string but differs from htmlentities because a...
dol_string_onlythesehtmltags($stringtoclean, $cleanalsosomestyles=1, $removeclassattribute=1, $cleanalsojavascript=0, $allowiframe=0, $allowed_tags=array(), $allowlink=0, $allowscript=0, $allowstyle=0, $allowphp=0)
Clean a string to keep only desirable HTML tags.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
dol_htmloutput_errors($mesgstring='', $mesgarray=array(), $keepembedded=0)
Print formatted error messages to output (Used to show messages on html output).
treeview li table
No Email.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
product_prepare_head($object)
Prepare array with list of tabs.