- md5
- ac72627bdf415dc96afc7ff8394dde80
- sha1
- 751afaea3ab749ad69e017fd17691a8e084734c1
- sha256
- 0eda3fa86c95073125f1d2fb1be368456f20d49da4232add90eead7fef57c353
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
<?php
/**
* @version $Id: edit.php 20196 2011-01-09 02:40:25Z ian $
* @package Joomla.Administrator
* @subpackage com_admin
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// Include the component HTML helpers.
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
// Load the tooltip behavior.
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
// Get the form fieldsets.
$fieldsets = $this->form->getFieldsets();
?>
<script type="text/javascript">
Joomla.submitbutton = function(task)
{
if (task == 'profile.cancel' || document.formvalidator.isValid(document.id('profile-form'))) {
Joomla.submitform(task, document.getElementById('profile-form'));
}
}
</script>
<form action="<?php echo JRoute::_('index.php?option=com_admin&view=profile&layout=edit'); ?>" method="post" name="adminForm" id="profile-form" class="form-validate">
<div class="width-60 fltlft">
<fieldset class="adminform">
<legend><?php echo JText::_('COM_ADMIN_USER_ACCOUNT_DETAILS'); ?></legend>
<ul class="adminformlist">
<?php foreach($this->form->getFieldset('user_details') as $field) :?>
<li><?php echo $field->label; ?>
<?php echo $field->input; ?></li>
<?php endforeach; ?>
</ul>
</fieldset>
</div>
<div class="width-40 fltrt">
<?php
echo JHTML::_('sliders.start');
foreach ($fieldsets as $fieldset) :
if ($fieldset->name == 'user_details') :
continue;
endif;
echo JHTML::_('sliders.panel', JText::_($fieldset->label), $fieldset->name);
?>
<fieldset class="panelform">
<ul class="adminformlist">
<?php foreach($this->form->getFieldset($fieldset->name) as $field): ?>
<?php if ($field->hidden): ?>
<?php echo $field->input; ?>
<?php else: ?>
<li><?php echo $field->label; ?>
<?php echo $field->input; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</fieldset>
<?php endforeach; ?>
<?php echo JHTML::_('sliders.end'); ?>
<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
</div>
</form>
The same content is in 2 releases, Joomla 1.6.0 to 1.6.1. See them all, or every version of this file.