$org->AttacherCellule(2, 1, $label); $text = new SInputText('tex', '', true, 'Doe', 6, 6, 'px', 'Ton nom.', 'Il faut remplir le nom.'); $label = new SInputLabel('lab', 'Nom:', $text); $org->AttacherCellule(2, 3, $label); $text = new SInputText('tex', '', true, 'John', -1, -1, 'px', 'Ton prénom.', 'Il faut remplir le prénom.'); $label = new SInputLabel('lab', 'Prénom:', $text); $org->AttacherCellule(2, 5, $label); $text = new SInputFile('fic', '', false, 1, 'Fichier image.', '', INPUTFILE_TYPE_IMAGEPERSO); $label = new SInputLabel('lab', 'Image:', $text); $org->AttacherCellule(3, 1, $label); $bouton = new SInputButton('bou', '', 'Valider', 'Validation en cours', 'id1', 'test', true, true); $org->AttacherCellule(4, 1, $bouton); $bouton = new SInputButton('bou', '', 'Annuler', '', '', 'alert', false, true); $bouton->AjouterParamRetour('Annuler!'); $org->AttacherCellule(5, 1, $bouton); echo $org->BuildHTML(); echo "\n\n</div>"; echo "\n\n"; $sousForm = new SForm('form', 2, 1); $sousForm->SetCadreInputs(1, 1, 3, 6); $sousForm->FusionnerCelluleCadre(1, 1, 0, 2); $sousForm->FusionnerCelluleCadre(1, 4, 0, 2); $sousForm->FusionnerCelluleCadre(2, 1, 0, 1); $sousForm->FusionnerCelluleCadre(2, 3, 0, 1); $sousForm->FusionnerCelluleCadre(2, 5, 0, 1); $sousForm->FusionnerCelluleCadre(3, 1, 0, 5); $select = $sousForm->AjouterInputSelect(1, 1, 'Jeu:'); $select->AjouterElement(1, 'Guild War', 'Jeu gratuit.'); $select->AjouterElement(2, 'Warhammer', 'Jeu avec des nains.', true); $select->AjouterElement(3, 'World of Warcraft', 'Jeu avec des gnomes.'); $select = $sousForm->AjouterInputSelect(1, 4, 'Jeu:', '', true, 'Le jeu auquel tu joues.', 'Il faut choisir un jeu.', 'JEU', '', '');