Ejemplo n.º 1
0
 public function createForm()
 {
     $oUserName = new Projet_Form_Element_Text('login');
     $oUserName->setRequired(true)->setLabel("Nom d'utilisateur");
     $oPassWd = new Projet_Form_Element_Password('passwd');
     $oPassWd->setRequired(true)->setLabel("Mot de Passe");
     $oLogin = new Projet_Form_Element_Submit('SubmitLogin');
     $oLogin->setLabel('Se Connecter');
     $this->addElements(array($oUserName, $oPassWd, $oLogin));
     $this->setDefaultDecorators();
     $this->setAttrib('style', 'width : 25em;');
 }
Ejemplo n.º 2
0
 protected function createSubmit($sText = 'Valider')
 {
     $oSubmit = new Projet_Form_Element_Submit(self::SUBMIT);
     $oSubmit->setLabel($sText);
     return $oSubmit;
 }