AAAAview.html.php000066600000005131151375561670007216 0ustar00form = $this->get('Form'); $this->item = $this->get('Item'); $this->state = $this->get('State'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); } /** * Toolbar for product editing * * @copyright * @author RolandD * @todo * @see * @access protected * @param * @return void * @since 1.0 */ protected function addToolbar() { // Hide the mainmenu JRequest::setVar('hidemainmenu', true); $user = JFactory::getUser(); $isNew = ($this->item->id == 0); $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $user->get('id')); JToolBarHelper::title(JText::_('COM_CSVI_PAGE_'.($checkedOut ? 'VIEW_REPLACEMENT' : ($isNew ? 'ADD_REPLACEMENT' : 'EDIT_REPLACEMENT'))), 'csvi_replacement_48'); if (!$checkedOut) { JToolBarHelper::apply('replacement.apply', 'JTOOLBAR_APPLY'); JToolBarHelper::save('replacement.save', 'JTOOLBAR_SAVE'); JToolBarHelper::custom('replacement.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false); } // If an existing item, can save to a copy. if (!$isNew) { JToolBarHelper::custom('replacement.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false); } if (empty($this->item->id)) { JToolBarHelper::cancel('replacement.cancel', 'JTOOLBAR_CANCEL'); } else { JToolBarHelper::cancel('replacement.cancel', 'JTOOLBAR_CLOSE'); } } } ?>tmpl/.htaccess000066600000000177151375561670007347 0ustar00 Order allow,deny Deny from all tmpl/index.html000066600000000032151375561670007534 0ustar00tmpl/edit.php000066600000002566151375561670007213 0ustar00
  • form->getLabel('name'); ?> form->getInput('name'); ?>
  • form->getLabel('findtext'); ?> form->getInput('findtext'); ?>
  • form->getLabel('replacetext'); ?> form->getInput('replacetext'); ?>
  • form->getLabel('method'); ?> form->getInput('method'); ?>
index.html000066600000000054151375561670006564 0ustar00.htaccess000066600000000177151375561670006373 0ustar00 Order allow,deny Deny from all