Modification to the html_options function: <select multiple> enabled
| From: | Bertrand DUNOGIER | Date: | Tue, 05 Jun 2001 22:51:56 +0000 |
| Subject: | Modification to the html_options function: <select multiple> enabled | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-870@lists.php.net to get a copy of this message | ||
Hi,
since I needed it, i've modified the html_functions from
Smarty.Addons.php.
One parameter was added:
multiple
type: boolean
And the parameter selected now accepts a new type:
when multiple == true, selected is an assoc. array like
selected["value"] = true
when selected["current option's value"] == true, that option is
selected.
That's all, here is the source code.
Gimme your advice about it.
Best Regards,
Bertrand DUNOGIER
France
mailto:bdunogier@wanadoo.fr