/administrator/templates/hathor/html/com_installer/discover/default.php

https://bitbucket.org/eternaware/joomus · PHP · 80 lines · 66 code · 7 blank · 7 comment · 8 complexity · 96276a8fe336397fee2ceb53fd351c8c MD5 · raw file

  1. <?php
  2. /**
  3. * @package Joomla.Administrator
  4. * @subpackage Template.hathor
  5. *
  6. * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
  7. * @license GNU General Public License version 2 or later; see LICENSE.txt
  8. */
  9. defined('_JEXEC') or die;
  10. JHtml::_('behavior.multiselect');
  11. $listOrder = $this->escape($this->state->get('list.ordering'));
  12. $listDirn = $this->escape($this->state->get('list.direction'));
  13. ?>
  14. <div id="installer-discover">
  15. <form action="<?php echo JRoute::_('index.php?option=com_installer&view=discover');?>" method="post" name="adminForm" id="adminForm">
  16. <?php if ($this->showMessage) : ?>
  17. <?php echo $this->loadTemplate('message'); ?>
  18. <?php endif; ?>
  19. <?php if ($this->ftp) : ?>
  20. <?php echo $this->loadTemplate('ftp'); ?>
  21. <?php endif; ?>
  22. <?php if (count($this->items)) : ?>
  23. <table class="adminlist">
  24. <thead>
  25. <tr>
  26. <th class="checkmark-col"><input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" /></th>
  27. <th class="title nowrap"><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_NAME', 'name', $listDirn, $listOrder); ?></th>
  28. <th class="center"><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_TYPE', 'type', $listDirn, $listOrder); ?></th>
  29. <th class="width-10 center"><?php echo JText::_('JVERSION'); ?></th>
  30. <th class="width-10 center"><?php echo JText::_('JDATE'); ?></th>
  31. <th><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_FOLDER', 'folder', $listDirn, $listOrder); ?></th>
  32. <th><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_CLIENT', 'client_id', $listDirn, $listOrder); ?></th>
  33. <th class="width-15 center"><?php echo JText::_('JAUTHOR'); ?></th>
  34. <th class="nowrap id-col"><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_ID', 'extension_id', $listDirn, $listOrder); ?></th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. <?php foreach ($this->items as $i => $item): ?>
  39. <tr class="row<?php echo $i % 2;?>">
  40. <td><?php echo JHtml::_('grid.id', $i, $item->extension_id); ?></td>
  41. <td><span class="bold hasTip" title="<?php echo htmlspecialchars($item->name.'::'.$item->description); ?>"><?php echo $item->name; ?></span></td>
  42. <td class="center"><?php echo JText::_('COM_INSTALLER_TYPE_' . $item->type); ?></td>
  43. <td class="center"><?php echo @$item->version != '' ? $item->version : '&#160;'; ?></td>
  44. <td class="center"><?php echo @$item->creationDate != '' ? $item->creationDate : '&#160;'; ?></td>
  45. <td class="center"><?php echo @$item->folder != '' ? $item->folder : JText::_('COM_INSTALLER_TYPE_NONAPPLICABLE'); ?></td>
  46. <td class="center"><?php echo $item->client; ?></td>
  47. <td class="center">
  48. <span class="editlinktip hasTip" title="<?php echo addslashes(htmlspecialchars(JText::_('COM_INSTALLER_AUTHOR_INFORMATION').'::'.$item->author_info)); ?>">
  49. <?php echo @$item->author != '' ? $item->author : '&#160;'; ?>
  50. </span>
  51. </td>
  52. <td><?php echo $item->extension_id ?></td>
  53. </tr>
  54. <?php endforeach; ?>
  55. </tbody>
  56. </table>
  57. <?php echo $this->pagination->getListFooter(); ?>
  58. <?php echo JText::_('COM_INSTALLER_MSG_DISCOVER_DESCRIPTION'); ?>
  59. <?php else : ?>
  60. <p class="nowarning">
  61. <?php echo JText::_('COM_INSTALLER_MSG_DISCOVER_DESCRIPTION'); ?>
  62. </p>
  63. <p class="nowarning">
  64. <?php echo JText::_('COM_INSTALLER_MSG_DISCOVER_NOEXTENSION'); ?>
  65. </p>
  66. <?php endif; ?>
  67. <input type="hidden" name="task" value="" />
  68. <input type="hidden" name="boxchecked" value="0" />
  69. <input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
  70. <input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
  71. <?php echo JHtml::_('form.token'); ?>
  72. </form>
  73. </div>