Exemple #1
0
 function setColHeader($val, $attr, &$colHeaders, &$colHeaderAttrs, &$colHeaderClasses, &$filterHeaders)
 {
     $lllProp =& new LllProperties($this->base, $attr);
     $temp = $lllProp->getColHeader();
     if (!$temp) {
         $temp = $lllProp->getLabel();
     }
     $colHeaderClass = "";
     if ($this->tableSort) {
         $colHeaderClass = isset($val["sort"]) ? "table-sortable:" . $val["sort"] : "";
     } else {
         $temp .= Sorting::showSortTool($this->base, $attr);
     }
     if (isset($val["customCss"])) {
         $colHeaderClass .= " " . $val["customCss"];
     }
     $colHeaderClasses[] = $colHeaderClass;
     $colHeaders[] = $temp;
     $colHeaderAttrs[] = isset($headerHeight) ? "nowrap height='{$headerHeight}'" : "nowrap";
     if ($this->tableFilter) {
         if (isset($val["filter"])) {
             $filterHeaders[] = $this->tableFilter->generField($val["filter"], $list, $attr);
         } else {
             $filterHeaders[] = "";
         }
     }
 }