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 $cssclass = $extrafields->getAlignFlag($key, $extrafieldsobjectkey);
26 $sortonfield = $extrafieldsobjectprefix.$key;
27 if (!empty($extrafields->attributes[$extrafieldsobjectkey][
'computed'][$key])) {
30 if ($extrafields->attributes[$extrafieldsobjectkey][
'type'][$key] ==
'separate') {
31 print
'<th class="liste_titre thseparator"></th>';
33 if (!empty($extrafields->attributes[$extrafieldsobjectkey][
'langfile'][$key]) && is_object($langs)) {
34 $langs->load($extrafields->attributes[$extrafieldsobjectkey][
'langfile'][$key]);
37 $tooltip = empty($extrafields->attributes[$extrafieldsobjectkey][
'help'][$key]) ?
'' : $extrafields->attributes[$extrafieldsobjectkey][
'help'][$key];
39 print
getTitleFieldOfList($extrafields->attributes[$extrafieldsobjectkey][
'label'][$key], 0, $_SERVER[
"PHP_SELF"], $sortonfield,
"", $param,
'data-titlekey="'.$key.
'"', $sortfield, $sortorder, $cssclass.
' ', $disablesortlink, $tooltip).
"\n";
40 if (isset($totalarray) && isset($totalarray[
'nbfield'])) {
41 $totalarray[
'nbfield']++;
getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $disablesortlink=0, $tooltip='', $forcenowrapcolumntitle=0)
Get title line of an array.