\n") { $doc = Zend_Registry::get('doc'); $doc->addScript('js/lib/form-order-select.js'); $doc->addInitFunction('initFormOrderSelect', array($name)); $list = array(); $values = array_keys($options); foreach ($options as $optionValue => $optionLabel) { $list[] = $this->_build($optionValue, $optionLabel, $values, false); } if ($attribs['multiple']) { $hiddenName = $name . '[]'; $multiple = ' multiple="multiple"'; } else { $hiddenName = $name; $multiple = ''; } $selectName = '_' . $name; $html = $this->formSelect($selectName, $value, $attribs, $options, $listsep); $html = '' . $html . '
' . '   ' . '' . '
'; return $html; } }