dolibarr  7.0.0-beta
extrafields_list_search_title.tpl.php
1 <?php
2 
3 // Protection to avoid direct call of template
4 if (empty($conf) || ! is_object($conf))
5 {
6  print "Error, template page can't be called as URL";
7  exit;
8 }
9 
10 // Loop to show all columns of extrafields for the title line
11 if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label))
12 {
13  foreach($extrafields->attribute_label as $key => $val)
14  {
15  if (! empty($arrayfields["ef.".$key]['checked']))
16  {
17  $align=$extrafields->getAlignFlag($key);
18  $sortonfield = "ef.".$key;
19  if (! empty($extrafields->attribute_computed[$key])) $sortonfield='';
20  print getTitleFieldOfList($langs->trans($extralabels[$key]), 0, $_SERVER["PHP_SELF"], $sortonfield, "", $param, ($align?'align="'.$align.'"':''), $sortfield, $sortorder)."\n";
21  }
22  }
23 }
getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $disablesortlink=0, $tooltip='')
Get title line of an array.
print
Draft customers invoices.
Definition: index.php:91