Re: Idea for a new Package - Chained Selectors

From: Date: Sat, 18 Sep 2004 14:53:55 +0000
Subject: Re: Idea for a new Package - Chained Selectors
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33432@lists.php.net to get a copy of this message
Alan Knowles wrote: >Ian Eure wrote: > >>On Friday 17 September 2004 07:34 pm, Alan Knowles wrote: >> >> >>>But some of us quake in fear at using Quickform :) I see no reason why one would quake in fear at using QuickForm. Unless you really enjoy writing repetitive HTML and validation code. FYI, QuickForm is being used today in very complex web sites with very complex registration, orders, carts processes. And it runs very well while still making it easy to maintain/change the forms and logic to fit customers needs, that are prone to change more often than one thinks. I didn't have the same experience with DB_DataObjects unfortunately so at the moment, I am using my own Data containers and will give Propel a try someday soon. >>>I think you'd be better showing an example HTML page of what you are >>>talking about, and either the code, or an outline of the code design.. Want some code working without QuickForm: <code> require_once 'HTML/QuickForm/hierselect.php'; $select1[0] = 'Pop'; $select1[1] = 'Classical'; $select1[2] = 'Funeral doom'; $select2[0][0] = 'Red Hot Chil Peppers'; $select2[0][1] = 'The Pixies'; $select2[1][0] = 'Wagner'; $select2[1][1] = 'Strauss'; $select2[2][0] = 'Pantheist'; $select2[2][1] = 'Skepticism'; $select3[0][0][0] = '15.00$'; $select3[0][0][1] = '17.00$'; $select3[0][1][0] = '15.00$'; $select3[0][1][1] = '17.00$'; // etc... $sel = new HTML_QuickForm_hierselect('cds', 'Choose CD:'); $sel->setOptions(array($select1, $select2, $select3)); echo $sel->toHtml(); </code> Wrap it around with your HTML. >>Regardless, I don't think that something as simple as a HTML control needs >>it's own package in PEAR. >> >> >mmh, you mean like HTML_Select,HTML_Select_Common, HTML_Menu, >HTML_Table, HTML_Table_*, Pager.... > >It's difficult to judge how simple the package may be with out seeing >examples. Indeed. Bertrand Mansion Mamasam

« previous php.pear.dev (#33432) next »