19if (empty($conf) || !is_object($conf)) {
20 print
"Error, template page can't be called as URL";
25$object = $GLOBALS[
'object'];
28<!-- BEGIN PHP TEMPLATE product/canvas/product/tpl/card_view.tpl.php -->
31$titre = $langs->trans(
"CardProduct".$object->type);
35$linkback =
'<a href="'.DOL_URL_ROOT.
'/product/list.php?restore_lastsearch_values=1&type='.$object->type.
'">'.$langs->trans(
"BackToList").
'</a>';
36$object->next_prev_filter =
"fk_product_type = ".((int) $object->type);
39if ($user->socid && !in_array(
'product', explode(
',',
getDolGlobalString(
'MAIN_MODULES_FOR_EXTERNAL')))) {
48<table
class=
"border allwidth">
51<td width=
"15%"><?php echo $langs->trans(
"Ref"); ?></td>
56<td><?php echo $langs->trans(
"Label") ?></td>
59<?php
if ($object->photos) { ?>
60<td valign=
"middle" align=
"center" width=
"30%" rowspan=
"<?php echo $object->nblines; ?>">
61 <?php echo $object->photos; ?>
68<td
class=
"tdtop"><?php echo $langs->trans(
"Description"); ?></td>
73<td><?php echo $langs->trans(
"Nature"); ?></td>
78<td><?php echo $langs->trans(
"Weight"); ?></td>
83<td><?php echo $langs->trans(
"Length"); ?></td>
88<td><?php echo $langs->trans(
"Surface"); ?></td>
93<td><?php echo $langs->trans(
"Volume"); ?></td>
98<td
class=
"tdtop"><?php echo $langs->trans(
"Note"); ?></td>
104<!-- END PHP TEMPLATE -->
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_string_onlythesehtmltags($stringtoclean, $cleanalsosomestyles=1, $removeclassattribute=1, $cleanalsojavascript=0, $allowiframe=0, $allowed_tags=array(), $allowlink=0)
Clean a string to keep only desirable HTML tags.
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...
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
dol_htmloutput_errors($mesgstring='', $mesgarray=array(), $keepembedded=0)
Print formated error messages to output (Used to show messages on html output).
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
product_prepare_head($object)
Prepare array with list of tabs.