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[] = '
'; $html[] = ''; $html[] = '
'; // Create the user select button. $html[] = '
'; $html[] = '
'; $html[] = ' '; $html[] = ' '.Text::_('COM_PHOCAGALLERY_FORM_SELECT_FOLDER').''; $html[] = '
'; $html[] = '
';*/ /* $html[] = '
'; $html[] = ''; $html[] = '' . Text::_('COM_PHOCAGALLERY_FORM_SELECT_FOLDER').''; $html[] = '
'. "\n";*/ $html[] = '
'; $html[] = ''; $html[] = '' . ' ' . Text::_('COM_PHOCAGALLERY_FORM_SELECT_FOLDER') . ''; $html[] = '
'. "\n"; $html[] = HTMLHelper::_( 'bootstrap.renderModal', $idA, array( 'url' => $link, 'title' => Text::_('COM_PHOCAGALLERY_FORM_SELECT_FOLDER'), 'width' => '700px', 'height' => '400px', 'modalWidth' => '80', 'bodyHeight' => '70', 'footer' => '' ) ); return implode("\n", $html); } }