Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $options = array(
- 'onActive' => 'function(title, description){
- description.setStyle("display", "block");
- title.addClass("open").removeClass("closed");
- }',
- 'onBackground' => 'function(title, description){
- description.setStyle("display", "none");
- title.addClass("closed").removeClass("open");
- }',
- 'startOffset' => 0, // 0 starts on the first tab, 1 starts the second, etc...
- 'useCookie' => true, // this must not be a string. Don't use quotes.
- );
- echo JHtml::_('tabs.start', 'params', $options);
- // Iterate through the extra form fieldsets and display each one.
- foreach ($this->form->getFieldsets("params") as $fieldsets => $fieldset):
- echo JHtml::_('tabs.panel', JText::_($fieldset->name), $fieldsets);
- ?>
- <?php
- // Iterate through the fields and display them.
- foreach($this->form->getFieldset($fieldset->name) as $field):
- // If the field is hidden, just display the input.
- ?>
- <?php
- if ($field->hidden):
- echo $field->input;
- else:
- ?>
- <?php echo $field->label; ?>
- <?php echo $field->input; ?>
- <?php
- endif;
- ?>
- <?php
- endforeach;
- ?>
- <?php
- endforeach;
- ?>
- <?php echo JHtml::_('tabs.end'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement