PageRenderTime 48ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/templates/rhuk_milkyway/_html/com_weblinks/category/default_items.php

https://github.com/joebushi/joomla
PHP | 72 lines | 69 code | 3 blank | 0 comment | 5 complexity | 8c3042a8ae2d908a628abd9d14e4bcf0 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. <?php defined('_JEXEC') or die('Restricted access'); ?>
  2. <script language="javascript" type="text/javascript">
  3. function tableOrdering( order, dir, task ) {
  4. var form = document.adminForm;
  5. form.filter_order.value = order;
  6. form.filter_order_Dir.value = dir;
  7. document.adminForm.submit( task );
  8. }
  9. </script>
  10. <form action="<?php echo JFilterOutput::ampReplace($this->action); ?>" method="post" name="adminForm">
  11. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  12. <tr>
  13. <td align="right" colspan="4">
  14. <?php
  15. echo JText::_('DISPLAY_NUM') .'&nbsp;';
  16. echo $this->pagination->getLimitBox();
  17. ?>
  18. </td>
  19. </tr>
  20. <?php if ( $this->params->def( 'show_headings', 1 ) ) : ?>
  21. <tr>
  22. <td width="10" style="text-align:right;" class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  23. <?php echo JText::_('Num'); ?>
  24. </td>
  25. <td width="90%" height="20" class="sectiontableheader<?php echo $this->escape($this->params->get( 'pageclass_sfx' )); ?>">
  26. <?php echo JHTML::_('grid.sort', 'Web Link', 'title', $this->lists['order_Dir'], $this->lists['order'] ); ?>
  27. </td>
  28. <?php if ( $this->params->get( 'show_link_hits' ) ) : ?>
  29. <td width="30" height="20" class="sectiontableheader<?php echo $this->escape($this->params->get( 'pageclass_sfx' )); ?>" style="text-align:center;" nowrap="nowrap">
  30. <?php echo JHTML::_('grid.sort', 'Hits', 'hits', $this->lists['order_Dir'], $this->lists['order'] ); ?>
  31. </td>
  32. <?php endif; ?>
  33. </tr>
  34. <?php endif; ?>
  35. <?php foreach ($this->items as $item) : ?>
  36. <tr class="sectiontableentry<?php echo $item->odd + 1; ?>">
  37. <td align="right">
  38. <?php echo $this->pagination->getRowOffset( $item->count ); ?>
  39. </td>
  40. <td height="20">
  41. <?php if ( $item->image ) : ?>
  42. &nbsp;&nbsp;<?php echo $item->image;?>&nbsp;&nbsp;
  43. <?php endif; ?>
  44. <?php echo $item->link; ?>
  45. <?php if ( $this->params->get( 'show_link_description' ) ) : ?>
  46. <br /><span class="description"><?php echo nl2br($this->escape($item->description)); ?></span>
  47. <?php endif; ?>
  48. </td>
  49. <?php if ( $this->params->get( 'show_link_hits' ) ) : ?>
  50. <td align="center">
  51. <?php echo $item->hits; ?>
  52. </td>
  53. <?php endif; ?>
  54. </tr>
  55. <?php endforeach; ?>
  56. <tr>
  57. <td align="center" colspan="4" class="sectiontablefooter<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  58. <?php echo $this->pagination->getPagesLinks(); ?>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td colspan="4" align="right" class="pagecounter">
  63. <?php echo $this->pagination->getPagesCounter(); ?>
  64. </td>
  65. </tr>
  66. </table>
  67. <input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
  68. <input type="hidden" name="filter_order_Dir" value="" />
  69. </form>