+ // Print footers.
+ if (($this->mInteractive && (count($this->mFooters) > 1)) || (!$this->mInteractive && (count($this->mFooters) > 0))) {
+ $html .= "<tr";
+ if (count($this->mRowOptions) > 0) {
+ foreach ($this->mRowOptions as $k=>$v) {
+ $html .= " $k=\"$v\"";
+ }
+ }
+ $html .= ">\n";
+ foreach ($this->mFooters as $footer) {
+ $html .= "<th";
+ if (count($this->mHeaderOptions) > 0) {
+ foreach ($this->mHeaderOptions as $k=>$v) {
+ $html .= " $k=\"$v\"";
+ }
+ }
+ $html .= ">$footer</th>\n";
+ }
+ $html .= "</tr>\n";
+ }
+