Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/edit.php.tar
Назад
home/wuectly/www/libraries/fof30/Utils/FEFHelper/edit.php 0000604 00000002671 15245557335 0017223 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2020 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 2, or later */ defined('_JEXEC') || die; use Joomla\CMS\Editor\Editor; use Joomla\CMS\Factory; /** * Custom JHtml (HTMLHelper) class. Offers edit (form) view controls compatible with Akeeba Frontend * Framework (FEF). * * Call these methods as JHtml::_('FEFHelper.edit.methodName', $parameter1, $parameter2, ...) */ abstract class FEFHelperEdit { public static function editor($fieldName, $value, array $params = []) { $params = array_merge([ 'id' => null, 'editor' => null, 'width' => '100%', 'height' => 500, 'columns' => 50, 'rows' => 20, 'created_by' => null, 'asset_id' => null, 'buttons' => true, 'hide' => false, ], $params); $editorType = $params['editor']; if (is_null($editorType)) { $editorType = Factory::getConfig()->get('editor'); $user = Factory::getUser(); if (!$user->guest) { $editorType = $user->getParam('editor', $editorType); } } if (is_null($params['id'])) { $params['id'] = $fieldName; } $editor = Editor::getInstance($editorType); return $editor->display($fieldName, $value, $params['width'], $params['height'], $params['columns'], $params['rows'], $params['buttons'], $params['id'], $params['asset_id'], $params['created_by'], $params); } } home/wuectly/www/components/com_content/views/form/tmpl/edit.php 0000604 00000015441 15245617254 0021237 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage com_content * * @copyright (C) 2009 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.tabstate'); JHtml::_('behavior.keepalive'); JHtml::_('behavior.formvalidator'); JHtml::_('formbehavior.chosen', '#jform_catid', null, array('disable_search_threshold' => 0)); JHtml::_('formbehavior.chosen', '#jform_tags', null, array('placeholder_text_multiple' => JText::_('JGLOBAL_TYPE_OR_SELECT_SOME_TAGS'))); JHtml::_('formbehavior.chosen', 'select'); $this->tab_name = 'com-content-form'; $this->ignore_fieldsets = array('image-intro', 'image-full', 'jmetadata', 'item_associations'); // Create shortcut to parameters. $params = $this->state->get('params'); // This checks if the editor config options have ever been saved. If they haven't they will fall back to the original settings. $editoroptions = isset($params->show_publishing_options); if (!$editoroptions) { $params->show_urls_images_frontend = '0'; } JFactory::getDocument()->addScriptDeclaration(" Joomla.submitbutton = function(task) { if (task == 'article.cancel' || document.formvalidator.isValid(document.getElementById('adminForm'))) { " . $this->form->getField('articletext')->save() . " Joomla.submitform(task); } } "); ?> <div class="edit item-page<?php echo $this->pageclass_sfx; ?>"> <?php if ($params->get('show_page_heading')) : ?> <div class="page-header"> <h1> <?php echo $this->escape($params->get('page_heading')); ?> </h1> </div> <?php endif; ?> <form action="<?php echo JRoute::_('index.php?option=com_content&a_id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="adminForm" class="form-validate form-vertical"> <fieldset> <?php echo JHtml::_('bootstrap.startTabSet', $this->tab_name, array('active' => 'editor')); ?> <?php echo JHtml::_('bootstrap.addTab', $this->tab_name, 'editor', JText::_('COM_CONTENT_ARTICLE_CONTENT')); ?> <?php echo $this->form->renderField('title'); ?> <?php if (is_null($this->item->id)) : ?> <?php echo $this->form->renderField('alias'); ?> <?php endif; ?> <?php echo $this->form->getInput('articletext'); ?> <?php if ($this->captchaEnabled) : ?> <?php echo $this->form->renderField('captcha'); ?> <?php endif; ?> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php if ($params->get('show_urls_images_frontend')) : ?> <?php echo JHtml::_('bootstrap.addTab', $this->tab_name, 'images', JText::_('COM_CONTENT_IMAGES_AND_URLS')); ?> <?php echo $this->form->renderField('image_intro', 'images'); ?> <?php echo $this->form->renderField('image_intro_alt', 'images'); ?> <?php echo $this->form->renderField('image_intro_caption', 'images'); ?> <?php echo $this->form->renderField('float_intro', 'images'); ?> <?php echo $this->form->renderField('image_fulltext', 'images'); ?> <?php echo $this->form->renderField('image_fulltext_alt', 'images'); ?> <?php echo $this->form->renderField('image_fulltext_caption', 'images'); ?> <?php echo $this->form->renderField('float_fulltext', 'images'); ?> <?php echo $this->form->renderField('urla', 'urls'); ?> <?php echo $this->form->renderField('urlatext', 'urls'); ?> <div class="control-group"> <div class="controls"> <?php echo $this->form->getInput('targeta', 'urls'); ?> </div> </div> <?php echo $this->form->renderField('urlb', 'urls'); ?> <?php echo $this->form->renderField('urlbtext', 'urls'); ?> <div class="control-group"> <div class="controls"> <?php echo $this->form->getInput('targetb', 'urls'); ?> </div> </div> <?php echo $this->form->renderField('urlc', 'urls'); ?> <?php echo $this->form->renderField('urlctext', 'urls'); ?> <div class="control-group"> <div class="controls"> <?php echo $this->form->getInput('targetc', 'urls'); ?> </div> </div> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php endif; ?> <?php echo JLayoutHelper::render('joomla.edit.params', $this); ?> <?php echo JHtml::_('bootstrap.addTab', $this->tab_name, 'publishing', JText::_('COM_CONTENT_PUBLISHING')); ?> <?php echo $this->form->renderField('catid'); ?> <?php echo $this->form->renderField('tags'); ?> <?php echo $this->form->renderField('note'); ?> <?php if ($params->get('save_history', 0)) : ?> <?php echo $this->form->renderField('version_note'); ?> <?php endif; ?> <?php if ($params->get('show_publishing_options', 1) == 1) : ?> <?php echo $this->form->renderField('created_by_alias'); ?> <?php endif; ?> <?php if ($this->item->params->get('access-change')) : ?> <?php echo $this->form->renderField('state'); ?> <?php echo $this->form->renderField('featured'); ?> <?php if ($params->get('show_publishing_options', 1) == 1) : ?> <?php echo $this->form->renderField('publish_up'); ?> <?php echo $this->form->renderField('publish_down'); ?> <?php endif; ?> <?php endif; ?> <?php echo $this->form->renderField('access'); ?> <?php if (is_null($this->item->id)) : ?> <div class="control-group"> <div class="control-label"> </div> <div class="controls"> <?php echo JText::_('COM_CONTENT_ORDERING'); ?> </div> </div> <?php endif; ?> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php echo JHtml::_('bootstrap.addTab', $this->tab_name, 'language', JText::_('JFIELD_LANGUAGE_LABEL')); ?> <?php echo $this->form->renderField('language'); ?> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php if ($params->get('show_publishing_options', 1) == 1) : ?> <?php echo JHtml::_('bootstrap.addTab', $this->tab_name, 'metadata', JText::_('COM_CONTENT_METADATA')); ?> <?php echo $this->form->renderField('metadesc'); ?> <?php echo $this->form->renderField('metakey'); ?> <?php echo JHtml::_('bootstrap.endTab'); ?> <?php endif; ?> <?php echo JHtml::_('bootstrap.endTabSet'); ?> <input type="hidden" name="task" value="" /> <input type="hidden" name="return" value="<?php echo $this->return_page; ?>" /> <?php echo JHtml::_('form.token'); ?> </fieldset> <div class="btn-toolbar"> <div class="btn-group"> <button type="button" class="btn btn-primary" onclick="Joomla.submitbutton('article.save')"> <span class="icon-ok"></span><?php echo JText::_('JSAVE') ?> </button> </div> <div class="btn-group"> <button type="button" class="btn" onclick="Joomla.submitbutton('article.cancel')"> <span class="icon-cancel"></span><?php echo JText::_('JCANCEL') ?> </button> </div> <?php if ($params->get('save_history', 0) && $this->item->id) : ?> <div class="btn-group"> <?php echo $this->form->getInput('contenthistory'); ?> </div> <?php endif; ?> </div> </form> </div> home/wuectly/www/plugins/system/t3/base/html/com_users/profile/edit.php 0000604 00000005376 15245634364 0022345 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage com_users * * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('behavior.keepalive'); JHtml::_('behavior.tooltip'); JHtml::_('behavior.formvalidation'); //load user_profile plugin language $lang = JFactory::getLanguage(); $lang->load('plg_user_profile', JPATH_ADMINISTRATOR); ?> <div class="profile-edit<?php echo $this->pageclass_sfx?>"> <?php if ($this->params->get('show_page_heading')) : ?> <div class="page-header"> <h1><?php echo $this->escape($this->params->get('page_heading')); ?></h1> </div> <?php endif; ?> <form id="member-profile" action="<?php echo JRoute::_('index.php?option=com_users&task=profile.save'); ?>" method="post" class="form-validate form-horizontal" enctype="multipart/form-data"> <?php foreach ($this->form->getFieldsets() as $group => $fieldset):// Iterate through the form fieldsets and display each one.?> <?php $fields = $this->form->getFieldset($group);?> <?php if (count($fields)):?> <fieldset> <?php if (isset($fieldset->label)):// If the fieldset has a label set, display it as the legend.?> <legend><?php echo JText::_($fieldset->label); ?></legend> <?php endif;?> <?php if (isset($fieldset->description) && trim($fieldset->description)) : ?> <?php echo '<p>' . $this->escape(JText::_($fieldset->description)) . '</p>'; ?> <?php endif; ?> <?php // Iterate through the fields in the set and display them. ?> <?php foreach ($fields as $field):?> <?php // If the field is hidden, just display the input. ?> <?php if ($field->hidden):?> <div class="control-group"> <div class="controls"> <?php echo $field->input;?> </div> </div> <?php else:?> <div class="control-group"> <div class="control-label"> <?php echo $field->label; ?> <?php if (!$field->required && $field->type != 'Spacer') : ?> <span class="optional"><?php echo JText::_('COM_USERS_OPTIONAL'); ?></span> <?php endif; ?> </div> <div class="controls"> <?php echo $field->input; ?> </div> </div> <?php endif;?> <?php endforeach;?> </fieldset> <?php endif;?> <?php endforeach;?> <div class="form-actions"> <button type="submit" class="btn btn-primary validate"><span><?php echo JText::_('JSUBMIT'); ?></span></button> <a class="btn" href="<?php echo JRoute::_('index.php?option=com_users&view=profile'); ?>" title="<?php echo JText::_('JCANCEL'); ?>"><?php echo JText::_('JCANCEL'); ?></a> <input type="hidden" name="option" value="com_users" /> <input type="hidden" name="task" value="profile.save" /> <?php echo JHtml::_('form.token'); ?> </div> </form> </div>
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка