Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_community/views/templates/tmpl/edit.php
Ðазад
<?php /** * @copyright (C) 2013 iJoomla, Inc. - All rights reserved. * @license GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html) * @author iJoomla.com <webmaster@ijoomla.com> * @url https://www.jomsocial.com/license-agreement * The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0 * More info at https://www.jomsocial.com/license-agreement */ use Joomla\CMS\Language\Text; // Disallow direct access to this file defined('_JEXEC') or die('Restricted access'); ?> <style type="text/css"> label { float:left; clear:none; display:block; padding: 2px 1em 0 0; } #js-cpanel .ace-file-input { margin-bottom: 0; } .ace-file-input .icon-picture, .ace-file-input .icon-upload-alt { height: 24px; } #js-cpanel .ace-file-input label.selected .icon-picture { line-height: 25px !important; } </style> <script type="text/javascript"> function setSelectionRange(input, selectionStart, selectionEnd) { if (input.setSelectionRange) { input.focus(); input.setSelectionRange(selectionStart, selectionEnd); } else if (input.createTextRange) { var range = input.createTextRange(); range.collapse(true); range.moveEnd('character', selectionEnd); range.moveStart('character', selectionStart); range.select(); } } function replaceSelection (input, replaceString) { if (input.setSelectionRange) { var selectionStart = input.selectionStart; var selectionEnd = input.selectionEnd; input.value = input.value.substring(0, selectionStart)+ replaceString + input.value.substring(selectionEnd); if (selectionStart != selectionEnd){ setSelectionRange(input, selectionStart, selectionStart + replaceString.length); }else{ setSelectionRange(input, selectionStart + replaceString.length, selectionStart + replaceString.length); } }else if (document.selection) { var range = document.selection.createRange(); if (range.parentElement() == input) { var isCollapsed = range.text == ''; range.text = replaceString; if (!isCollapsed) { range.moveStart('character', -replaceString.length); range.select(); } } } } // We are going to catch the TAB key so that we can use it, Hooray! function catchTab(item,e){ if(navigator.userAgent.match("Gecko")){ c=e.which; }else{ c=e.keyCode; } if(c==9){ var offset = joms.jQuery('#editFile').scrollTop(); replaceSelection(item,String.fromCharCode(9)); setTimeout("document.getElementById('"+item.id+"').focus();",0); joms.jQuery('#editFile').scrollTop(offset); offset = offset *-1 ; offset = '0 '+ offset + 'px'; joms.jQuery(e).css('background-position', offset); return false; } } function saveTemplate(){ var val = joms.jQuery('#editFile').val(); var filename = joms.jQuery('#fileData').val(); jax.call('community', 'cxSaveFile', filename, val); } function loadTempData(ext){ //editFile.edit(document.getElementById('tempText').innerHTML, ext); //jQuery('#editFile').val(unescape(document.getElementById('tempText').innerHTML)); } function scrollEditor(e){ var offset = joms.jQuery(e).scrollTop(); offset = offset *-1 ; offset = '0 '+ offset + 'px'; joms.jQuery(e).css('background-position', offset); } function teHideMessage(){ joms.jQuery('#msgDiv').fadeOut(); } function teShowMessage(msg){ var html = '<dl id="system-message">'; html += '<dt class="message">Message</dt>'; html += '<dd class="message message fade">'; html += '<ul>'; html += '<li>'+ msg +'</li>'; html += '</ul>'; html += '</dd>'; html += '</dl>'; joms.jQuery('#msgDiv').html(html).show(); setTimeout('teHideMessage()', 2500); } </script> <form id="adminForm" name="adminForm" method="post" enctype="multipart/form-data"> <table> <tr> <td> <table> <tbody> <tr> <td width="200" class="key"><?php echo Text::_('COM_COMMUNITY_NAME');?></td> <td><b class="display-input"> <?php echo !empty($this->template->info['name']) ? $this->template->info['name'] : Text::_('COM_COMMUNITY_NOT_AVAILABLE_SYMBOL'); ?> </b></td> </tr> <tr> <td class="key"><?php echo Text::_('COM_COMMUNITY_DESCRIPTION');?></td> <td><b class="display-input"><?php echo !empty($this->template->info['description']) ? $this->template->info['description'] : Text::_('COM_COMMUNITY_NOT_AVAILABLE_SYMBOL');?></b></td> </tr> </tbody> </table> <fieldset class="adminform edit-template"> <?php $content = $this->params->render_table(); if( !empty( $content ) ) { echo $content; } else { echo Text::_('No parameters'); } ?> </fieldset> </td> </tr> </table> <input type="hidden" name="view" value="templates" /> <input type="hidden" name="option" value="com_community" /> <input type="hidden" name="task" value="save" /> <input type="hidden" name="override" value="<?php echo $this->override;?>" /> </form> <script> jQuery('#hero_image').ace_file_input({ no_file:'No File ...', btn_choose:'Choose', btn_change:'Change' }).on('change', function(){ // var files = $(this).data('ace_input_files'); //or var files = $(this).ace_file_input('files'); // var method = $(this).data('ace_input_method'); //method will be either 'drop' or 'select' //or var method = $(this).ace_file_input('method'); }); </script>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка