[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/templates/beez/html/com_content/category/ -> default_items.php (source)

   1  <?php // @version: $Id: default_items.php 11917 2009-05-29 19:37:05Z ian $
   2  defined('_JEXEC') or die('Restricted access');
   3  ?>
   4  
   5  <script language="javascript" type="text/javascript">
   6  <!--
   7  function tableOrdering( order, dir, task )
   8  {
   9  var form = document.adminForm;
  10  
  11  form.filter_order.value = order;
  12  form.filter_order_Dir.value = dir;
  13  document.adminForm.submit( task );
  14  }
  15  // -->
  16  </script>
  17  
  18  <form action="<?php echo $this->action; ?>" method="post" name="adminForm">
  19  
  20  <?php if ($this->params->get('filter')) : ?>
  21  <div class="filter">
  22      <p>
  23          <?php echo JText::_($this->escape($this->params->get('filter_type')) . ' ' . 'Filter').'&nbsp;'; ?>
  24          <input type="text" name="filter" value="<?php echo $this->escape($this->lists['filter']); ?>" class="inputbox" onchange="document.adminForm.submit();" />
  25      </p>
  26  </div>
  27  <?php endif; ?>
  28  
  29  <?php if ($this->params->get('show_pagination_limit')) : ?>
  30  <div class="display">
  31      <?php echo JText::_('Display Num'); ?>&nbsp;
  32      <?php echo $this->pagination->getLimitBox(); ?>
  33  </div>
  34  <?php endif; ?>
  35  
  36  <table class="category">
  37  
  38      <?php if ($this->params->get('show_headings')) : ?>
  39      <tr>
  40          <th class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" id="count">
  41              <?php echo JText::_('Num'); ?>
  42          </th>
  43  
  44          <?php if ($this->params->get('show_title')) : ?>
  45          <th class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" id="tableOrdering">
  46              <?php echo JHTML::_('grid.sort', 'Item Title', 'a.title', $this->lists['order_Dir'], $this->lists['order']); ?>
  47          </th>
  48          <?php endif; ?>
  49  
  50          <?php if ($this->params->get('show_date')) : ?>
  51          <th class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" id="tableOrdering2">
  52              <?php echo JHTML::_('grid.sort', 'Date', 'a.created', $this->lists['order_Dir'], $this->lists['order']); ?>
  53          </th>
  54          <?php endif; ?>
  55  
  56          <?php if ($this->params->get('show_author')) : ?>
  57          <th class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" id="author">
  58              <?php echo JHTML::_('grid.sort', 'Author', 'author', $this->lists['order_Dir'], $this->lists['order']); ?>
  59          </th>
  60          <?php endif; ?>
  61  
  62          <?php if ($this->params->get('show_hits')) : ?>
  63          <th align="center" class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" width="5%" nowrap="nowrap" id="hits">
  64              <?php echo JHTML::_('grid.sort', 'Hits', 'a.hits', $this->lists['order_Dir'], $this->lists['order']); ?>
  65          </th>
  66          <?php endif; ?>
  67      </tr>
  68      <?php endif; ?>
  69  
  70      <?php foreach ($this->items as $item) : ?>
  71      <tr class="sectiontableentry<?php echo ($item->odd + 1) . $this->escape($this->params->get('pageclass_sfx')); ?>">
  72          <td headers="count">
  73              <?php echo $this->pagination->getRowOffset((int)$item->count); ?>
  74          </td>
  75  
  76          <?php if ($this->params->get('show_title')) : ?>
  77          <td headers="tableOrdering">
  78              <?php if ($item->access <= $this->user->get('aid', 0)) : ?>
  79                  <a href="<?php echo $item->link; ?>">
  80                      <?php echo $this->escape($item->title); ?></a>
  81                  <?php echo JHTML::_('icon.edit', $item, $this->params, $this->access);
  82              else :
  83                  echo $item->title; ?> :
  84                  <a href="<?php echo JRoute::_('index.php?option=com_user&task=register'); ?>">
  85                      <?php echo JText::_('Register to read more...'); ?></a>
  86              <?php endif; ?>
  87          </td>
  88          <?php endif; ?>
  89  
  90          <?php if ($this->params->get('show_date')) : ?>
  91          <td  headers="tableOrdering2">
  92              <?php echo $this->escape($item->created); ?>
  93          </td>
  94          <?php endif; ?>
  95  
  96          <?php if ($this->params->get('show_author')) : ?>
  97          <td headers="author">
  98              <?php echo $item->created_by_alias ? $this->escape($item->created_by_alias) : $this->escape($item->author); ?>
  99          </td>
 100          <?php endif; ?>
 101  
 102          <?php if ($this->params->get('show_hits')) : ?>
 103          <td headers="hits">
 104              <?php echo $item->hits ? (int)$item->hits : '-'; ?>
 105          </td>
 106          <?php endif; ?>
 107  
 108      </tr>
 109      <?php endforeach; ?>
 110  
 111  </table>
 112  
 113  <?php if ($this->params->get('show_pagination')) : ?>
 114  <p class="counter">
 115      <?php echo $this->pagination->getPagesCounter(); ?>
 116  </p>
 117  <?php echo $this->pagination->getPagesLinks();
 118  endif; ?>
 119  
 120  <input type="hidden" name="id" value="<?php echo (int)$this->category->id; ?>" />
 121  <input type="hidden" name="sectionid" value="<?php echo (int)$this->category->sectionid; ?>" />
 122  <input type="hidden" name="task" value="<?php echo $this->lists['task']; ?>" />
 123  <input type="hidden" name="filter_order" value="" />
 124  <input type="hidden" name="filter_order_Dir" value="" />
 125  <input type="hidden" name="limitstart" value="0" />
 126  </form>


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1