Roundcube Community Forum

Language Specific Support => Deutsch => Topic started by: lacri on January 29, 2009, 06:12:22 AM

Title: tbody problem in der Sortierleiste
Post by: lacri on January 29, 2009, 06:12:22 AM
Hallo wie mir gerade aufgefallen ist da ich recht großen Wert auf eine valide Ausgabe lege gibt es ein kleines Problem mit der Sortierleiste ...

Siehe ganz unten im ausschnitt das



Nun hab ich versucht dies zu fixen nur finde ich den fehler nicht dafür zuständig sollte doch sein die function show in der Datei programm/include/html.php

public function show($attrib = null)
    {
        if (is_array($attrib))
            $this->attrib = array_merge($this->attrib, $attrib);

        $thead = $tbody = "";

        // include
        if (!empty($this->header)) {
            $rowcontent = '';
            foreach ($this->header as $c => $col) {
                $rowcontent .= self::tag('td', $col->attrib, $col->content);
            }
            $thead = self::tag('thead', null, self::tag('tr', null, $rowcontent));
        }

        foreach ($this->rows as $r => $row) {
            $rowcontent = '';
            foreach ($row->cells as $c => $col) {
                $rowcontent .= self::tag('td', $col->attrib, $col->content);
            }

            if ($r < $this->rowindex || count($row->cells)) {
                $tbody .= self::tag('tr', $row->attrib, $rowcontent);
            }
        }

        if ($this->attrib['rowsonly']) {
            return $tbody;
        }

        // add
        $this->content = $thead . self::tag('tbody', null, $tbody);

        unset($this->attrib['cols'], $this->attrib['rowsonly']);
        return parent::show();
    }

sieht aber gut aus finde da keinen Fehler in der Logig wie die Table usw zusammen generiert wird aber weshalb ist der output dann nicht valide und das tbody da eigentlich sollte doch  rowsonly greifen ? und die tbodys gar nicht erscheinen.