4if (empty($conf) || !is_object($conf)) {
5 print
"Error, template page can't be called as URL";
9if (empty($extrafieldsobjectkey) && is_object(
$object)) {
10 $extrafieldsobjectkey =
$object->table_element;
12if (!isset($disablesortlink)) {
17if (!empty($extrafieldsobjectkey)) {
18 if (!empty($extrafields->attributes[$extrafieldsobjectkey][
'label']) && is_array($extrafields->attributes[$extrafieldsobjectkey][
'label']) && count($extrafields->attributes[$extrafieldsobjectkey][
'label'])) {
19 if (empty($extrafieldsobjectprefix)) {
20 $extrafieldsobjectprefix =
'ef.';
23 foreach ($extrafields->attributes[$extrafieldsobjectkey][
'label'] as $key => $val) {
24 if (!empty($arrayfields[$extrafieldsobjectprefix.$key][
'checked'])) {
25 if ($extrafields->attributes[$extrafieldsobjectkey][
'type'][$key] ==
'separate') {
29 $cssclass = $extrafields->getAlignFlag($key, $extrafieldsobjectkey);
30 $sortonfield = $extrafieldsobjectprefix.$key;
31 if (!empty($extrafields->attributes[$extrafieldsobjectkey][
'computed'][$key])) {
35 if (!empty($extrafields->attributes[$extrafieldsobjectkey][
'langfile'][$key]) && is_object($langs)) {
36 $langs->load($extrafields->attributes[$extrafieldsobjectkey][
'langfile'][$key]);
39 $tooltip = empty($extrafields->attributes[$extrafieldsobjectkey][
'help'][$key]) ?
'' : $extrafields->attributes[$extrafieldsobjectkey][
'help'][$key];
42 print
getTitleFieldOfList($extrafields->attributes[$extrafieldsobjectkey][
'label'][$key], 0, $_SERVER[
"PHP_SELF"], $sortonfield,
"", $param,
'data-titlekey="'.$key.
'"', $sortfield, $sortorder, $cssclass.
' ', $disablesortlink, $tooltip).
"\n";
43 if (isset($totalarray) && isset($totalarray[
'nbfield'])) {
44 $totalarray[
'nbfield']++;
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $disablesortlink=0, $tooltip='', $forcenowrapcolumntitle=0)
Get title line of an array.