Class CMS_dialog_listboxes
Class to manage XHTML formulars relative to an CMS_href object
Located in /automne/classes/dialogs/dialoglistboxes.php (line 26)
CMS_grandFather | --CMS_dialog_listboxes
Create XHTML select boxes XHTML
Example : Array ( // Mandatory 'field_name' => '', // Name of selecte field 'items_possible' => array(integer => string), // First is the value, second the label of Options // Optional 'default_value' => integer, // Current category to show as selected 'attributes' => ' class="input_admin_text"', // A string completing "select" tag with optionnal attributes )
USAGE : Add this javascript and HTML to your form and such event to your form : <form onSubmit="getSelectedOptions_${hidden field name}();"> if your hioden field is "IDS", the function to call will be : getSelectedOptions_IDS() To retrieve selected values from $_POST form use : $my_values = @array_unique(@explode(';', $_POST["ids"]));
Create 2 listboxes XHTML exchanging their values through javascript An hidden field will contain choosen categories values concatenated with semicolon (;) (The field you need to read from $_POST at the end to get user's selection)
Example : Array ( // Mandatory 'field_name' => '', // Hidden field name to get value in 'items_possible' => array(integer => string), // First is the value, second the label of Options // Optional 'items_selected' => array(integer), // Only array of values 'select_width' => '200px', // Width of selects, default 200px 'select_height' => '140px', // Height of selects, default 140px 'separator' => ';', // Separator between values in hidden field, default ; 'form_name' => '', // Javascript form name 'no_admin' => false, // Remove all admin class reference (default = false) 'leftTitle' => '', // Add title ahead left select box 'rightTitle' => '', // Add title ahead right select box 'position' => '', // vertical or horizontal (default) 'disableIDs' => array(integer) // Array of values to disable some items 'description' => array(integer => string) // Array of description for items (title tags) 'selectIDFrom' => string // Tag id of the first listBox (optional) 'selectIDTo' => string // Tag id of the second listBox 'keepOrder' => string // Keep the order specified on items_selected )
USAGE : Add this javascript and HTML to your form and such event to your form : <form onSubmit="getSelectedOptions_${hidden field name}();"> if your hioden field is "IDS", the function to call will be : getSelectedOptions_IDS() To retrieve selected values from $_POST form use : $my_values = @array_unique(@explode(';', $_POST["ids"]));
Inherited From CMS_grandFather
CMS_grandFather::autoload()
CMS_grandFather::hasError()
CMS_grandFather::log()
CMS_grandFather::PHPErrorHandler()
CMS_grandFather::raiseError()
CMS_grandFather::setDebug()
CMS_grandFather::setLog()
CMS_grandFather::_raiseError()
CMS_grandFather::__call()
Inherited from CMS_grandFather
CMS_grandFather::ERROR_LOG
CMS_grandFather::SYSTEM_LABEL
Documentation generated on Wed, 15 Feb 2012 15:30:03 +0100 by phpDocumentor 1.4.3