$this->setTable($param);
}
else {
- $this->_tabla =& new Tabla($param);
+ $this->_tabla =& new MECON_HTML_Tabla($param);
}
} // end constructor
# FIXME - deberia sacarlo del QuickForm
#$this->_prepend = $form->getFormStart();
$attrs = $form->getAttributesString();
- $this->_prepend = "\n<FORM$attrs>\n";
+ $this->_prepend = "\n<form$attrs>\n";
} // end func startForm
/**
if (!empty($form->_required) && !$form->_freezeAll) {
$id = $this->_tabla->addRow(
array($form->getRequiredNote()),
- array('colspan' => 2, 'align' => 'center', 'cabecera' => true)
+ array('colspan' => 2, 'cabecera' => true)
);
//$this->_tabla->updateCellAttributes($id, array('colspan' => 2));
}
$this->_script = strval($form->getValidationScript());
# FIXME - deberia sacarlo del QuickForm
#$this->_append = $form->getFormEnd();
- $this->_append = "\n</FORM>\n";
+ $this->_append = "\n</form>\n";
} // end func finishForm
/**
$name = $header->getName();
$this->_tabla->addRow(
array($header->toHtml()),
- array('colspan' => 2, $name => true, 'align' => 'center')
+ array('colspan' => 2, $name => true)
);
} // end func renderHeader
if (!$this->_inGroup) {
$id = $this->_tabla->addRow(
array(
- $element->getLabel() . ($required ? '<FONT color="red">*</FONT>' : ''),
- $element->toHtml() . ($error ? "<BR><FONT color=\"red\">$error</FONT>" : ''),
+ $element->getLabel() . ($required ? '<font color="red">*</FONT>' : ''),
+ $element->toHtml() . ($error ? "<br><font color=\"red\">$error</FONT>" : ''),
)
);
$this->_tabla->updateCellAttributes($id, 0, array('titulo' => true, 'align' => 'left'));
$this->_tabla =& $param;
}
+ function getCSS() {
+ return $this->_tabla->getCSS();
+ }
+
} // end class HTML_QuickForm_Renderer_Default
?>