xhtml = '';
$this->pageId = 'Page#'.$pageId;
$this->flush = false;
$this->currentPage = '';
$this->bodyJs = '';
}
/**
* Affichage global
*
*/
function show()
{
$this->xhtml .= "\n";
return $this->xhtml;
}
/**
* Javascript du BODY
*
*/
function getBodyJs()
{
$js = "var myValidator = new fValidator(\"".$this->formId."\");\n".$this->bodyJs;
return $js;
}
/**
* Entete de formulaire
*
*/
function visitFormosite(Formosite $comp, $level)
{
$this->action = $comp->action;
$this->formId = $comp->id;
return true;
}
/**
* Enregistrement du HTML si la page est concernée
*
*/
function visitPage(Page $comp, $level)
{
if ($this->flush == true) {
if ($comp->id != $this->currentPage) {
$this->xhtml .= "";
$this->flush = false;
}
} elseif ($comp->id == $this->pageId) {
//$this->xhtml .= "
Le fomulaire de la page ".$this->pageId."
\n";
$this->xhtml .= "