Updates the attributes in $attr1 with the values in $attr2 without changing the other existing attributes
Class Details
[line 78]
Element for HTML_QuickForm that emulate a multi-select.
The HTML_QuickForm_advmultiselect package adds an element to the HTML_QuickForm package that is two select boxes next to each other emulating a multi-select.
PHP versions 4 and 5
LICENSE: This source file is subject to version 3.0 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/3_0.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.
Defines if both list (unselected, selected) will have their elements be arranged from lowest to highest (or reverse) depending on comparaison function.
SORT_ASC is used to sort in ascending order SORT_DESC is used to sort in descending order
Gets default element stylesheet for a single multi-select shape render
In custom example 4, the template defined lines 80-87 allows a single multi-select checkboxes shape. Useful when javascript is disabled (or when browser is not js compliant). In our example, no need to add javascript code (see lines 170-172), but css is mandatory (see line 142).
In custom example 1, the add and remove buttons have look set by the css class inputCommand. See especially lines 43-48 and 98-103.
In custom example 2, the basic text add and remove buttons are now replaced by images. See lines 43-44.
In custom example 5, we have ability to sort the selection list (on right side) by :
- user-end: with Up and Down buttons
(see lines 65,65,76 and 128-130)
- programming: with the QF element constructor $sort option
(see lines 34,36,38 and 59)