[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/components/com_content/views/category/tmpl/ -> default_items.php (source)

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


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