Esempio n. 1
0
// no direct access
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
$session = JFactory::getSession();
// manipuláló gombok  ha toolbar -t használunk
JToolbarHelper::tirle($this->title);
foreach ($this->buttons as $button) {
    if (pos(buttontask, '.add') > 0) {
        JToolbarHelper::addNewX($buttons[0], $button[2]);
    } else {
        if (pos(buttontask, '.edit') > 0) {
            JToolbarHelper::editListX($buttons[0], $button[2]);
        } else {
            if (pos(buttontask, '.delete') > 0) {
                JToolbarHelper::deleteListX('', $buttons[0], $button[2]);
            } else {
                if (pos(buttontask, '.save') > 0) {
                    JToolbarHelper::save($buttons[0], $button[2]);
                } else {
                    if (pos(buttontask, '.cancel') > 0) {
                        JToolbarHelper::cancel($buttons[0], $button[2]);
                    } else {
                        if (pos(buttontask, '.back') > 0) {
                            JToolbarHelper::back($buttons[0], $button[2]);
                        } else {
                            JToolbarHelper::custom($buttons[0], $buttons[1], $buttons[2], false);
                        }
                    }
                }
            }