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

https://github.com/gpongelli/joomla-cms · PHP · 89 lines · 75 code · 7 blank · 7 comment · 10 complexity · ff9685b3150ce8b3fbfcf7a5f5e0a5d8 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(!empty( $this->sidebar)): ?>
  17. <div id="j-sidebar-container" class="span2">
  18. <?php echo $this->sidebar; ?>
  19. </div>
  20. <div id="j-main-container" class="span10">
  21. <?php else : ?>
  22. <div id="j-main-container">
  23. <?php endif;?>
  24. <?php if ($this->showMessage) : ?>
  25. <?php echo $this->loadTemplate('message'); ?>
  26. <?php endif; ?>
  27. <?php if ($this->ftp) : ?>
  28. <?php echo $this->loadTemplate('ftp'); ?>
  29. <?php endif; ?>
  30. <?php if (count($this->items)) : ?>
  31. <table class="adminlist">
  32. <thead>
  33. <tr>
  34. <th class="checkmark-col"><input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" /></th>
  35. <th class="title nowrap"><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_NAME', 'name', $listDirn, $listOrder); ?></th>
  36. <th class="center"><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_TYPE', 'type', $listDirn, $listOrder); ?></th>
  37. <th class="width-10 center"><?php echo JText::_('JVERSION'); ?></th>
  38. <th class="width-10 center"><?php echo JText::_('JDATE'); ?></th>
  39. <th><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_FOLDER', 'folder', $listDirn, $listOrder); ?></th>
  40. <th><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_CLIENT', 'client_id', $listDirn, $listOrder); ?></th>
  41. <th class="width-15 center"><?php echo JText::_('JAUTHOR'); ?></th>
  42. <th class="nowrap id-col"><?php echo JHtml::_('grid.sort', 'COM_INSTALLER_HEADING_ID', 'extension_id', $listDirn, $listOrder); ?></th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. <?php foreach ($this->items as $i => $item): ?>
  47. <tr class="row<?php echo $i % 2;?>">
  48. <td><?php echo JHtml::_('grid.id', $i, $item->extension_id); ?></td>
  49. <td><span class="bold hasTip" title="<?php echo htmlspecialchars($item->name.'::'.$item->description); ?>"><?php echo $item->name; ?></span></td>
  50. <td class="center"><?php echo JText::_('COM_INSTALLER_TYPE_' . $item->type); ?></td>
  51. <td class="center"><?php echo @$item->version != '' ? $item->version : '&#160;'; ?></td>
  52. <td class="center"><?php echo @$item->creationDate != '' ? $item->creationDate : '&#160;'; ?></td>
  53. <td class="center"><?php echo @$item->folder != '' ? $item->folder : JText::_('COM_INSTALLER_TYPE_NONAPPLICABLE'); ?></td>
  54. <td class="center"><?php echo $item->client; ?></td>
  55. <td class="center">
  56. <span class="editlinktip hasTip" title="<?php echo addslashes(htmlspecialchars(JText::_('COM_INSTALLER_AUTHOR_INFORMATION').'::'.$item->author_info)); ?>">
  57. <?php echo @$item->author != '' ? $item->author : '&#160;'; ?>
  58. </span>
  59. </td>
  60. <td><?php echo $item->extension_id ?></td>
  61. </tr>
  62. <?php endforeach; ?>
  63. </tbody>
  64. </table>
  65. <?php echo $this->pagination->getListFooter(); ?>
  66. <?php echo JText::_('COM_INSTALLER_MSG_DISCOVER_DESCRIPTION'); ?>
  67. <?php else : ?>
  68. <p class="nowarning">
  69. <?php echo JText::_('COM_INSTALLER_MSG_DISCOVER_DESCRIPTION'); ?>
  70. </p>
  71. <p class="nowarning">
  72. <?php echo JText::_('COM_INSTALLER_MSG_DISCOVER_NOEXTENSION'); ?>
  73. </p>
  74. <?php endif; ?>
  75. <input type="hidden" name="task" value="" />
  76. <input type="hidden" name="boxchecked" value="0" />
  77. <input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
  78. <input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
  79. <?php echo JHtml::_('form.token'); ?>
  80. </div>
  81. </form>
  82. </div>