| [ Index ] |
PHP Cross Reference of Joomla 2.5.4 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Joomla.Administrator 4 * @subpackage com_content 5 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. 6 * @license GNU General Public License version 2 or later; see LICENSE.txt 7 */ 8 9 // no direct access 10 defined('_JEXEC') or die; 11 12 JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); 13 JHtml::_('behavior.tooltip'); 14 JHtml::_('behavior.multiselect'); 15 16 $user = JFactory::getUser(); 17 $userId = $user->get('id'); 18 $listOrder = $this->escape($this->state->get('list.ordering')); 19 $listDirn = $this->escape($this->state->get('list.direction')); 20 $saveOrder = $listOrder == 'a.ordering'; 21 ?> 22 <form action="<?php echo JRoute::_('index.php?option=com_content&view=articles');?>" method="post" name="adminForm" id="adminForm"> 23 <fieldset id="filter-bar"> 24 <div class="filter-search fltlft"> 25 <label class="filter-search-lbl" for="filter_search"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></label> 26 <input type="text" name="filter_search" id="filter_search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" title="<?php echo JText::_('COM_CONTENT_FILTER_SEARCH_DESC'); ?>" /> 27 28 <button type="submit" class="btn"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button> 29 <button type="button" onclick="document.id('filter_search').value='';this.form.submit();"><?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?></button> 30 </div> 31 <div class="filter-select fltrt"> 32 <select name="filter_published" class="inputbox" onchange="this.form.submit()"> 33 <option value=""><?php echo JText::_('JOPTION_SELECT_PUBLISHED');?></option> 34 <?php echo JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true);?> 35 </select> 36 37 <select name="filter_category_id" class="inputbox" onchange="this.form.submit()"> 38 <option value=""><?php echo JText::_('JOPTION_SELECT_CATEGORY');?></option> 39 <?php echo JHtml::_('select.options', JHtml::_('category.options', 'com_content'), 'value', 'text', $this->state->get('filter.category_id'));?> 40 </select> 41 42 <select name="filter_level" class="inputbox" onchange="this.form.submit()"> 43 <option value=""><?php echo JText::_('JOPTION_SELECT_MAX_LEVELS');?></option> 44 <?php echo JHtml::_('select.options', $this->f_levels, 'value', 'text', $this->state->get('filter.level'));?> 45 </select> 46 47 <select name="filter_access" class="inputbox" onchange="this.form.submit()"> 48 <option value=""><?php echo JText::_('JOPTION_SELECT_ACCESS');?></option> 49 <?php echo JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access'));?> 50 </select> 51 52 <select name="filter_author_id" class="inputbox" onchange="this.form.submit()"> 53 <option value=""><?php echo JText::_('JOPTION_SELECT_AUTHOR');?></option> 54 <?php echo JHtml::_('select.options', $this->authors, 'value', 'text', $this->state->get('filter.author_id'));?> 55 </select> 56 57 <select name="filter_language" class="inputbox" onchange="this.form.submit()"> 58 <option value=""><?php echo JText::_('JOPTION_SELECT_LANGUAGE');?></option> 59 <?php echo JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text', $this->state->get('filter.language'));?> 60 </select> 61 </div> 62 </fieldset> 63 <div class="clr"> </div> 64 65 <table class="adminlist"> 66 <thead> 67 <tr> 68 <th width="1%"> 69 <input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" /> 70 </th> 71 <th> 72 <?php echo JHtml::_('grid.sort', 'JGLOBAL_TITLE', 'a.title', $listDirn, $listOrder); ?> 73 </th> 74 <th width="5%"> 75 <?php echo JHtml::_('grid.sort', 'JSTATUS', 'a.state', $listDirn, $listOrder); ?> 76 </th> 77 <th width="5%"> 78 <?php echo JHtml::_('grid.sort', 'JFEATURED', 'a.featured', $listDirn, $listOrder, NULL, 'desc'); ?> 79 </th> 80 <th width="10%"> 81 <?php echo JHtml::_('grid.sort', 'JCATEGORY', 'category_title', $listDirn, $listOrder); ?> 82 </th> 83 <th width="10%"> 84 <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ORDERING', 'a.ordering', $listDirn, $listOrder); ?> 85 <?php if ($saveOrder) :?> 86 <?php echo JHtml::_('grid.order', $this->items, 'filesave.png', 'articles.saveorder'); ?> 87 <?php endif; ?> 88 </th> 89 <th width="10%"> 90 <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ACCESS', 'access_level', $listDirn, $listOrder); ?> 91 </th> 92 <th width="10%"> 93 <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_CREATED_BY', 'a.created_by', $listDirn, $listOrder); ?> 94 </th> 95 <th width="5%"> 96 <?php echo JHtml::_('grid.sort', 'JDATE', 'a.created', $listDirn, $listOrder); ?> 97 </th> 98 <th width="5%"> 99 <?php echo JHtml::_('grid.sort', 'JGLOBAL_HITS', 'a.hits', $listDirn, $listOrder); ?> 100 </th> 101 <th width="5%"> 102 <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_LANGUAGE', 'language', $listDirn, $listOrder); ?> 103 </th> 104 <th width="1%" class="nowrap"> 105 <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?> 106 </th> 107 </tr> 108 </thead> 109 <tfoot> 110 <tr> 111 <td colspan="15"> 112 <?php echo $this->pagination->getListFooter(); ?> 113 </td> 114 </tr> 115 </tfoot> 116 <tbody> 117 <?php foreach ($this->items as $i => $item) : 118 $item->max_ordering = 0; //?? 119 $ordering = ($listOrder == 'a.ordering'); 120 $canCreate = $user->authorise('core.create', 'com_content.category.'.$item->catid); 121 $canEdit = $user->authorise('core.edit', 'com_content.article.'.$item->id); 122 $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0; 123 $canEditOwn = $user->authorise('core.edit.own', 'com_content.article.'.$item->id) && $item->created_by == $userId; 124 $canChange = $user->authorise('core.edit.state', 'com_content.article.'.$item->id) && $canCheckin; 125 ?> 126 <tr class="row<?php echo $i % 2; ?>"> 127 <td class="center"> 128 <?php echo JHtml::_('grid.id', $i, $item->id); ?> 129 </td> 130 <td> 131 <?php if ($item->checked_out) : ?> 132 <?php echo JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, 'articles.', $canCheckin); ?> 133 <?php endif; ?> 134 <?php if ($canEdit || $canEditOwn) : ?> 135 <a href="<?php echo JRoute::_('index.php?option=com_content&task=article.edit&id='.$item->id);?>"> 136 <?php echo $this->escape($item->title); ?></a> 137 <?php else : ?> 138 <?php echo $this->escape($item->title); ?> 139 <?php endif; ?> 140 <p class="smallsub"> 141 <?php echo JText::sprintf('JGLOBAL_LIST_ALIAS', $this->escape($item->alias));?></p> 142 </td> 143 <td class="center"> 144 <?php echo JHtml::_('jgrid.published', $item->state, $i, 'articles.', $canChange, 'cb', $item->publish_up, $item->publish_down); ?> 145 </td> 146 <td class="center"> 147 <?php echo JHtml::_('contentadministrator.featured', $item->featured, $i, $canChange); ?> 148 </td> 149 <td class="center"> 150 <?php echo $this->escape($item->category_title); ?> 151 </td> 152 <td class="order"> 153 <?php if ($canChange) : ?> 154 <?php if ($saveOrder) :?> 155 <?php if ($listDirn == 'asc') : ?> 156 <span><?php echo $this->pagination->orderUpIcon($i, ($item->catid == @$this->items[$i-1]->catid), 'articles.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?></span> 157 <span><?php echo $this->pagination->orderDownIcon($i, $this->pagination->total, ($item->catid == @$this->items[$i+1]->catid), 'articles.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?></span> 158 <?php elseif ($listDirn == 'desc') : ?> 159 <span><?php echo $this->pagination->orderUpIcon($i, ($item->catid == @$this->items[$i-1]->catid), 'articles.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?></span> 160 <span><?php echo $this->pagination->orderDownIcon($i, $this->pagination->total, ($item->catid == @$this->items[$i+1]->catid), 'articles.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?></span> 161 <?php endif; ?> 162 <?php endif; ?> 163 <?php $disabled = $saveOrder ? '' : 'disabled="disabled"'; ?> 164 <input type="text" name="order[]" size="5" value="<?php echo $item->ordering;?>" <?php echo $disabled ?> class="text-area-order" /> 165 <?php else : ?> 166 <?php echo $item->ordering; ?> 167 <?php endif; ?> 168 </td> 169 <td class="center"> 170 <?php echo $this->escape($item->access_level); ?> 171 </td> 172 <td class="center"> 173 <?php echo $this->escape($item->author_name); ?> 174 </td> 175 <td class="center nowrap"> 176 <?php echo JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC4')); ?> 177 </td> 178 <td class="center"> 179 <?php echo (int) $item->hits; ?> 180 </td> 181 <td class="center"> 182 <?php if ($item->language=='*'):?> 183 <?php echo JText::alt('JALL', 'language'); ?> 184 <?php else:?> 185 <?php echo $item->language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> 186 <?php endif;?> 187 </td> 188 <td class="center"> 189 <?php echo (int) $item->id; ?> 190 </td> 191 </tr> 192 <?php endforeach; ?> 193 </tbody> 194 </table> 195 196 <?php //Load the batch processing form. ?> 197 <?php echo $this->loadTemplate('batch'); ?> 198 199 <div> 200 <input type="hidden" name="task" value="" /> 201 <input type="hidden" name="boxchecked" value="0" /> 202 <input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" /> 203 <input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" /> 204 <?php echo JHtml::_('form.token'); ?> 205 </div> 206 </form>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |