0byt3m1n1-V2
Path:
/
home
/
academiac
/
www
/
administrator
/
components
/
com_languages
/
views
/
language
/
tmpl
/
[
Home
]
File: edit.php
<?php /** * @package Joomla.Administrator * @subpackage com_languages * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // no direct access defined('_JEXEC') or die; JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); JHtml::_('behavior.tooltip'); JHtml::_('behavior.formvalidation'); $canDo = LanguagesHelper::getActions(); ?> <script type="text/javascript"> Joomla.submitbutton = function(task) { if (task == 'language.cancel' || document.formvalidator.isValid(document.id('language-form'))) { Joomla.submitform(task, document.getElementById('language-form')); } } </script> <form action="<?php echo JRoute::_('index.php?option=com_languages&layout=edit&lang_id='.(int) $this->item->lang_id); ?>" method="post" name="adminForm" id="language-form" class="form-validate"> <div class="width-60 fltlft"> <fieldset class="adminform"> <?php if ($this->item->lang_id) : ?> <legend><?php echo JText::sprintf('JGLOBAL_RECORD_NUMBER', $this->item->lang_id); ?></legend> <?php else : ?> <legend><?php echo JText::_('COM_LANGUAGES_VIEW_LANGUAGE_EDIT_NEW_TITLE'); ?></legend> <?php endif; ?> <ul class="adminformlist"> <li><?php echo $this->form->getLabel('title'); ?> <?php echo $this->form->getInput('title'); ?></li> <li><?php echo $this->form->getLabel('title_native'); ?> <?php echo $this->form->getInput('title_native'); ?></li> <li><?php echo $this->form->getLabel('sef'); ?> <?php echo $this->form->getInput('sef'); ?></li> <li><?php echo $this->form->getLabel('image'); ?> <?php echo $this->form->getInput('image'); ?></li> <li><?php echo $this->form->getLabel('lang_code'); ?> <?php echo $this->form->getInput('lang_code'); ?></li> <?php if ($canDo->get('core.edit.state')) : ?> <li><?php echo $this->form->getLabel('published'); ?> <?php echo $this->form->getInput('published'); ?></li> <?php endif; ?> <li><?php echo $this->form->getLabel('access'); ?> <?php echo $this->form->getInput('access'); ?></li> <li><?php echo $this->form->getLabel('description'); ?> <?php echo $this->form->getInput('description'); ?></li> <li><?php echo $this->form->getLabel('lang_id'); ?> <?php echo $this->form->getInput('lang_id'); ?></li> </ul> </fieldset> </div> <div class="width-40 fltrt"> <?php echo JHtml::_('sliders.start', 'language-sliders-'.$this->item->lang_code, array('useCookie'=>1)); ?> <?php echo JHtml::_('sliders.panel', JText::_('JGLOBAL_FIELDSET_METADATA_OPTIONS'), 'metadata'); ?> <fieldset class="adminform"> <?php foreach($this->form->getFieldset('metadata') as $field): ?> <?php if (!$field->hidden): ?> <?php echo $field->label; ?> <?php endif; ?> <?php echo $field->input; ?> <?php endforeach; ?> </fieldset> <?php echo JHtml::_('sliders.panel', JText::_('COM_LANGUAGES_FIELDSET_SITE_NAME_LABEL'), 'site_name'); ?> <fieldset class="adminform"> <?php foreach($this->form->getFieldset('site_name') as $field): ?> <?php if (!$field->hidden): ?> <?php echo $field->label; ?> <?php endif; ?> <?php echo $field->input; ?> <?php endforeach; ?> </fieldset> <?php echo JHtml::_('sliders.end'); ?> <input type="hidden" name="task" value="" /> <?php echo JHtml::_('form.token'); ?> </div> <div class="clr"> </div> </form>
©
2018.