Re: QF multiple rows of elements

From: Date: Tue, 27 Apr 2004 13:01:48 +0000
Subject: Re: QF multiple rows of elements
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12161@lists.php.net to get a copy of this message
<wolfgang.annen@web.de> wrote : > Hi! > > I am trying to create a form for putting in data in line-oriented forms, > e.g. in each row of my form the user puts in a date and an amount. Each row > of the form ist treated as a group but the number of rows can vary. > > My problem is that the addGroup-method does not accept an array variable for > all rows. So I have to define each row by a separate addGroup statement. > > Here my short example code: > > $el[1] = &HTML_QuickForm::createElement('text', 'Datum', null, > ''); > $el[2] = &HTML_QuickForm::createElement('text', 'Betrag', null, > ''); > > $this->addGroup($el, 'row1', 'Zeile:', '&nbsp'); > > $el[1] = &HTML_QuickForm::createElement('text', 'Datum', null, > ''); > $el[2] = &HTML_QuickForm::createElement('text', 'Betrag', null, > ''); > > $this->addGroup($zeile, 'row2', 'Zeile:', '&nbsp'); > > I am sure, there exists a much more comfortable way for this, but I didn't > find the solution. I don't see what is uncomfortable here ? Bertrand Mansion Mamasam

« previous php.pear.general (#12161) next »