- md5
- 867671ff081a07afa532813f110dfa48
- sha1
- 57aef723c2ad596a117446d4a920de62762428c9
- sha256
- c6b361be795499c65b2668b22993037f80bac3688f0c44da9dd5e62651a0c060
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
<?php
/**
* @version $Id: edit.php 20196 2011-01-09 02:40:25Z ian $
* @package Joomla.Administrator
* @subpackage com_languages
* @copyright Copyright (C) 2005 - 2011 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 endif; ?>
<?php echo $this->form->getLabel('title'); ?>
<?php echo $this->form->getInput('title'); ?>
<?php echo $this->form->getLabel('title_native'); ?>
<?php echo $this->form->getInput('title_native'); ?>
<?php echo $this->form->getLabel('sef'); ?>
<?php echo $this->form->getInput('sef'); ?>
<?php echo $this->form->getLabel('image'); ?>
<?php echo $this->form->getInput('image'); ?>
<?php echo $this->form->getLabel('lang_code'); ?>
<?php echo $this->form->getInput('lang_code'); ?>
<?php if ($canDo->get('core.edit.state')) : ?>
<?php echo $this->form->getLabel('published'); ?>
<?php echo $this->form->getInput('published'); ?>
<?php endif; ?>
<?php echo $this->form->getLabel('description'); ?>
<?php echo $this->form->getInput('description'); ?>
<?php echo $this->form->getLabel('lang_id'); ?>
<?php echo $this->form->getInput('lang_id'); ?>
</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.end'); ?>
<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
</div>
<div class="clr"> </div>
</form>
The same content is in 7 releases, Joomla 1.6.0 to 1.6.6. See them all, or every version of this file.