$rule = $integrator->getRule(JRequest::getInt('id',-1)); if($rule == null){ JToolBarHelper::save(); } JToolBarHelper::cancel(); echo BFIntegratorHtml::edit( $rule, $integrator->getItems(JRequest::getInt('id',-1)), $integrator->getTables(), $integrator->getForms(), $integrator->getFormElements($rule != null ? $rule->form_id : -1), $integrator->getCriteria(JRequest::getInt('id',-1)), $integrator->getCriteriaJoomla(JRequest::getInt('id',-1)), $integrator->getCriteriaFixed(JRequest::getInt('id',-1)) ); break; default: if($task == 'unpublish'){ $integrator->unpublishRule(); } else if($task == 'publish'){ $integrator->publishRule(); } else if($task == 'remove'){ $integrator->removeRules(); }
} } } } } } } } } } $rule = $integrator->getRule(JRequest::getInt('id', -1)); if ($rule == null) { JToolBarHelper::save(); } JToolBarHelper::cancel(); echo BFIntegratorHtml::edit($rule, $integrator->getItems(JRequest::getInt('id', -1)), $integrator->getTables(), $integrator->getForms(), $integrator->getFormElements($rule != null ? $rule->form_id : -1), $integrator->getCriteria(JRequest::getInt('id', -1)), $integrator->getCriteriaJoomla(JRequest::getInt('id', -1)), $integrator->getCriteriaFixed(JRequest::getInt('id', -1))); break; default: if ($task == 'unpublish') { $integrator->unpublishRule(); } else { if ($task == 'publish') { $integrator->publishRule(); } else { if ($task == 'remove') { $integrator->removeRules(); } } } JToolBarHelper::addNew(); JToolBarHelper::deleteList();