echo '<li><a href="#upload" data-toggle="tab">' . $label . '</a></li>'; if ((int) $this->t['enablemultiple'] > 0) { $label = JHtml::_('image', $this->t['i'] . 'icon-16-upload-multiple.png', '') . ' ' . JText::_($this->t['l'] . '_MULTIPLE_UPLOAD'); echo '<li><a href="#multipleupload" data-toggle="tab">' . $label . '</a></li>'; } $label = JHtml::_('image', $this->t['i'] . 'icon-16-folder.png', '') . ' ' . JText::_($this->t['l'] . '_CREATE_FOLDER'); echo '<li><a href="#createfolder" data-toggle="tab">' . $label . '</a></li>'; echo '</ul>'; echo '<div class="tab-content">' . "\n"; echo '<div class="tab-pane" id="upload">' . "\n"; echo $this->loadTemplate('upload'); echo '</div>' . "\n"; echo '<div class="tab-pane" id="multipleupload">' . "\n"; echo $this->loadTemplate('multipleupload'); echo '</div>' . "\n"; echo '<div class="tab-pane" id="createfolder">' . "\n"; //echo PhocaDownloadFileUpload::renderCreateFolder($this->session->getName(), $this->session->getId(), $this->currentFolder, 'phocadownloadmanager', 'manager='.$this->manager.'&tab='.$this->t['currenttab']['upload'].'&field='. $this->field ); echo PhocaDownloadFileUpload::renderCreateFolder($this->session->getName(), $this->session->getId(), $this->currentFolder, 'phocadownloadmanager', 'manager=' . $this->manager . '&tab=createfolder&field=' . $this->field); echo '</div>' . "\n"; echo '</div>' . "\n"; } echo '</div>'; if ($this->t['tab'] != '') { $jsCt = 'a[href=#' . $this->t['tab'] . ']'; } else { $jsCt = 'a:first'; } echo '<script type="text/javascript">'; echo ' jQuery(\'#configTabs ' . $jsCt . '\').tab(\'show\');'; // Select first tab echo '</script>';