Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/note.tar
Назад
view.html.php 0000604 00000005673 15245721122 0007202 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage com_users * * @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * User note edit view * * @since 2.5 */ class UsersViewNote extends JViewLegacy { /** * The edit form. * * @var JForm * @since 2.5 */ protected $form; /** * The item data. * * @var object * @since 2.5 */ protected $item; /** * The model state. * * @var JObject * @since 2.5 */ protected $state; /** * Override the display method for the view. * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise a JError object. * * @since 2.5 */ public function display($tpl = null) { // Initialise view variables. $this->state = $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')); // Since we don't track these assets at the item level, use the category id. $canDo = JHelperContent::getActions('com_users', 'category', $this->item->catid); JToolbarHelper::title(JText::_('COM_USERS_NOTES'), 'users 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 { if (JComponentHelper::isEnabled('com_contenthistory') && $this->state->params->get('save_history', 0) && $canDo->get('core.edit')) { JToolbarHelper::versions('com_users.note', $this->item->id); } JToolbarHelper::cancel('note.cancel', 'JTOOLBAR_CLOSE'); } JToolbarHelper::divider(); JToolbarHelper::help('JHELP_USERS_USER_NOTES_EDIT'); } } tmpl/edit.xml 0000604 00000000300 15245721122 0007155 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <metadata> <layout title="COM_USERS_NOTE_VIEW_EDIT_TITLE"> <message> <![CDATA[COM_USERS_NOTE_VIEW_EDIT_DESC]]> </message> </layout> </metadata> tmpl/edit.php 0000604 00000005122 15245721122 0007153 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage com_users * * @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('behavior.formvalidator'); JHtml::_('formbehavior.chosen', 'select'); JFactory::getDocument()->addScriptDeclaration(' jQuery(document).ready(function() { Joomla.submitbutton = function(task) { if (task == "note.cancel" || document.formvalidator.isValid(document.getElementById("note-form"))) { ' . $this->form->getField('body')->save() . ' Joomla.submitform(task, document.getElementById("note-form")); } } });'); ?> <form action="<?php echo JRoute::_('index.php?option=com_users&view=note&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="note-form" class="form-validate form-horizontal"> <fieldset class="adminform"> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('subject'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('subject'); ?> </div> </div> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('user_id'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('user_id'); ?> </div> </div> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('catid'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('catid'); ?> </div> </div> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('state'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('state'); ?> </div> </div> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('review_time'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('review_time'); ?> </div> </div> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('version_note'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('version_note'); ?> </div> </div> <div class="control-group"> <div class="control-label"> <?php echo $this->form->getLabel('body'); ?> </div> <div class="controls"> <?php echo $this->form->getInput('body'); ?> </div> </div> <input type="hidden" name="task" value="" /> <?php echo JHtml::_('form.token'); ?> </fieldset> </form> edit.php 0000604 00000004176 15245724045 0006216 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage com_users * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('behavior.formvalidator'); JFactory::getDocument()->addScriptDeclaration(' jQuery(document).ready(function() { Joomla.submitbutton = function(task) { if (task == "note.cancel" || document.formvalidator.isValid(document.getElementById("note-form"))) { ' . $this->form->getField('body')->save() . ' Joomla.submitform(task, document.getElementById("note-form")); } } });'); ?> <form action="<?php echo JRoute::_('index.php?option=com_users&view=note&id=' . (int) $this->item->id);?>" method="post" name="adminForm" id="note-form" class="form-validate"> <div class="col main-section"> <fieldset class="adminform"> <legend><?php echo empty($this->item->id) ? JText::_('COM_USERS_NEW_NOTE') : JText::sprintf('COM_USERS_EDIT_NOTE', $this->item->id); ?></legend> <ul class="adminformlist"> <li> <?php echo $this->form->getLabel('subject'); ?> <?php echo $this->form->getInput('subject'); ?> </li> <li> <div class="clr"></div> <?php echo $this->form->getLabel('user_id'); ?> <?php echo $this->form->getInput('user_id'); ?> </li> <li> <?php echo $this->form->getLabel('catid'); ?> <?php echo $this->form->getInput('catid'); ?> </li> <li> <?php echo $this->form->getLabel('state'); ?> <?php echo $this->form->getInput('state'); ?> </li> <li> <?php echo $this->form->getLabel('review_time'); ?> <?php echo $this->form->getInput('review_time'); ?> </li> <li> <?php echo $this->form->getLabel('version_note'); ?> <?php echo $this->form->getInput('version_note'); ?> </li> </ul> <div class="clr"></div> <?php echo $this->form->getLabel('body'); ?> <div class="clr"></div> <div class="editor"> <?php echo $this->form->getInput('body'); ?> </div> <input type="hidden" name="task" value="" /> <?php echo JHtml::_('form.token'); ?> </fieldset> </form>
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка