Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 6916 | Rev 7001 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6916 Rev 6935
Línea 112... Línea 112...
112
            $legend=str_replace(array('%l','%v','%p'),array($l,$val,$p),$format);
112
            $legend=str_replace(array('%l','%v','%p'),array($l,$val,$p),$format);
113
            $this->legends[]=$legend;
113
            $this->legends[]=$legend;
114
            $this->wLegend=max($this->GetStringWidth($legend),$this->wLegend);
114
            $this->wLegend=max($this->GetStringWidth($legend),$this->wLegend);
115
        }
115
        }
116
    }
116
    }
-
 
117
 
-
 
118
     /**
-
 
119
     * Create Table
-
 
120
     * @param string $title
-
 
121
     * @param array $content
-
 
122
     */
-
 
123
    function borderTable($title, $content) {
-
 
124
 
-
 
125
        // Header Table
-
 
126
        $this->SetFillColor(204, 204, 204);
-
 
127
        $this->SetDrawColor(0, 0, 0);
-
 
128
        $this->SetLineWidth(0);
-
 
129
        $this->SetFont('Arial', 'B', 9);
-
 
130
 
-
 
131
        $this->Cell(190, 6, utf8_decode($title), 1, 0, 'L', true);
-
 
132
        $this->Ln();
-
 
133
 
-
 
134
        // Body Table
-
 
135
        $this->SetFillColor(225, 255, 255);
-
 
136
        $this->SetTextColor(0);
-
 
137
 
-
 
138
        foreach ($content as $rs) {
-
 
139
            if (isset($rs['title'])) {
-
 
140
 
-
 
141
                $this->SetFont('Arial', 'B', 9);
-
 
142
                $this->Cell(50, 10, utf8_decode($rs['title']), 1, 0, 'L', false);
-
 
143
                $this->MultiCell(140, 10, utf8_decode($rs['content']), 1, 'L', false);
-
 
144
                $this->Ln();
-
 
145
            } else {
-
 
146
 
-
 
147
                $this->SetFont('Arial', '', 9);
-
 
148
                $this->MultiCell(190, 6, utf8_decode($rs['content']), 1, 'L', false);
-
 
149
            }
-
 
150
        }
-
 
151
        $this->Ln(5);
-
 
152
    }
117
}
153
}