AAAA.htaccess000066600000000177151402162050006347 0ustar00 Order allow,deny Deny from all index.html000066600000000036151402162050006540 0ustar00tmpl/.htaccess000066600000000177151402162050007323 0ustar00 Order allow,deny Deny from all tmpl/edit.php000066600000003647151402162050007170 0ustar00
item->id ? JText::sprintf('COM_USERS_EDIT_NOTE_N', $this->item->id) : JText::_('COM_USERS_NEW_NOTE');?>
  • form->getLabel('subject'); ?> form->getInput('subject'); ?>
  • form->getLabel('user_id'); ?> form->getInput('user_id'); ?>
  • form->getLabel('catid'); ?> form->getInput('catid'); ?>
  • form->getLabel('state'); ?> form->getInput('state'); ?>
  • form->getLabel('review_time'); ?> form->getInput('review_time'); ?>
form->getLabel('body'); ?>
form->getInput('body'); ?>
tmpl/index.html000066600000000036151402162050007514 0ustar00view.html.php000066600000005341151402162050007175 0ustar00state = $this->get('State'); $this->item = $this->get('Item'); $this->form = $this->get('Form'); // Check for errors. if (count($errors = $this->get('Errors'))) { throw new Exception(implode("\n", $errors), 500); } // Get the component HTML helpers JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); parent::display($tpl); $this->addToolbar(); } /** * Display the toolbar. * * @return void * * @since 2.5 */ protected function addToolbar() { $input = JFactory::getApplication()->input; $input->set('hidemainmenu', 1); $user = JFactory::getUser(); $isNew = ($this->item->id == 0); $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $user->get('id')); $canDo = UsersHelper::getActions($this->state->get('filter.category_id'), $this->item->id); JToolBarHelper::title(JText::_('COM_USERS_NOTES'), 'user'); // If not checked out, can save the item. if (!$checkedOut && ($canDo->get('core.edit') || (count($user->getAuthorisedCategories('com_users', 'core.create'))))) { JToolBarHelper::apply('note.apply'); JToolBarHelper::save('note.save'); } if (!$checkedOut && (count($user->getAuthorisedCategories('com_users', 'core.create')))) { JToolBarHelper::save2new('note.save2new'); } // If an existing item, can save to a copy. if (!$isNew && (count($user->getAuthorisedCategories('com_users', 'core.create')) > 0)) { JToolBarHelper::save2copy('note.save2copy'); } if (empty($this->item->id)) { JToolBarHelper::cancel('note.cancel'); } else { JToolBarHelper::cancel('note.cancel', 'JTOOLBAR_CLOSE'); } JToolBarHelper::divider(); JToolBarHelper::help('JHELP_USERS_USER_NOTES_EDIT'); } }