$tab3->addElement($label, true); $color = new Xoops\Form\ColorPicker('Color', 'color'); $color->setDescription('Description Color'); $tab3->addElement($color, true); $file = new Xoops\Form\File('File', 'file'); $file->setDescription('Description File'); $tab3->addElement($file, true); $select = new Xoops\Form\Select('Select', 'select', '', 1, false); $select->addOption(1, 'Select 1'); $select->addOption(2, 'Select 2'); $select->addOption(3, 'Select 3'); $select->setDescription('Description Select'); $select->setClass('span2'); $tab3->addElement($select, true); $select_optgroup = new Xoops\Form\Select('Select Optgroup', 'select_optgroup', '', 1, false); $select_optgroup->addOptgroup('Swiss', array(1 => 'Geneva', 2 => 'Bern', 3 => 'Zurich')); $select_optgroup->addOptgroup('France', array(4 => 'Paris', 5 => 'Lyon', 6 => 'Grenoble', 7 => 'Marseille')); $select_optgroup->setDescription('Description Select Optgroup'); $select_optgroup->setClass('span3'); $tab3->addElement($select_optgroup, true); $date = new Xoops\Form\DateSelect('Date', 'date', 2, 0); $date->setDescription('Description Date'); $tab3->addElement($date, true); $date_time = new Xoops\Form\DateTime('Date time', 'date_time', 2, '', 'Date...'); $date_time->setDescription('Description Date time'); $tab3->addElement($date_time, true); $tab3->addElement(new Xoops\Form\Captcha('Captcha', 'captcha', false), true); $testtray = new Xoops\Form\ElementTray('Test tray'); $select_tray = new Xoops\Form\Select('Select_tray', 'select_tray', '', 4, true); $select_tray->addOption(1, 'Select_tray 1'); $select_tray->addOption(2, 'Select_tray 2');