Example #1
0
 function format_group_header(&$col)
 {
     $qn = get_query_column($col->query_name, $this->query->columns);
     // Create sensible group header label from column name
     $tempstring = column_name_to_label($col->query_name);
     $tempstring = $col->derive_attribute("column_title", $tempstring);
     $tempstring = sw_translate($col->derive_attribute("column_title", $tempstring));
     if (!isset($this->jar["pages"][$this->page_count]["groups"]["headers"])) {
         $this->jar["pages"][$this->page_count]["groups"]["headers"] = array();
     }
     $hct = count($this->jar["pages"][$this->page_count]["groups"]["headers"]) - 1;
     $this->jar["pages"][$this->page_count]["groups"]["headers"][$hct] = array("label" => $tempstring, "labelstyle" => $this->query->output_group_header_label_styles, "value" => $qn->column_value, "valuestyle" => $this->query->output_group_header_value_styles);
 }
 function format_group_header(&$col, $custom)
 {
     if ($custom) {
         return;
     }
     $this->text .= '<TR class="swRepGrpHdrRow">';
     $this->text .= '<TD class="swRepGrpHdrLbl" ' . $this->get_style_tags($this->query->output_group_header_label_styles) . '>';
     $qn = get_query_column($col->query_name, $this->query->columns);
     $padstring = $qn->column_value;
     // Create sensible group header label from column name
     $tempstring = column_name_to_label($col->query_name);
     $tempstring = $col->derive_attribute("column_title", $tempstring);
     $tempstring = sw_translate($col->derive_attribute("column_title", $tempstring));
     $this->text .= sw_translate($col->derive_attribute("group_header_label", $tempstring));
     $this->text .= "</TD>";
     $this->text .= '<TD class="swRepGrpHdrDat" ' . $this->get_style_tags($this->query->output_group_header_value_styles) . '>';
     $this->text .= "{$padstring}";
     $this->text .= "</TD>";
     $this->text .= "</TR>";
 }
 function format_group_header(&$col)
 {
     //cambio 2byte.es
     global $db;
     $this->text .= '<TR class="swRepGrpHdrRow">';
     $this->text .= '<TD class="swRepGrpHdrLbl" ' . $this->get_style_tags($this->query->output_group_header_label_styles) . '>';
     $qn = get_query_column($col->query_name, $this->query->columns);
     $padstring = $qn->column_value;
     //cambio 2byte.es
     //if ($db->forcecharset == 'utf8'){
     $padstring = dol_string_unaccent($padstring);
     /*}
     		else{
     			$padstring = dol_htmlentities($padstring,ENT_COMPAT);
     		}*/
     // Create sensible group header label from column name
     $tempstring = column_name_to_label($col->query_name);
     $tempstring = $col->derive_attribute("column_title", $tempstring);
     $tempstring = sw_translate($col->derive_attribute("column_title", $tempstring));
     $this->text .= sw_translate($col->derive_attribute("group_header_label", $tempstring));
     $this->text .= "</TD>";
     $this->text .= '<TD class="swRepGrpHdrDat" ' . $this->get_style_tags($this->query->output_group_header_value_styles) . '>';
     if ($qn->output_hyperlinks) {
         $this->text .= $this->format_hyperlinks($qn->output_hyperlinks, $padstring);
     } else {
         $this->text .= "{$padstring}";
     }
     $this->text .= "</TD>";
     $this->text .= "</TR>";
 }