id; $attr = $this->element['class'] ? ' class="'.(string) $this->element['class'].'"' : ''; $attr .= $this->element['size'] ? ' size="'.(int) $this->element['size'].'"' : ''; $onchange = (string) $this->element['onchange']; $required = ($v = $this->element['required']) ? ' required="required"' : ''; // Build the script. /* $script = array(); $script[] = ' function phocaSelectFolder_'.$this->id.'(title) {'; $script[] = ' document.getElementById("'.$this->id.'_id").value = title;'; $script[] = ' '.$onchange; $script[] = ' SqueezeBox.close();'; $script[] = ' }';*/ HTMLHelper::_('jquery.framework'); $idA = 'pgselectfolder'; // Build the script. $script = array(); $script[] = ' function phocaSelectFolder_'.$this->id.'(title) {'; $script[] = ' document.getElementById("'.$this->id.'").value = title;'; $script[] = ' '.$onchange; $script[] = ' jQuery(\'#'.$idA.'\').modal(\'hide\');'; $script[] = ' }'; // Add the script to the document head. Factory::getDocument()->addScriptDeclaration(implode("\n", $script)); /* $html[] = '