[ Index ]

PHP Cross Reference of Joomla 2.5.4 DE

title

Body

[close]

/administrator/components/com_content/views/featured/tmpl/ -> default.php (source)

   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  $listOrder    = $this->escape($this->state->get('list.ordering'));
  18  $listDirn    = $this->escape($this->state->get('list.direction'));
  19  $canOrder    = $user->authorise('core.edit.state', 'com_content.article');
  20  $saveOrder    = $listOrder == 'fp.ordering';
  21  ?>
  22  <form action="<?php echo JRoute::_('index.php?option=com_content&view=featured');?>" 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              <button type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button>
  28              <button type="button" onclick="document.id('filter_search').value='';this.form.submit();"><?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?></button>
  29          </div>
  30          <div class="filter-select fltrt">
  31  
  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_access" class="inputbox" onchange="this.form.submit()">
  38                  <option value=""><?php echo JText::_('JOPTION_SELECT_ACCESS');?></option>
  39                  <?php echo JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access'));?>
  40              </select>
  41  
  42              <select name="filter_language" class="inputbox" onchange="this.form.submit()">
  43                  <option value=""><?php echo JText::_('JOPTION_SELECT_LANGUAGE');?></option>
  44                  <?php echo JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text', $this->state->get('filter.language'));?>
  45              </select>
  46          </div>
  47      </fieldset>
  48      <div class="clr"> </div>
  49      <table class="adminlist">
  50          <thead>
  51              <tr>
  52                  <th width="1%">
  53                      <input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
  54                  </th>
  55                  <th class="title">
  56                      <?php echo JHtml::_('grid.sort', 'JGLOBAL_TITLE', 'a.title', $listDirn, $listOrder); ?>
  57                  </th>
  58                  <th width="5%">
  59                      <?php echo JHtml::_('grid.sort', 'JSTATUS', 'a.state', $listDirn, $listOrder); ?>
  60                  </th>
  61                  <th width="5%">
  62                      <?php echo JHtml::_('grid.sort', 'JCATEGORY', 'a.catid', $listDirn, $listOrder); ?>
  63                  </th>
  64                  <th width="10%">
  65                      <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ORDERING', 'fp.ordering', $listDirn, $listOrder); ?>
  66                      <?php if ($canOrder && $saveOrder) :?>
  67                          <?php echo JHtml::_('grid.order',  $this->items, 'filesave.png', 'featured.saveorder'); ?>
  68                      <?php endif; ?>
  69                  </th>
  70                  <th width="10%">
  71                      <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ACCESS', 'a.access', $listDirn, $listOrder); ?>
  72                  </th>
  73                  <th width="10%">
  74                      <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_CREATED_BY', 'a.created_by', $listDirn, $listOrder); ?>
  75                  </th>
  76                  <th width="5%">
  77                      <?php echo JHtml::_('grid.sort', 'JDATE', 'a.created', $listDirn, $listOrder); ?>
  78                  </th>
  79                  <th width="5%">
  80                      <?php echo JHtml::_('grid.sort', 'JGLOBAL_HITS', 'a.hits', $listDirn, $listOrder); ?>
  81                  </th>
  82                  <th width="5%">
  83                      <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_LANGUAGE', 'a.language', $listDirn, $listOrder); ?>
  84                  </th>
  85                  <th width="1%" class="nowrap">
  86                      <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?>
  87                  </th>
  88              </tr>
  89          </thead>
  90          <tfoot>
  91              <tr>
  92                  <td colspan="15">
  93                      <?php echo $this->pagination->getListFooter(); ?>
  94                  </td>
  95              </tr>
  96          </tfoot>
  97          <tbody>
  98          <?php
  99          foreach ($this->items as $i => $item) :
 100              $item->max_ordering = 0; //??
 101              $ordering    = ($listOrder == 'fp.ordering');
 102              $assetId    = 'com_content.article.'.$item->id;
 103              $canCreate    = $user->authorise('core.create',        'com_content.category.'.$item->catid);
 104              $canEdit    = $user->authorise('core.edit',            'com_content.article.'.$item->id);
 105              $canCheckin    = $user->authorise('core.manage',        'com_checkin') || $item->checked_out==$user->get('id')|| $item->checked_out==0;
 106              $canChange    = $user->authorise('core.edit.state',    'com_content.article.'.$item->id) && $canCheckin;
 107              ?>
 108              <tr class="row<?php echo $i % 2; ?>">
 109                  <td class="center">
 110                      <?php echo JHtml::_('grid.id', $i, $item->id); ?>
 111                  </td>
 112                  <td>
 113                      <?php if ($item->checked_out) : ?>
 114                          <?php echo JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, 'featured.', $canCheckin); ?>
 115                      <?php endif; ?>
 116                      <?php if ($canEdit) : ?>
 117                      <a href="<?php echo JRoute::_('index.php?option=com_content&task=article.edit&return=featured&id='.$item->id);?>">
 118                          <?php echo $this->escape($item->title); ?></a>
 119                      <?php else : ?>
 120                          <?php echo $this->escape($item->title); ?>
 121                      <?php endif; ?>
 122                      <p class="smallsub">
 123                          <?php echo JText::sprintf('JGLOBAL_LIST_ALIAS', $this->escape($item->alias));?></p>
 124                  </td>
 125                  <td class="center">
 126                      <?php echo JHtml::_('jgrid.published', $item->state, $i, 'articles.', $canChange, 'cb', $item->publish_up, $item->publish_down); ?>
 127                  </td>
 128                  <td class="center">
 129                      <?php echo $this->escape($item->category_title); ?>
 130                  </td>
 131                  <td class="order">
 132                      <?php if ($canChange) : ?>
 133                          <?php if ($saveOrder) :?>
 134                              <?php if ($listDirn == 'asc') : ?>
 135                                  <span><?php echo $this->pagination->orderUpIcon($i, true, 'featured.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?></span>
 136                                  <span><?php echo $this->pagination->orderDownIcon($i, $this->pagination->total, true, 'featured.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?></span>
 137                              <?php elseif ($listDirn == 'desc') : ?>
 138                                  <span><?php echo $this->pagination->orderUpIcon($i, true, 'featured.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?></span>
 139                                  <span><?php echo $this->pagination->orderDownIcon($i, $this->pagination->total, true, 'featured.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?></span>
 140                              <?php endif; ?>
 141                          <?php endif; ?>
 142                          <?php $disabled = $saveOrder ?  '' : 'disabled="disabled"'; ?>
 143                          <input type="text" name="order[]" size="5" value="<?php echo $item->ordering;?>" <?php echo $disabled ?> class="text-area-order" />
 144                      <?php else : ?>
 145                          <?php echo $item->ordering; ?>
 146                      <?php endif; ?>
 147                  </td>
 148                  <td class="center">
 149                      <?php echo $this->escape($item->access_level); ?>
 150                  </td>
 151                  <td class="center">
 152                      <?php echo $this->escape($item->author_name); ?>
 153                  </td>
 154                  <td class="center nowrap">
 155                      <?php echo JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC4')); ?>
 156                  </td>
 157                  <td class="center">
 158                      <?php echo (int) $item->hits; ?>
 159                  </td>
 160                  <td class="center">
 161                      <?php if ($item->language=='*'):?>
 162                          <?php echo JText::alt('JALL', 'language'); ?>
 163                      <?php else:?>
 164                          <?php echo $item->language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>
 165                      <?php endif;?>
 166                  </td>
 167                  <td class="center">
 168                      <?php echo (int) $item->id; ?>
 169                  </td>
 170              </tr>
 171              <?php endforeach; ?>
 172          </tbody>
 173      </table>
 174  
 175      <div>
 176          <input type="hidden" name="task" value="" />
 177          <input type="hidden" name="featured" value="1" />
 178          <input type="hidden" name="boxchecked" value="0" />
 179          <input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
 180          <input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
 181          <?php echo JHtml::_('form.token'); ?>
 182      </div>
 183  </form>


Generated: Tue Apr 3 11:40:28 2012 Cross-referenced by PHPXref 0.7.1