- md5
- c23fd3f3bf05925a2cb12b060f094ad0
- sha1
- 08057f3404573e5848949fbae84439ae92be4d22
- sha256
- 0584f7b1f8714926931aa02078210712be48a3863d5942443f96b7c7aa4926c3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
<?php
/**
* @package Joomla.Administrator
* @subpackage com_users
* @copyright Copyright (C) 2005 - 2014 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');
$canDo = UsersHelper::getActions();
?>
<script type="text/javascript">
Joomla.submitbutton = function(task)
{
if (task == 'level.cancel' || document.formvalidator.isValid(document.id('level-form'))) {
Joomla.submitform(task, document.id('level-form'));
}
}
/*
window.addEvent('domready', function(){
document.id('user-groups').getElements('input').each(function(i){
// Event to check all child groups.
i.addEvent('check', function(e){
// Check the child groups.
document.id('user-groups').getElements('input').each(function(c){
if (this.getProperty('rel') == c.id) {
c.setProperty('checked', true);
c.setProperty('disabled', true);
c.fireEvent('check');
}
}.bind(this));
}.bind(i));
// Event to uncheck all the parent groups.
i.addEvent('uncheck', function(e){
// Uncheck the parent groups.
document.id('user-groups').getElements('input').each(function(c){
if (c.getProperty('rel') == this.id) {
c.setProperty('checked', false);
c.setProperty('disabled', false);
c.fireEvent('uncheck');
}
}.bind(this));
}.bind(i));
// Bind to the click event to check/uncheck child/parent groups.
i.addEvent('click', function(e){
// Check the child groups.
document.id('user-groups').getElements('input').each(function(c){
if (this.getProperty('rel') == c.id) {
c.setProperty('checked', true);
if (this.getProperty('checked')) {
c.setProperty('disabled', true);
} else {
c.setProperty('disabled', false);
}
c.fireEvent('check');
}
}.bind(this));
// Uncheck the parent groups.
document.id('user-groups').getElements('input').each(function(c){
if (c.getProperty('rel') == this.id) {
c.setProperty('checked', false);
c.setProperty('disabled', false);
c.fireEvent('uncheck');
}
}.bind(this));
}.bind(i));
// Initialise the widget.
if (i.getProperty('checked')) {
i.fireEvent('click');
}
});
});
*/
</script>
<form action="<?php echo JRoute::_('index.php?option=com_users&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="level-form" class="form-validate">
<div class="width-100">
<fieldset class="adminform">
<legend><?php echo JText::_('COM_USERS_LEVEL_DETAILS');?></legend>
<ul class="adminformlist">
<li><?php echo $this->form->getLabel('title'); ?></li>
<li><?php echo $this->form->getInput('title'); ?></li>
</ul>
</fieldset>
</div>
<div class="width-50">
<fieldset class="adminform">
<legend><?php echo JText::_('COM_USERS_USER_GROUPS_HAVING_ACCESS');?></legend>
<?php echo JHtml::_('access.usergroups', 'jform[rules]', $this->item->rules); ?>
</fieldset>
<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
</div>
</form>
<div class="clr"></div>
The same content is in 11 releases, Joomla 2.5.18 to 2.5.28. See them all, or every version of this file.