Quickform: How to add a feature ?
| From: | ThE PhP_KiD | Date: | Thu, 01 May 2003 18:17:51 +0000 |
| Subject: | Quickform: How to add a feature ? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5172@lists.php.net to get a copy of this message | ||
Hi QuickForms gurus:
Help me, please...!!!
I'm trying to add a new feature to QuickForm::Select package
The Problem:
------------
When you have to much elements (about 500 items) on a SELECT MULTIPLE,
and you need to select several items, can be a trouble to see what
items are selected, and what not.
Since in order to select various items, you need to hold on CTRL key,
and use mouse in order to scrool under the select to view what items
are selected.
The Solution (that I propose):
-----------------------------
Would be nice to add a option to QuickForm::Select object in order
to create something like this:
+-------------+ +-------------+
| option 1 | > | selected 3 |
| option 2 | >> | selected 1 |
| option 3 | < | ... |
| ... | << | |
| option n | | |
+-------------+ +-------------+
"<","<<",">",">>" are buttons
On left <select> you have all options
that you can to select
On right <select> you see all options
that user has select
Then, when you click:
">", your selected item(s) on left <select>.
are putted on the right <select>.
"<", your selected item(s) on right <select>.
are removed from the right <select>.
">>" all item(s) on left <select>
are putted on the right <select>.
"<<" all item(s) on right <select>
are removed
Can you tell me how can I add this feature to
QuickForm::select package ?
OR...
Can I add this like $form->addElement('html','...') ?
how must I proceed ?
I've make some test.
This are attached.
Thank you !!
Mac
Attachment: [application/x-zip-compressed] example_2combos.zip
Attachment: [application/x-zip-compressed] example_2combos.zip