diff --git a/administrator/components/com_categories/views/categories/tmpl/default.php b/administrator/components/com_categories/views/categories/tmpl/default.php index 617a577382581..29fa24b50aae3 100644 --- a/administrator/components/com_categories/views/categories/tmpl/default.php +++ b/administrator/components/com_categories/views/categories/tmpl/default.php @@ -57,109 +57,10 @@
- - | -- - | -- - | -- - - items, 'filesave.png', 'categories.saveorder'); ?> - - | -- - | -- state->get('list.direction'), $this->state->get('list.ordering')); ?> - | -- - | -||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- pagination->getListFooter(); ?> - | -||||||||||||||
- id); ?> - | -
- |—', $item->level-1) ?>
- checked_out) : ?>
- editor, $item->checked_out_time, 'categories.', $canCheckin); ?>
-
-
-
- escape($item->title); ?>
-
- escape($item->title); ?>
-
- - |—', $item->level-1) ?> - note)) : ?> - escape($item->alias));?> - - escape($item->alias), $this->escape($item->note));?> - - |
- - published, $i, 'categories.', $canChange);?> - | -- - - pagination->orderUpIcon($i, isset($this->ordering[$item->parent_id][$orderkey - 1]), 'categories.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> - pagination->orderDownIcon($i, $this->pagination->total, isset($this->ordering[$item->parent_id][$orderkey + 1]), 'categories.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> - - - class="text-area-order" /> - - - - - | -- escape($item->access_level); ?> - | -- language=='*'):?> - - - language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> - - | -- - id; ?> - | -
+ '.str_repeat('|—', $item->level-1), array(), false); + if (empty($item->note)) { + $table->setRowCell('title', JText::sprintf('JGLOBAL_LIST_ALIAS', $this->escape($item->alias)), array(), false); + } else { + $table->setRowCell('title', JText::sprintf('JGLOBAL_LIST_ALIAS_NOTE', $this->escape($item->alias), $this->escape($item->note)), array(), false); + } + $table->setRowCell('title', '
', array(), false); + } + + $table->setRowCell('status', JHtml::_('jgrid.published', $item->published, $i, 'categories.', $canChange), array('class' => 'center')); + + if ($canChange) { + if ($saveOrder) { + $table->setRowCell('ordering', ''.$this->pagination->orderUpIcon($i, isset($this->ordering[$item->parent_id][$orderkey - 1]), 'categories.orderup', 'JLIB_HTML_MOVE_UP', $ordering).'', array(), false); + $table->setRowCell('ordering', ''.$this->pagination->orderDownIcon($i, $this->pagination->total, isset($this->ordering[$item->parent_id][$orderkey + 1]), 'categories.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering).'', array(), false); + } + $disabled = $saveOrder ? '' : 'disabled="disabled"'; + $table->setRowCell('ordering', '', array(), false); + $originalOrders[] = $orderkey + 1; + } else { + $table->setRowCell('ordering', $orderkey + 1, array(), false); + } + + $table->setRowCell('ordering', '', array('class' => 'order'), false); + + $table->setRowCell('access', $this->escape($item->access_level), array('class' => 'center nowrap')) + ->setRowCell('language', ($item->language == '*') ? JText::alt('JALL','language') : ($item->language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED')), array('class' => 'center nowrap')) + ->setRowCell('id', ''.(int) $item->id.'', array('class' => 'center')); + } + + $this->originalOrders = $originalOrders; + $this->table = $table; + } + /** * Add the page title and toolbar. * @@ -135,7 +234,7 @@ protected function addToolbar() if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete', $component)) { JToolBarHelper::deleteList('', 'categories.delete', 'JTOOLBAR_EMPTY_TRASH'); } - elseif ($canDo->get('core.edit.state')) { + else if ($canDo->get('core.edit.state')) { JToolBarHelper::trash('categories.trash'); JToolBarHelper::divider(); } diff --git a/administrator/components/com_users/views/users/tmpl/default.php b/administrator/components/com_users/views/users/tmpl/default.php index 409efe7c776eb..f21b515f57bb1 100644 --- a/administrator/components/com_users/views/users/tmpl/default.php +++ b/administrator/components/com_users/views/users/tmpl/default.php @@ -54,120 +54,9 @@- - | -- - | -- - | -- - | -- - | -- - | -- - | -- - | -- - | -- - | -|||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- pagination->getListFooter(); ?> - | -||||||||||||||
- - id); ?> - - | -
-
-
- escape($item->name); ?>
-
- escape($item->name); ?>
-
-
-
-
- |
- - escape($item->username); ?> - | -- - id != $item->id) : ?> - block, 'users.unblock', 'users.block'); ?> - - block, 'users.block', null); ?> - - - block ? 'JNO' : 'JYES'); ?> - - | -- activation, 'users.activate', null); ?> - | -- group_names,"\n") > 1) : ?> - - - group_names); ?> - - | -- escape($item->email); ?> - | -- lastvisitDate!='0000-00-00 00:00:00'):?> - lastvisitDate, 'Y-m-d H:i:s'); ?> - - - - | -- registerDate, 'Y-m-d H:i:s'); ?> - | -- id; ?> - | -
- - | -- - | -- - | -||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- pagination->getListFooter(); ?> - | -||||||||||||||
- - name; ?> - | -- username; ?> - | -- group_names); ?> - | -
- - | -- - | -- - | -- - - items, 'filesave.png', 'categories.saveorder'); ?> - - | -- - | -- state->get('list.direction'), $this->state->get('list.ordering')); ?> - | -- - | -
---|---|---|---|---|---|---|
- id); ?> - | -
- |—', $item->level-1) ?>
- checked_out) : ?>
- editor, $item->checked_out_time, 'categories.', $canCheckin); ?>
-
-
-
- escape($item->title); ?>
-
- escape($item->title); ?>
-
- - |—', $item->level-1) ?> - note)) : ?> - escape($item->alias));?> - - escape($item->alias), $this->escape($item->note));?> - - |
- - published, $i, 'categories.', $canChange);?> - | -- - - pagination->orderUpIcon($i, isset($this->ordering[$item->parent_id][$orderkey - 1]), 'categories.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> - pagination->orderDownIcon($i, $this->pagination->total, isset($this->ordering[$item->parent_id][$orderkey + 1]), 'categories.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> - - - class="text-area-order" title="title; ?> order" /> - - - - - | -- escape($item->access_level); ?> - | -- language=='*'):?> - - - language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> - - | -- - id; ?> - | -
- - | -- - | -- - | -- - | -- - | -- - | -- - | -- - | -- - | -- - | -
---|---|---|---|---|---|---|---|---|---|
- - id); ?> - - | -
-
-
- escape($item->name); ?>
-
- escape($item->name); ?>
-
-
-
-
- |
- - escape($item->username); ?> - | -- - id != $item->id) : ?> - block, 'users.unblock', 'users.block'); ?> - - block, 'users.block', null); ?> - - - block ? 'JNO' : 'JYES'); ?> - - | -- activation, 'users.activate', null); ?> - | -- group_names,"\n") > 1) : ?> - - - group_names); ?> - - | -- escape($item->email); ?> - | -- lastvisitDate!='0000-00-00 00:00:00'):?> - lastvisitDate, 'Y-m-d H:i:s'); ?> - - - - | -- registerDate, 'Y-m-d H:i:s'); ?> - | -- id; ?> - | -
- - | -- - | -- - | -
---|---|---|
- - name; ?> - | -- username; ?> - | -- group_names); ?> - | -